linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] selinux: Stop looking up dentries from inodes
@ 2016-05-30 13:59 Andreas Gruenbacher
  2016-05-30 13:59 ` [RFC 1/2] " Andreas Gruenbacher
  2016-05-30 13:59 ` [RFC 2/2] overlayfs: Make getxattr work with inode only Andreas Gruenbacher
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Gruenbacher @ 2016-05-30 13:59 UTC (permalink / raw)
  To: Alexander Viro, Paul Moore, Stephen Smalley, Eric Paris
  Cc: Andreas Gruenbacher, linux-fsdevel, selinux

Here is an attempt at getting rid of d_find_alias in SELinux.  The first patch
makes SELinux call getxattr with a NULL dentry when the dentry is unknown
instead of using a random alias dentry, and makes getxattr fail with -ECHILD on
filesystems that cannot do getxattr with only an inode.  The second patch
changes getxattr on overlayfs so that it works with just an inode.  This leaves
9p and cifs as the filesystems where getxattr without a dentry doesn't make
sense.

These patches are based on mainline + Miklos's overlayfs-next branch:

  https://git.kernel.org/cgit/linux/kernel/git/mszeredi/vfs.git/log/?h=overlayfs-next

Git version:

  https://git.kernel.org/cgit/linux/kernel/git/agruen/linux.git/log/?h=work.selinux

Comments?

Thanks,
Andreas

Andreas Gruenbacher (2):
  selinux: Stop looking up dentries from inodes
  overlayfs: Make getxattr work with inode only

 fs/9p/acl.c              |  3 +++
 fs/9p/xattr.c            |  3 +++
 fs/cifs/xattr.c          |  9 +++++++--
 fs/ecryptfs/inode.c      |  8 ++++++--
 fs/overlayfs/inode.c     | 26 +++++++++++++++++---------
 fs/overlayfs/overlayfs.h |  1 +
 fs/overlayfs/super.c     | 10 +++++++---
 net/socket.c             |  3 +++
 security/selinux/hooks.c | 43 +++++++++++++++----------------------------
 9 files changed, 62 insertions(+), 44 deletions(-)

-- 
2.5.5


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

end of thread, other threads:[~2016-06-03 13:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-30 13:59 [RFC 0/2] selinux: Stop looking up dentries from inodes Andreas Gruenbacher
2016-05-30 13:59 ` [RFC 1/2] " Andreas Gruenbacher
2016-05-31 14:44   ` Stephen Smalley
2016-05-31 15:22     ` Andreas Gruenbacher
2016-06-01 13:44       ` Stephen Smalley
2016-06-01 21:46         ` Andreas Gruenbacher
2016-06-03 13:06           ` Stephen Smalley
2016-05-30 13:59 ` [RFC 2/2] overlayfs: Make getxattr work with inode only Andreas Gruenbacher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).