From: Pavel Emelyanov Date: Tue, 29 Apr 2008 08:02:44 +0000 (-0700) Subject: sysctl: add the ->permissions callback on the ctl_table_root X-Git-Tag: v2.6.26-rc1~445 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7321cd62470b70d2717dae5a963e7a8fabff4d5;p=pandora-kernel.git sysctl: add the ->permissions callback on the ctl_table_root When reading from/writing to some table, a root, which this table came from, may affect this table's permissions, depending on who is working with the table. The core hunk is at the bottom of this patch. All the rest is just pushing the ctl_table_root argument up to the sysctl_perm() function. This will be mostly (only?) used in the net sysctls. Signed-off-by: Pavel Emelyanov Acked-by: David S. Miller Cc: "Eric W. Biederman" Cc: Alexey Dobriyan Cc: Denis V. Lunev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed