Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764329AbYCFPEk (ORCPT ); Thu, 6 Mar 2008 10:04:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758463AbYCFPEb (ORCPT ); Thu, 6 Mar 2008 10:04:31 -0500 Received: from namei.org ([69.55.235.186]:39347 "EHLO us.intercode.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753769AbYCFPEa (ORCPT ); Thu, 6 Mar 2008 10:04:30 -0500 Date: Fri, 7 Mar 2008 02:03:10 +1100 (EST) From: James Morris X-X-Sender: jmorris@us.intercode.com.au To: "Ahmed S. Darwish" cc: Chris Wright , Stephen Smalley , Eric Paris , Casey Schaufler , Paul Moore , Alexey Dobriyan , Andrew Morton , Linus , LKML , LSM-ML Subject: Re: [PATCH -v8 -rc3] Security: Introduce security= boot parameter In-Reply-To: <1865922a0803060632kb63405fj3d255472fb2e555f@mail.gmail.com> Message-ID: References: <20080306121913.GA8506@ubuntu> <1865922a0803060632kb63405fj3d255472fb2e555f@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 911 Lines: 27 On Thu, 6 Mar 2008, Ahmed S. Darwish wrote: > Would you mind answering my confusions below so I can do the change > with good understanding ? > > I see preempt_disable() before calling security and vfs_caches init, > but what will prevent two processors/cores from executing > security_module_enable() concurrently (thus possibly corrupting > chosen_lsm) ? > security_module_enable() is also now used in __init init_smk_fs(). > > Or the init path got executed serially ? The init phase only runs on one cpu, see the lock_kernel() in kernel_init(), from which context the initcalls are eventually run in sequence. - James -- James Morris -- 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/