All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Paris <eparis@redhat.com>
To: John Stoffel <john@stoffel.org>
Cc: xfs-masters@oss.sgi.com, linux-btrfs@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org,
	cluster-devel@redhat.com, linux-mtd@lists.infradead.org,
	jfs-discussion@lists.sourceforge.net, ocfs2-devel@oss.oracle.com,
	reiserfs-devel@vger.kernel.org, xfs@oss.sgi.com,
	linux-mm@kvack.org, linux-security-module@vger.kernel.org,
	chris.mason@oracle.com, jack@suse.cz, akpm@linux-foundation.org,
	adilger.kernel@dilger.ca, tytso@mit.edu, swhiteho@redhat.com,
	dwmw2@infradead.org, shaggy@linux.vnet.ibm.com, mfasheh@suse.com,
	joel.becker@oracle.com, aelder@sgi.com, hughd@google.com,
	jmorris@namei.org, sds@tycho.nsa.gov, eparis@parisplace.org,
	hch@lst.de, dchinner@redhat.com, viro@zeniv.linux.org.uk,
	shemminger@vyatta.com, jeffm@suse.com, paul.moore@hp.com,
	penguin-kernel@I-love.SAKURA.
Subject: Re: [PATCH] fs/vfs/security: pass last path component to LSM on inode creation
Date: Thu, 09 Dec 2010 13:05:21 -0500	[thread overview]
Message-ID: <1291917921.12683.4.camel@localhost.localdomain> (raw)
In-Reply-To: <19713.5738.653711.301814@quad.stoffel.home>

On Thu, 2010-12-09 at 12:48 -0500, John Stoffel wrote:
> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> On Thu, 2010-12-09 at 10:05 -0500, John Stoffel wrote:
> >> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> This patch adds a 4th piece of information, the name of the
> Eric> object being created.  An obvious situation where this will be
> Eric> useful is devtmpfs (although you'll find other examples in the
> Eric> above thread).  devtmpfs when it creates char/block devices is
> Eric> unable to distinguish between kmem and console and so they are
> Eric> created with a generic label.  hotplug/udev is then called which
> Eric> does some pathname like matching and relabels them to something
> Eric> more specific.  We've found that many people are able to race
> Eric> against this particular updating and get spurious denials in
> Eric> /dev.  With this patch devtmpfs will be able to get the labels
> Eric> correct to begin with.
> 
> So your Label based access controls are *also* based on pathnames?
> Right?

Access decisions are still based solely on the label.  This patch can
influence how new objects get their label, which makes the access
decisions indirectly path based.  You'll find a reasonable summary and
commentary on lwn in this weeks security section.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

WARNING: multiple messages have this Message-ID (diff)
From: Eric Paris <eparis@redhat.com>
To: John Stoffel <john@stoffel.org>
Cc: jfs-discussion@lists.sourceforge.net, jack@suse.cz,
	penguin-kernel@I-love.SAKURA.ne.jp, jeffm@suse.com,
	jmorris@namei.org, dhowells@redhat.com, linux-mm@kvack.org,
	linux-mtd@lists.infradead.org, shaggy@linux.vnet.ibm.com,
	shemminger@vyatta.com, hch@lst.de, hughd@google.com,
	joel.becker@oracle.com, cluster-devel@redhat.com, aelder@sgi.com,
	kees.cook@canonical.com, linux-ext4@vger.kernel.org,
	sds@tycho.nsa.gov, paul.moore@hp.com, mfasheh@suse.com,
	reiserfs-devel@vger.kernel.org, xfs@oss.sgi.com,
	xfs-masters@oss.sgi.com, viro@zeniv.linux.org.uk,
	dchinner@redhat.com, eparis@parisplace.org, swhiteho@redhat.com,
	chris.mason@oracle.com, tytso@mit.edu,
	linux-kernel@vger.kernel.org,
	linux-security-module@vger.kernel.org,
	linux-btrfs@vger.kernel.org, casey@schaufler-ca.com,
	adilger.kernel@dilger.ca, akpm@linux-foundation.org,
	dwmw2@infradead.org, ocfs2-devel@oss.oracle.com
Subject: Re: [PATCH] fs/vfs/security: pass last path component to LSM on inode creation
Date: Thu, 09 Dec 2010 13:05:21 -0500	[thread overview]
Message-ID: <1291917921.12683.4.camel@localhost.localdomain> (raw)
In-Reply-To: <19713.5738.653711.301814@quad.stoffel.home>

On Thu, 2010-12-09 at 12:48 -0500, John Stoffel wrote:
> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> On Thu, 2010-12-09 at 10:05 -0500, John Stoffel wrote:
> >> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> This patch adds a 4th piece of information, the name of the
> Eric> object being created.  An obvious situation where this will be
> Eric> useful is devtmpfs (although you'll find other examples in the
> Eric> above thread).  devtmpfs when it creates char/block devices is
> Eric> unable to distinguish between kmem and console and so they are
> Eric> created with a generic label.  hotplug/udev is then called which
> Eric> does some pathname like matching and relabels them to something
> Eric> more specific.  We've found that many people are able to race
> Eric> against this particular updating and get spurious denials in
> Eric> /dev.  With this patch devtmpfs will be able to get the labels
> Eric> correct to begin with.
> 
> So your Label based access controls are *also* based on pathnames?
> Right?

Access decisions are still based solely on the label.  This patch can
influence how new objects get their label, which makes the access
decisions indirectly path based.  You'll find a reasonable summary and
commentary on lwn in this weeks security section.

WARNING: multiple messages have this Message-ID (diff)
From: Eric Paris <eparis@redhat.com>
To: John Stoffel <john@stoffel.org>
Cc: jfs-discussion@lists.sourceforge.net, jack@suse.cz,
	jeffm@suse.com, jmorris@namei.org, dhowells@redhat.com,
	linux-mm@kvack.org, linux-mtd@lists.infradead.org,
	shaggy@linux.vnet.ibm.com, shemminger@vyatta.com, hch@lst.de,
	penguin-kernel@I-love.SAKURA.ne.jp, hughd@google.com,
	joel.becker@oracle.com, cluster-devel@redhat.com, aelder@sgi.com,
	kees.cook@canonical.com, linux-ext4@vger.kernel.org,
	sds@tycho.nsa.gov, paul.moore@hp.com, mfasheh@suse.com,
	reiserfs-devel@vger.kernel.org, xfs@oss.sgi.com,
	xfs-masters@oss.sgi.com, viro@zeniv.linux.org.uk,
	dchinner@redhat.com, eparis@parisplace.org, swhiteho@redhat.com,
	chris.mason@oracle.com, tytso@mit.edu,
	linux-kernel@vger.kernel.org,
	linux-security-module@vger.kernel.org,
	linux-btrfs@vger.kernel.org, casey@schaufler-ca.com,
	adilger.kernel@dilger.ca, akpm@linux-foundation.org,
	dwmw2@infradead.org, ocfs2-devel@oss.oracle.com
Subject: Re: [PATCH] fs/vfs/security: pass last path component to LSM on inode creation
Date: Thu, 09 Dec 2010 13:05:21 -0500	[thread overview]
Message-ID: <1291917921.12683.4.camel@localhost.localdomain> (raw)
In-Reply-To: <19713.5738.653711.301814@quad.stoffel.home>

On Thu, 2010-12-09 at 12:48 -0500, John Stoffel wrote:
> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> On Thu, 2010-12-09 at 10:05 -0500, John Stoffel wrote:
> >> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> This patch adds a 4th piece of information, the name of the
> Eric> object being created.  An obvious situation where this will be
> Eric> useful is devtmpfs (although you'll find other examples in the
> Eric> above thread).  devtmpfs when it creates char/block devices is
> Eric> unable to distinguish between kmem and console and so they are
> Eric> created with a generic label.  hotplug/udev is then called which
> Eric> does some pathname like matching and relabels them to something
> Eric> more specific.  We've found that many people are able to race
> Eric> against this particular updating and get spurious denials in
> Eric> /dev.  With this patch devtmpfs will be able to get the labels
> Eric> correct to begin with.
> 
> So your Label based access controls are *also* based on pathnames?
> Right?

Access decisions are still based solely on the label.  This patch can
influence how new objects get their label, which makes the access
decisions indirectly path based.  You'll find a reasonable summary and
commentary on lwn in this weeks security section.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

WARNING: multiple messages have this Message-ID (diff)
From: Eric Paris <eparis@redhat.com>
To: John Stoffel <john@stoffel.org>
Cc: xfs-masters@oss.sgi.com, linux-btrfs@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org,
	cluster-devel@redhat.com, linux-mtd@lists.infradead.org,
	jfs-discussion@lists.sourceforge.net, ocfs2-devel@oss.oracle.com,
	reiserfs-devel@vger.kernel.org, xfs@oss.sgi.com,
	linux-mm@kvack.org, linux-security-module@vger.kernel.org,
	chris.mason@oracle.com, jack@suse.cz, akpm@linux-foundation.org,
	adilger.kernel@dilger.ca, tytso@mit.edu, swhiteho@redhat.com,
	dwmw2@infradead.org, shaggy@linux.vnet.ibm.com, mfasheh@suse.com,
	joel.becker@oracle.com, aelder@sgi.com, hughd@google.com,
	jmorris@namei.org, sds@tycho.nsa.gov, eparis@parisplace.org,
	hch@lst.de, dchinner@redhat.com, viro@zeniv.linux.org.uk,
	shemminger@vyatta.com, jeffm@suse.com, paul.moore@hp.com,
	penguin-kernel@I-love.SAKURA.
Subject: [Ocfs2-devel] [PATCH] fs/vfs/security: pass last path component to LSM on inode creation
Date: Thu, 09 Dec 2010 13:05:21 -0500	[thread overview]
Message-ID: <1291917921.12683.4.camel@localhost.localdomain> (raw)
In-Reply-To: <19713.5738.653711.301814@quad.stoffel.home>

On Thu, 2010-12-09 at 12:48 -0500, John Stoffel wrote:
> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> On Thu, 2010-12-09 at 10:05 -0500, John Stoffel wrote:
> >> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> This patch adds a 4th piece of information, the name of the
> Eric> object being created.  An obvious situation where this will be
> Eric> useful is devtmpfs (although you'll find other examples in the
> Eric> above thread).  devtmpfs when it creates char/block devices is
> Eric> unable to distinguish between kmem and console and so they are
> Eric> created with a generic label.  hotplug/udev is then called which
> Eric> does some pathname like matching and relabels them to something
> Eric> more specific.  We've found that many people are able to race
> Eric> against this particular updating and get spurious denials in
> Eric> /dev.  With this patch devtmpfs will be able to get the labels
> Eric> correct to begin with.
> 
> So your Label based access controls are *also* based on pathnames?
> Right?

Access decisions are still based solely on the label.  This patch can
influence how new objects get their label, which makes the access
decisions indirectly path based.  You'll find a reasonable summary and
commentary on lwn in this weeks security section.

WARNING: multiple messages have this Message-ID (diff)
From: Eric Paris <eparis@redhat.com>
To: John Stoffel <john@stoffel.org>
Cc: xfs-masters@oss.sgi.com, linux-btrfs@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org,
	cluster-devel@redhat.com, linux-mtd@lists.infradead.org,
	jfs-discussion@lists.sourceforge.net, ocfs2-devel@oss.oracle.com,
	reiserfs-devel@vger.kernel.org, xfs@oss.sgi.com,
	linux-mm@kvack.org, linux-security-module@vger.kernel.org,
	chris.mason@oracle.com, jack@suse.cz, akpm@linux-foundation.org,
	adilger.kernel@dilger.ca, tytso@mit.edu, swhiteho@redhat.com,
	dwmw2@infradead.org, shaggy@linux.vnet.ibm.com, mfasheh@suse.com,
	joel.becker@oracle.com, aelder@sgi.com, hughd@google.com,
	jmorris@namei.org, sds@tycho.nsa.gov, eparis@parisplace.org,
	hch@lst.de, dchinner@redhat.com, viro@zeniv.linux.org.uk,
	shemminger@vyatta.com, jeffm@suse.com, paul.moore@hp.com,
	penguin-kernel@I-love.SAKURA.ne.jp, casey@schaufler-ca.com,
	kees.cook@canonical.com, dhowells@redhat.com
Subject: Re: [PATCH] fs/vfs/security: pass last path component to LSM on inode creation
Date: Thu, 09 Dec 2010 13:05:21 -0500	[thread overview]
Message-ID: <1291917921.12683.4.camel@localhost.localdomain> (raw)
In-Reply-To: <19713.5738.653711.301814@quad.stoffel.home>

On Thu, 2010-12-09 at 12:48 -0500, John Stoffel wrote:
> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> On Thu, 2010-12-09 at 10:05 -0500, John Stoffel wrote:
> >> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> This patch adds a 4th piece of information, the name of the
> Eric> object being created.  An obvious situation where this will be
> Eric> useful is devtmpfs (although you'll find other examples in the
> Eric> above thread).  devtmpfs when it creates char/block devices is
> Eric> unable to distinguish between kmem and console and so they are
> Eric> created with a generic label.  hotplug/udev is then called which
> Eric> does some pathname like matching and relabels them to something
> Eric> more specific.  We've found that many people are able to race
> Eric> against this particular updating and get spurious denials in
> Eric> /dev.  With this patch devtmpfs will be able to get the labels
> Eric> correct to begin with.
> 
> So your Label based access controls are *also* based on pathnames?
> Right?

Access decisions are still based solely on the label.  This patch can
influence how new objects get their label, which makes the access
decisions indirectly path based.  You'll find a reasonable summary and
commentary on lwn in this weeks security section.


WARNING: multiple messages have this Message-ID (diff)
From: Eric Paris <eparis@redhat.com>
To: John Stoffel <john@stoffel.org>
Cc: xfs-masters@oss.sgi.com, linux-btrfs@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-ext4@vger.kernel.org,
	cluster-devel@redhat.com, linux-mtd@lists.infradead.org,
	jfs-discussion@lists.sourceforge.net, ocfs2-devel@oss.oracle.com,
	reiserfs-devel@vger.kernel.org, xfs@oss.sgi.com,
	linux-mm@kvack.org, linux-security-module@vger.kernel.org,
	chris.mason@oracle.com, jack@suse.cz, akpm@linux-foundation.org,
	adilger.kernel@dilger.ca, tytso@mit.edu, swhiteho@redhat.com,
	dwmw2@infradead.org, shaggy@linux.vnet.ibm.com, mfasheh@suse.com,
	joel.becker@oracle.com, aelder@sgi.com, hughd@google.com,
	jmorris@namei.org, sds@tycho.nsa.gov, eparis@parisplace.org,
	hch@lst.de, dchinner@redhat.com, viro@zeniv.linux.org.uk,
	shemminger@vyatta.com, jeffm@suse.com, paul.moore@hp.com,
	penguin-kernel@I-love.SAKURA.ne.jp, casey@schaufler-ca.com,
	kees.cook@canonical.com, dhowells@redhat.com
Subject: Re: [PATCH] fs/vfs/security: pass last path component to LSM on inode creation
Date: Thu, 09 Dec 2010 13:05:21 -0500	[thread overview]
Message-ID: <1291917921.12683.4.camel@localhost.localdomain> (raw)
In-Reply-To: <19713.5738.653711.301814@quad.stoffel.home>

On Thu, 2010-12-09 at 12:48 -0500, John Stoffel wrote:
> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> On Thu, 2010-12-09 at 10:05 -0500, John Stoffel wrote:
> >> >>>>> "Eric" == Eric Paris <eparis@redhat.com> writes:
> 
> Eric> This patch adds a 4th piece of information, the name of the
> Eric> object being created.  An obvious situation where this will be
> Eric> useful is devtmpfs (although you'll find other examples in the
> Eric> above thread).  devtmpfs when it creates char/block devices is
> Eric> unable to distinguish between kmem and console and so they are
> Eric> created with a generic label.  hotplug/udev is then called which
> Eric> does some pathname like matching and relabels them to something
> Eric> more specific.  We've found that many people are able to race
> Eric> against this particular updating and get spurious denials in
> Eric> /dev.  With this patch devtmpfs will be able to get the labels
> Eric> correct to begin with.
> 
> So your Label based access controls are *also* based on pathnames?
> Right?

Access decisions are still based solely on the label.  This patch can
influence how new objects get their label, which makes the access
decisions indirectly path based.  You'll find a reasonable summary and
commentary on lwn in this weeks security section.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2010-12-09 18:05 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-08 19:45 [PATCH] fs/vfs/security: pass last path component to LSM on inode creation Eric Paris
2011-07-08 16:06 ` [Ocfs2-devel] " Eric Paris
2010-12-08 19:45 ` Eric Paris
2010-12-08 19:45 ` Eric Paris
2010-12-08 19:45 ` Eric Paris
2010-12-08 19:45 ` Eric Paris
2010-12-09 15:05 ` John Stoffel
2010-12-09 15:05   ` John Stoffel
2010-12-09 15:05   ` John Stoffel
2010-12-09 15:05   ` [Ocfs2-devel] " John Stoffel
2010-12-09 15:05   ` John Stoffel
2010-12-09 15:05   ` John Stoffel
2010-12-09 15:52   ` Eric Paris
2010-12-09 15:52     ` Eric Paris
2010-12-09 15:52     ` Eric Paris
2010-12-09 15:52     ` [Ocfs2-devel] " Eric Paris
2010-12-09 15:52     ` Eric Paris
2010-12-09 15:52     ` Eric Paris
2010-12-09 17:48     ` John Stoffel
2010-12-09 17:48       ` John Stoffel
2010-12-09 17:48       ` John Stoffel
2010-12-09 17:48       ` [Ocfs2-devel] " John Stoffel
2010-12-09 17:48       ` John Stoffel
2010-12-09 17:48       ` John Stoffel
2010-12-09 18:05       ` Eric Paris [this message]
2010-12-09 18:05         ` Eric Paris
2010-12-09 18:05         ` Eric Paris
2010-12-09 18:05         ` [Ocfs2-devel] " Eric Paris
2010-12-09 18:05         ` Eric Paris
2010-12-09 18:05         ` Eric Paris
2010-12-09 16:05   ` Serge Hallyn
2010-12-09 16:05     ` Serge Hallyn
2010-12-09 16:05     ` Serge Hallyn
2010-12-09 16:05     ` [Ocfs2-devel] " Serge Hallyn
2010-12-09 16:05     ` Serge Hallyn
2010-12-09 16:05     ` Serge Hallyn
2011-07-08 16:17 ` Al Viro
2011-07-08 16:18   ` [Ocfs2-devel] " Al Viro
2011-07-08 16:17   ` Al Viro
2011-07-08 16:17   ` Al Viro
2011-07-08 16:17   ` Al Viro
2011-07-08 16:17   ` Al Viro
  -- strict thread matches above, loose matches on Subject: below --
2010-12-08 19:45 Eric Paris

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=1291917921.12683.4.camel@localhost.localdomain \
    --to=eparis@redhat.com \
    --cc=adilger.kernel@dilger.ca \
    --cc=aelder@sgi.com \
    --cc=akpm@linux-foundation.org \
    --cc=chris.mason@oracle.com \
    --cc=cluster-devel@redhat.com \
    --cc=dchinner@redhat.com \
    --cc=dwmw2@infradead.org \
    --cc=eparis@parisplace.org \
    --cc=hch@lst.de \
    --cc=hughd@google.com \
    --cc=jack@suse.cz \
    --cc=jeffm@suse.com \
    --cc=jfs-discussion@lists.sourceforge.net \
    --cc=jmorris@namei.org \
    --cc=joel.becker@oracle.com \
    --cc=john@stoffel.org \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=mfasheh@suse.com \
    --cc=ocfs2-devel@oss.oracle.com \
    --cc=paul.moore@hp.com \
    --cc=penguin-kernel@I-love.SAKURA. \
    --cc=reiserfs-devel@vger.kernel.org \
    --cc=sds@tycho.nsa.gov \
    --cc=shaggy@linux.vnet.ibm.com \
    --cc=shemminger@vyatta.com \
    --cc=swhiteho@redhat.com \
    --cc=tytso@mit.edu \
    --cc=viro@zeniv.linux.org.uk \
    --cc=xfs-masters@oss.sgi.com \
    --cc=xfs@oss.sgi.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.