[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091025062953.GC1391@ucw.cz>
Date: Sun, 25 Oct 2009 07:29:53 +0100
From: Pavel Machek <pavel@....cz>
To: kernel list <linux-kernel@...r.kernel.org>, jack@...e.cz
Cc: linux-fsdevel@...r.kernel.org, viro@...iv.linux.org.uk,
jamie@...reable.org
Subject: symlinks with permissions
...yes, they do exist, in /proc/self/fd/* . Unfortunately, their
permissions are not actually checked during open, resulting in
(obscure) security hole: if you have fd open for reading, you can
reopen it for write, even through unix permissions would not allow
that.
Now... I'd like to close the hole. One way would be to actually check
symlink permissions on open -- because those symlinks already have
correct permissions.
But ... then I got lost in vfs. Can someone help? Is there better way?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists