Oops I goofed and forgot to set the parent in the root sysctl table, the rest are covered by register_sysctl_table. Signed-off-by: Eric W. Biederman <[email protected]> --- kernel/sysctl.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index d3a84fc..aa7d69e 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1296,6 +1296,14 @@ static void sysctl_set_parent(struct ctl_table *parent, struct ctl_table *table) } } +static __init int sysctl_init(void) +{ + sysctl_set_parent(NULL, root_table); + return 0; +} + +core_initcall(sysctl_init); + /** * register_sysctl_table - register a sysctl hierarchy * @table: the top-level table structure -- 1.4.4.1.g278f - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH 3/5] sysctl: Fix the selinux_sysctl_get_sid
- From: [email protected] (Eric W. Biederman)
- [PATCH 3/5] sysctl: Fix the selinux_sysctl_get_sid
- References:
- [PATCH] sysctl selinux: Don't look at table->de
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH] sysctl selinux: Don't look at table->de
- From: Stephen Smalley <[email protected]>
- [PATCH 1/2] sysctl: Add a parent entry to ctl_table and set the parent entry.
- From: [email protected] (Eric W. Biederman)
- [PATCH 2/2] sysctl: Restore the selinux path based label lookup for sysctls.
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH 2/2] sysctl: Restore the selinux path based label lookup for sysctls.
- From: Stephen Smalley <[email protected]>
- Re: [PATCH 2/2] sysctl: Restore the selinux path based label lookup for sysctls.
- From: Stephen Smalley <[email protected]>
- Re: [PATCH 2/2] sysctl: Restore the selinux path based label lookup for sysctls.
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH 2/2] sysctl: Restore the selinux path based label lookup for sysctls.
- From: Stephen Smalley <[email protected]>
- Re: [PATCH 2/2] sysctl: Restore the selinux path based label lookup for sysctls.
- From: [email protected] (Eric W. Biederman)
- Re: [PATCH 2/2] sysctl: Restore the selinux path based label lookup for sysctls.
- From: Stephen Smalley <[email protected]>
- Re: [PATCH 2/2] sysctl: Restore the selinux path based label lookup for sysctls.
- From: [email protected] (Eric W. Biederman)
- [PATCH 0/5] sysctl cleanup selinux fixes
- From: [email protected] (Eric W. Biederman)
- [PATCH 1/5] sysctl: Remove declaration of nonexistent sysctl_init()
- From: [email protected] (Eric W. Biederman)
- [PATCH] sysctl selinux: Don't look at table->de
- Prev by Date: Kbuild refactoring (Re: The who needs reviews anyways [PATCH])
- Next by Date: [PATCH 3/5] sysctl: Fix the selinux_sysctl_get_sid
- Previous by thread: [PATCH 1/5] sysctl: Remove declaration of nonexistent sysctl_init()
- Next by thread: [PATCH 3/5] sysctl: Fix the selinux_sysctl_get_sid
- Index(es):