From: Casey Schaufler <casey@schaufler-ca.com>
To: "David P. Quigley" <dpquigl@tycho.nsa.gov>,
casey@schaufler-ca.com, chrisw@sous-sol.org, sds@tycho.nsa.gov,
jmorris@namei.org, hch@lst.de, viro@zeniv.linux.org.uk
Cc: selinux@tycho.nsa.gov, linux-security-module@vger.kernel.org,
linux-fsdevel@vger.kernel.org, nfsv4@linux-nfs.org
Subject: Re: [RFC]Introduce generalized hooks for getting and setting inode secctx v3
Date: Wed, 19 Mar 2008 06:38:09 -0700 (PDT) [thread overview]
Message-ID: <868245.60928.qm@web36604.mail.mud.yahoo.com> (raw)
In-Reply-To: <1205866664-24902-1-git-send-email-dpquigl@tycho.nsa.gov>
--- "David P. Quigley" <dpquigl@tycho.nsa.gov> wrote:
> This patch set does two things. First it factors the section of vfs_setxattr
> that does the real work into a helper function. This allows LSMs the ability
> to
> set the xattrs they need without hitting the permission check inside
> vfs_setxattr each time.
Why is this important? I'm perfectly willing to believe that it is,
but I would hesitate to say that it's completely obvious to the
casual observer. After all, we've gotten by with things the way they
are for some time. Perhaps you could describe the use to which you
would be putting this. I expect that if I go through the backlog
discussions on or about this topic I could probably make some
logical assumptions about what you want to do, but it will save
everyone some time if you could spell it out here.
> Second it introduces three new hooks
> inode_{get,set}secctx, and inode_notifysecctx.
>
> The first hook retreives all security information the
> LSM feels is relavent in the form of a security context. The second hook
> given
> this context can sets both the in-core and on-disk store for the particular
> inode. The third hook is used to notify the in-core inode of a change to it's
> security state.
I still dislike having an interface that explicitly disallows
security attribute integrity. That does not help me feel secure.
> This is the third revision of this patch which takes into account concerns by
> Casey Schaufler, and Christop Hellwig.
Casey Schaufler
casey@schaufler-ca.com
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
WARNING: multiple messages have this Message-ID (diff)
From: Casey Schaufler <casey@schaufler-ca.com>
To: "David P. Quigley" <dpquigl@tycho.nsa.gov>,
casey@schaufler-ca.com, chrisw@sous-sol.org, sds@tycho.nsa.gov,
jmorris@namei.org, hch@lst.de, viro@zeniv.linux.org.uk
Cc: linux-fsdevel@vger.kernel.org,
linux-security-module@vger.kernel.org, nfsv4@linux-nfs.org,
selinux@tycho.nsa.gov
Subject: Re: [RFC]Introduce generalized hooks for getting and setting inode secctx v3
Date: Wed, 19 Mar 2008 06:38:09 -0700 (PDT) [thread overview]
Message-ID: <868245.60928.qm@web36604.mail.mud.yahoo.com> (raw)
In-Reply-To: <1205866664-24902-1-git-send-email-dpquigl@tycho.nsa.gov>
--- "David P. Quigley" <dpquigl@tycho.nsa.gov> wrote:
> This patch set does two things. First it factors the section of vfs_setxattr
> that does the real work into a helper function. This allows LSMs the ability
> to
> set the xattrs they need without hitting the permission check inside
> vfs_setxattr each time.
Why is this important? I'm perfectly willing to believe that it is,
but I would hesitate to say that it's completely obvious to the
casual observer. After all, we've gotten by with things the way they
are for some time. Perhaps you could describe the use to which you
would be putting this. I expect that if I go through the backlog
discussions on or about this topic I could probably make some
logical assumptions about what you want to do, but it will save
everyone some time if you could spell it out here.
> Second it introduces three new hooks
> inode_{get,set}secctx, and inode_notifysecctx.
>
> The first hook retreives all security information the
> LSM feels is relavent in the form of a security context. The second hook
> given
> this context can sets both the in-core and on-disk store for the particular
> inode. The third hook is used to notify the in-core inode of a change to it's
> security state.
I still dislike having an interface that explicitly disallows
security attribute integrity. That does not help me feel secure.
> This is the third revision of this patch which takes into account concerns by
> Casey Schaufler, and Christop Hellwig.
Casey Schaufler
casey@schaufler-ca.com
next prev parent reply other threads:[~2008-03-19 14:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-18 18:57 [RFC]Introduce generalized hooks for getting and setting inode secctx v3 David P. Quigley
2008-03-18 18:57 ` David P. Quigley
2008-03-18 18:57 ` [PATCH 1/2] VFS: Factor out part of vfs_setxattr so it can be called from the SELinux hook for inode_setsecctx David P. Quigley
2008-03-18 18:57 ` David P. Quigley
2008-03-18 18:57 ` [PATCH 2/2] LSM/SELinux: inode_{get,set}secctx hooks to access LSM security context information David P. Quigley
2008-03-18 18:57 ` David P. Quigley
2008-03-19 13:38 ` Casey Schaufler [this message]
2008-03-19 13:38 ` [RFC]Introduce generalized hooks for getting and setting inode secctx v3 Casey Schaufler
2008-03-19 14:19 ` James Morris
2008-03-19 14:19 ` James Morris
2008-03-19 14:28 ` Stephen Smalley
2008-03-19 14:28 ` Stephen Smalley
2008-03-19 15:11 ` Casey Schaufler
2008-03-19 15:11 ` Casey Schaufler
2008-03-19 15:20 ` Stephen Smalley
2008-03-19 15:20 ` Stephen Smalley
2008-03-19 15:24 ` James Morris
2008-03-19 15:24 ` 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=868245.60928.qm@web36604.mail.mud.yahoo.com \
--to=casey@schaufler-ca.com \
--cc=chrisw@sous-sol.org \
--cc=dpquigl@tycho.nsa.gov \
--cc=hch@lst.de \
--cc=jmorris@namei.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=nfsv4@linux-nfs.org \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=viro@zeniv.linux.org.uk \
/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.