aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorEric W. Biederman <[email protected]>2007-02-14 08:34:12 +0000
committerLinus Torvalds <[email protected]>2007-02-14 16:10:00 +0000
commit77b14db502cb85a031fe8fde6c85d52f3e0acb63 (patch)
tree4201f6a4dfe1062d1dc00659c403d630401b87cc /security/selinux/hooks.c
parent[PATCH] sysctl: allow sysctl_perm to be called from outside of sysctl.c (diff)
downloadkernel-77b14db502cb85a031fe8fde6c85d52f3e0acb63.tar.gz
kernel-77b14db502cb85a031fe8fde6c85d52f3e0acb63.zip
[PATCH] sysctl: reimplement the sysctl proc support
With this change the sysctl inodes can be cached and nothing needs to be done when removing a sysctl table. For a cost of 2K code we will save about 4K of static tables (when we remove de from ctl_table) and 70K in proc_dir_entries that we will not allocate, or about half that on a 32bit arch. The speed feels about the same, even though we can now cache the sysctl dentries :( We get the core advantage that we don't need to have a 1 to 1 mapping between ctl table entries and proc files. Making it possible to have /proc/sys vary depending on the namespace you are in. The currently merged namespaces don't have an issue here but the network namespace under /proc/sys/net needs to have different directories depending on which network adapters are visible. By simply being a cache different directories being visible depending on who you are is trivial to implement. [[email protected]: fix uninitialised var] [[email protected]: fix ARM build] [[email protected]: make things static] Signed-off-by: Eric W. Biederman <[email protected]> Cc: Russell King <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions