mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[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>
This commit is contained in:
parent
77b14db502
commit
d912b0cc1a
2 changed files with 19 additions and 0 deletions
|
@ -1022,6 +1022,7 @@ struct ctl_table
|
|||
int maxlen;
|
||||
mode_t mode;
|
||||
ctl_table *child;
|
||||
ctl_table *parent; /* Automatically set */
|
||||
proc_handler *proc_handler; /* Callback for text formatting */
|
||||
ctl_handler *strategy; /* Callback function for all r/w */
|
||||
struct proc_dir_entry *de; /* /proc control block */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue