Re: rm-ing files with open file descriptors

Doug McNaught (doug@wireboard.com)
20 Jan 2002 13:21:49 -0500


Richard Kettlewell <rjk@terraraq.org.uk> writes:

> If the file descriptor you have was opened O_RDONLY, but you have
> write permission on the file itself, then creating a new name for it
> would allow you to open it O_RDWR.

Are you sure about this? Permissions are stored in the inode, not the
directory entry.

-Doug

-- 
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/