User: Password:
Subscribe / Log in / New account

kernfs: implement trusted.* xattr support

From:  Tejun Heo <>
Subject:  [PATCHSET driver-core-next] kernfs: implement trusted.* xattr support
Date:  Mon, 4 Nov 2013 21:08:40 -0500
Message-ID:  <>
Archive-link:  Article


(This is for 3.14-rc1.  Posting early for review.  Will refresh and
repost once the next driver-core-next opens.)

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

  driver-core-next 0cae60f91494 ("sysfs: rename sysfs_assoc_lock and explain what it's about")
+ [1] [PATCHSET] sysfs: separate out kernfs, take #2

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(-)



Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds