[lkml]   [2013]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCHSET REPOST driver-core-next] kernfs: implement trusted.* xattr support

This is repost of [L], rebased on top of the refreshed patches.

kernfs inherited "security.*" xattr support from sysfs but for it to
be useable for cgroupfs, it needs to support "trusted.*" too. This
patchset adds "trusted.*" xattr support using simple_xattr*().

Note that the existing "security.*" support is gimped in that it
doesn't include remove/get/list. This patchset implements all
operations for "trusted.*" but doesn't change "security.*" support.

David P. Quigley, can you please comment on this? It doesn't seem
like adding it would be too difficult. Why don't we have it yet? Are
they unnecessary?

This patchset contains the following two patches.


0001 preps and 0002 implements.

This patchset is on top of

v3.13-rc1 6ce4eac1f600 ("Linux 3.13-rc1")
+ [1] sysfs: handle duplicate removal attempts in sysfs_remove_group()
+ [2] sysfs: use a separate locking class for open files depending on mmap
+ [3] sysfs: separate out kernfs, take #3

and available in the following git branch.

git:// review-kernfs-xattr

diffstat follows. Thanks.

fs/kernfs/dir.c | 12 +++-
fs/kernfs/inode.c | 123 ++++++++++++++++++++++++++++----------------
fs/kernfs/kernfs-internal.h | 13 +++-
fs/kernfs/symlink.c | 3 +
4 files changed, 103 insertions(+), 48 deletions(-)



 \ /
  Last update: 2013-11-24 00:01    [W:0.342 / U:4.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site