Re: /proc filesystem allows bypassing directory permissions on

看板Bugtraq作者時間16年前 (2009/10/27 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/47 (看更多)
> >Original owner did chmod 666... after making sure traditional unix > >permissions protect the file. Please look at original mail; it was > >subtle but I believe I got it right, and file would not be writable > >with /proc unmounted. > > > I remember the original mail content. You're right, you can't reach > the file if the procfs is not mounted, but you forget about the > race, allowing the guest to create a hardlink to the file in an > unrestricted location before the directory access becomes > restricted. Again, procfs is just another, specific kind of > hardlinks. Check it again. There's no race; I check link count before chmod 666. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
文章代碼(AID): #1AvUFWDh (Bugtraq)
討論串 (同標題文章)
完整討論串 (本文為第 4 之 47 篇):
文章代碼(AID): #1AvUFWDh (Bugtraq)