Messages in this thread |  | | Date | Wed, 11 Sep 1996 00:45:27 +0300 | From | Andi Gutmans <> | Subject | Re: /proc permissions (Only read if interested in the result) |
| |
At 21:44 9/10/96 +0400, you wrote: >Yes. See linux/fs/proc/root.c > >There is a struct, which defines uid/gid and mode of the proc root directory. >Change it as you want and recompile kernel.
Hey,
well with your advice I "fixed" it for myself. I changed the following structure in linux/fs/proc/root.c as you said (17 is my group proc)
struct proc_dir_entry proc_root = { PROC_ROOT_INO, 5, "/proc", S_IFDIR | S_IRUSR | S_IRGRP | S_IXUSR | S_IXGRP, 2, 0, 17, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ Should only allow r+x access to user&group group proc 0, &proc_root_inode_operations, NULL, NULL, NULL, &proc_root, NULL };
I haven't tested it yet but there's no reason it shouldn't work.
Thanks to y'all Andi
|  |