All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC]Introduce generalized hooks for getting and setting inode secctx v3
@ 2008-03-18 18:57 ` David P. Quigley
  0 siblings, 0 replies; 18+ messages in thread
From: David P. Quigley @ 2008-03-18 18:57 UTC (permalink / raw)
  To: casey, chrisw, sds, jmorris, hch, viro
  Cc: selinux, linux-security-module, linux-fsdevel, nfsv4

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. 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.

This is the third revision of this patch which takes into account concerns by
Casey Schaufler, and Christop Hellwig.

fs/xattr.c               |   55 +++++++++++++++++++++++++++++++++++-----------
 include/linux/security.h |   37 +++++++++++++++++++++++++++++++
 include/linux/xattr.h    |    3 +-
 security/dummy.c         |   17 ++++++++++++++
 security/security.c      |   18 +++++++++++++++
 security/selinux/hooks.c |   32 ++++++++++++++++++++++++++-
 6 files changed, 147 insertions(+), 15 deletions(-)



--
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.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2008-03-19 15:24 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [RFC]Introduce generalized hooks for getting and setting inode secctx v3 Casey Schaufler
2008-03-19 13:38   ` 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

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.