/proc and directory permissions
/proc and directory permissions
Posted Oct 29, 2009 3:54 UTC (Thu) by virtex (subscriber, #3019)Parent article: /proc and directory permissions
$ ls -ld /proc/*/fd
dr-x------ 2 root root 0 2009-10-28 22:45 /proc/1001/fd
dr-x------ 2 root root 0 2009-10-28 22:45 /proc/1002/fd
dr-x------ 2 root root 0 2009-10-28 22:45 /proc/1010/fd
dr-x------ 2 root root 0 2009-10-28 22:45 /proc/1012/fd
dr-x------ 2 gdm gdm 0 2009-10-28 22:45 /proc/1844/fd
dr-x------ 2 root root 0 2009-10-28 22:45 /proc/1980/fd
...
It looks like the file descriptors under proc are accessible to only the process owner and root, so an attacker wouldn't be able to get to them. Is this standard in the Linux kernel, or is my kernel (Ubuntu 9.04 and 9.10) patched to restrict the permissions?