Bugtraq mailing list archives

Re: /proc filesystem allows bypassing directory permissions on


From: Dan Yefimov <dan () lightwave net ru>
Date: Tue, 03 Nov 2009 16:06:00 +0300

On 03.11.2009 2:33, Martin Rex wrote:
Doing it for a socket might be a bad idea -- and usually impossible,
one cannot undo the shutdown(SHUT_WR) of a socket...

Nobody will ever need that, since sockets are bidirectional and their file descriptors are in fact both readable and writable. But changing access mode of regular and special files, directories and even pipes file descriptors is in fact possible and could be accomplished rather easily by checking the corresponding inode (this is true at least for Linux).
--

Sincerely Your, Dan.


Current thread: