All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Greg KH <greg@kroah.com>
Cc: James Morris <jmorris@namei.org>,
	Chris Wright <chrisw@sous-sol.org>,
	linux-kernel@vger.kernel.org,
	linux-security-module@vger.kernel.org,
	Stephen Smalley <sds@tycho.nsa.gov>,
	"Serge E. Hallyn" <serue@us.ibm.com>,
	Arjan van de Ven <arjan@infradead.org>
Subject: Re: [PATCH try #3] security: Convert LSM into a static interface
Date: Tue, 24 Jul 2007 01:58:46 -0700	[thread overview]
Message-ID: <20070724015846.b30d723c.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070724085358.GA13845@kroah.com>

On Tue, 24 Jul 2007 01:53:58 -0700 Greg KH <greg@kroah.com> 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 <jmorris@namei.org> 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 <linux/usb.h>" 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?

  reply	other threads:[~2007-07-24  9:00 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-14 16:37 [PATCH try #3] security: Convert LSM into a static interface James Morris
2007-07-18 15:28 ` Arjan van de Ven
2007-07-19  1:35 ` Andrew Morton
2007-07-19  2:42   ` James Morris
2007-07-19  3:35     ` david
2007-07-19  5:31     ` Greg KH
2007-07-19  7:39   ` Christian Ehrhardt
2007-07-19 12:24     ` Serge E. Hallyn
2007-07-19 12:37       ` James Morris
2007-07-19 12:42         ` Serge E. Hallyn
2007-07-19 13:00           ` James Morris
2007-07-19 13:37             ` Serge E. Hallyn
2007-07-19 16:25               ` Adrian Bunk
2007-07-19 12:56         ` Scott Preece
2007-07-19 13:15           ` Alan Cox
2007-07-19 13:30             ` Scott Preece
2007-07-19 13:16           ` Adrian Bunk
2007-07-19 16:54       ` Arjan van de Ven
2007-07-19 17:19         ` Serge E. Hallyn
2007-07-19 17:34           ` Chris Wright
2007-07-19 18:00           ` Arjan van de Ven
2007-07-19 18:10             ` Serge E. Hallyn
2007-07-19 17:24         ` Christian Ehrhardt
2007-07-24  8:02 ` Andrew Morton
2007-07-24  8:53   ` Greg KH
2007-07-24  8:58     ` Andrew Morton [this message]
2007-07-24 18:25       ` Greg KH
     [not found] <OF54A17BCF.9A1D7004-ON8725731D.0044828E-8625731D.0046CAED@us.ibm.com>
2007-07-19 13:01 ` James Morris
2007-07-19 13:19   ` James Morris
2007-07-19 13:58     ` Christoph Hellwig
2007-07-19 16:01     ` Greg KH
     [not found] <Line.LNX.4.64.0706251953020.25122@localhost.localdomain.suse.lists.linux.kernel>
2007-06-26  5:21 ` Marcus Meissner
     [not found] <20070617135239.GA17689@sergelap>
     [not found] ` <4676007F.7060503@kernel.org>
     [not found]   ` <20070618044017.GW3723@sequoia.sous-sol.org>
     [not found]     ` <20070620171037.GA28670@sergelap.ibm.com>
     [not found]       ` <20070620174613.GF3723@sequoia.sous-sol.org>
2007-06-21 16:00         ` implement-file-posix-capabilities.patch Serge E. Hallyn
2007-06-23  8:13           ` implement-file-posix-capabilities.patch Andrew Morgan
2007-06-24 15:51             ` implement-file-posix-capabilities.patch Serge E. Hallyn
2007-06-24 16:18               ` implement-file-posix-capabilities.patch James Morris
2007-06-24 20:58                 ` [PATCH][RFC] security: Convert LSM into a static interface James Morris
2007-06-24 22:09                   ` Chris Wright
2007-06-25  4:33                     ` [PATCH try #2] " James Morris
2007-06-25 16:59                       ` Stephen Smalley
2007-06-25 23:56                         ` [PATCH try #3] " James Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070724015846.b30d723c.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=arjan@infradead.org \
    --cc=chrisw@sous-sol.org \
    --cc=greg@kroah.com \
    --cc=jmorris@namei.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=sds@tycho.nsa.gov \
    --cc=serue@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.