From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935541AbXGXJAA (ORCPT ); Tue, 24 Jul 2007 05:00:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934735AbXGXI7m (ORCPT ); Tue, 24 Jul 2007 04:59:42 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:55036 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935505AbXGXI7k (ORCPT ); Tue, 24 Jul 2007 04:59:40 -0400 Date: Tue, 24 Jul 2007 01:58:46 -0700 From: Andrew Morton To: Greg KH Cc: James Morris , Chris Wright , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, Stephen Smalley , "Serge E. Hallyn" , Arjan van de Ven Subject: Re: [PATCH try #3] security: Convert LSM into a static interface Message-Id: <20070724015846.b30d723c.akpm@linux-foundation.org> In-Reply-To: <20070724085358.GA13845@kroah.com> References: <20070724010224.bbfb82bc.akpm@linux-foundation.org> <20070724085358.GA13845@kroah.com> X-Mailer: Sylpheed 2.4.1 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Jul 2007 01:53:58 -0700 Greg KH wrote: > On Tue, Jul 24, 2007 at 01:02:24AM -0700, Andrew Morton wrote: > > On Sat, 14 Jul 2007 12:37:01 -0400 (EDT) James Morris wrote: > > > > > Convert LSM into a static interface > > > > allmodconfig broke > > > > security/built-in.o: In function `rootplug_bprm_check_security': > > security/root_plug.c:64: undefined reference to `usb_find_device' > > security/root_plug.c:70: undefined reference to `usb_put_dev' > > That's wierd, who would have disabled the exports of those functions or > removed the "#include " from this file? > root_plug is linked into vmlinux and usb is modular. I did this: --- a/security/Kconfig~security-convert-lsm-into-a-static-interface-fix-2 +++ a/security/Kconfig @@ -82,7 +82,7 @@ config SECURITY_CAPABILITIES config SECURITY_ROOTPLUG bool "Root Plug Support" - depends on USB && SECURITY + depends on USB=y && SECURITY help This is a sample LSM module that should only be used as such. It prevents any programs running with egid == 0 if a specific _ I suppose we could do SECURITY_ROOTPLUG=m if USB=m, but I thought the whole point was to disallow modular LSM clients?