Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945930AbXBHWze (ORCPT ); Thu, 8 Feb 2007 17:55:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423348AbXBHWze (ORCPT ); Thu, 8 Feb 2007 17:55:34 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:35001 "EHLO ebiederm.dsl.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423338AbXBHWzc (ORCPT ); Thu, 8 Feb 2007 17:55:32 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: Andrew Morton Cc: Stephen Smalley , Ingo Molnar , tglx@linutronix.de, linux-kernel@vger.kernel.org, selinux@tycho.nsa.gov, James Morris Subject: [PATCH 2/5] sysctl: Set the parent field in the root sysctl table References: <200701280106.l0S16CG3019873@shell0.pdx.osdl.net> <20070127172410.2b041952.akpm@osdl.org> <1169972718.17469.164.camel@localhost.localdomain> <20070128003549.2ca38dc8.akpm@osdl.org> <20070128093358.GA2071@elte.hu> <20070128095712.GA6485@elte.hu> <20070128100627.GA8416@elte.hu> <20070128104548.a835d859.akpm@osdl.org> <1170075866.8720.15.camel@moss-spartans.epoch.ncsc.mil> <1170872654.11912.87.camel@moss-spartans.epoch.ncsc.mil> <1170882738.11912.144.camel@moss-spartans.epoch.ncsc.mil> <1170946871.11912.250.camel@moss-spartans.epoch.ncsc.mil> <1170958404.11912.313.camel@moss-spartans.epoch.ncsc.mil> Date: Thu, 08 Feb 2007 15:54:35 -0700 In-Reply-To: (Eric W. Biederman's message of "Thu, 08 Feb 2007 15:53:08 -0700") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 990 Lines: 36 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 --- 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/