lkml.org 
[lkml]   [1996]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /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


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.030 / U:3.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site