On 5 Apr 2000 13:08:48 +0200, Nicholas Dronen <ndronen@frii.com> wrote:
>$ cd /proc/net
>$ ls -ld
>dr-xr-xr-x 3 root root 0 Apr 3 19:02 .
>$ sudo chmod 777 .
>$ ls -ld
>drwxrwxrwx 3 root root 0 Apr 3 19:02 .
That is because /proc is pseudo-filesystems, and permissions are hard-coded
in source, and you cannot change them (there is not place to store them).
There however seems to be an error in kernel, which should return -EPERM or
something else when you try to chmod(2) it. This way, it seems to change
dentry, and it seems like permissions are changed, but later dentry is
invalidatedpurged and it reverts back to hardcoded permissions.
-- Opinions above are GNU-copylefted.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:17 EST