Re: /proc filesystem allows bypassing directory permissions on

看板Bugtraq作者時間16年前 (2009/11/05 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串46/47 (看更多)
>>> "mount --bind" behaves like a hard link and it does not increment the link >>> count. > > # touch /tmp/a > # mount --bind /etc/passwd /tmp/a > # ls -l /etc/passwd > -rw-r--r-- 1 root root 1990 2009-08-24 16:22 /etc/passwd > ... > Two references to the same inode, yet the link count is 1 and /proc is > nowhere in the picture. But, mount requires root (and root can do anything, including shooting himself in the foot). 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): #1AyS5Wci (Bugtraq)
討論串 (同標題文章)
完整討論串 (本文為第 46 之 47 篇):
文章代碼(AID): #1AyS5Wci (Bugtraq)