diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-02-14 03:34:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-14 11:10:00 -0500 |
commit | d912b0cc1a617d7c590d57b7ea971d50c7f02503 (patch) | |
tree | 04cfb8553ffc3ac054e42af56ce7f3246005097c /include/linux | |
parent | 77b14db502cb85a031fe8fde6c85d52f3e0acb63 (diff) |
[PATCH] sysctl: add a parent entry to ctl_table and set the parent entry
Add a parent entry into the ctl_table so you can walk the list of parents and
find the entire path to a ctl_table entry.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sysctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 89150494bd10..1371d7b86810 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h | |||
@@ -1022,6 +1022,7 @@ struct ctl_table | |||
1022 | int maxlen; | 1022 | int maxlen; |
1023 | mode_t mode; | 1023 | mode_t mode; |
1024 | ctl_table *child; | 1024 | ctl_table *child; |
1025 | ctl_table *parent; /* Automatically set */ | ||
1025 | proc_handler *proc_handler; /* Callback for text formatting */ | 1026 | proc_handler *proc_handler; /* Callback for text formatting */ |
1026 | ctl_handler *strategy; /* Callback function for all r/w */ | 1027 | ctl_handler *strategy; /* Callback function for all r/w */ |
1027 | struct proc_dir_entry *de; /* /proc control block */ | 1028 | struct proc_dir_entry *de; /* /proc control block */ |