Re: /proc filesystem allows bypassing directory permissions on L

看板Bugtraq作者時間16年前 (2009/10/29 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串37/44 (看更多)
Tony Finch <dot@dotat.at> wrote: > According to POSIX, if you open the directory with O_SEARCH then openat() > does not re-check search (+x) permissions. My 2.6.26 kernel (or Debian lenny) does not seem to know about O_SEARCH. But anyway... even if openat() does not re-check permissions, it should surely fail when in fact it does not have permissions? Surely, directory contents are not cached? Or, do you have an example (of a running OS) where openat() succeeds without permissions? Cheers, Paul Paul Szabo psz@maths.usyd.edu.au http://www.maths.usyd.edu.au/u/psz/ School of Mathematics and Statistics University of Sydney Australia
文章代碼(AID): #1Aw8RXNx (Bugtraq)
討論串 (同標題文章)
完整討論串 (本文為第 37 之 44 篇):
文章代碼(AID): #1Aw8RXNx (Bugtraq)