Re: /proc filesystem allows bypassing directory permissions on L

看板Bugtraq作者時間16年前 (2009/10/27 05:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串16/44 (看更多)
On 25.10.2009 2:40, psz@maths.usyd.edu.au wrote: > Dear Pavel, > >> ... that's exactly the problem. > > I see, the /proc/*/fd/* objects seem "confused": are they symlinks, > hardlinks, or open file descriptors? I guess should always act as > the latter, where access mode flags (O_RDONLY or O_RDWR) are set at > open() and not changeable afterwards in fcntl(). Any open() on them > should behave as a dup(). > Paul, in authentic kernels /proc/<PID>/fd/<FD> are symlinks, not anything other. There're no such publicly accessible file objects, as file descriptors, there're only files (including special ones), directories and symlinks. But the above words don't necessary relate to patched kernels like distributed by third parties. -- Sincerely Your, Dan.
文章代碼(AID): #1AvWuElB (Bugtraq)
討論串 (同標題文章)
完整討論串 (本文為第 16 之 44 篇):
文章代碼(AID): #1AvWuElB (Bugtraq)