linux/fs/kernfs
Tejun Heo 2322392b02 kernfs: implement "trusted.*" xattr support
kernfs inherited "security.*" xattr support from sysfs.  This patch
extends xattr support to "trusted.*" using simple_xattr_*().  As
trusted xattrs are restricted to CAP_SYS_ADMIN, simple_xattr_*() which
uses kernel memory for storage shouldn't be problematic.

Note that the existing "security.*" support doesn't implement
get/remove/list and the this patch only implements those ops for
"trusted.*".  We probably want to extend those ops to include support
for "security.*".

This patch will allow using kernfs from cgroup which requires
"trusted.*" xattr support.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: David P. Quigley <dpquigl@tycho.nsa.gov>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-04 07:34:45 -08:00
..
dir.c kernfs: implement "trusted.*" xattr support 2013-12-04 07:34:45 -08:00
file.c sysfs, kernfs: make inode number ida per kernfs_root 2013-11-29 18:10:48 -08:00
inode.c kernfs: implement "trusted.*" xattr support 2013-12-04 07:34:45 -08:00
kernfs-internal.h kernfs: implement "trusted.*" xattr support 2013-12-04 07:34:45 -08:00
Makefile sysfs, kernfs: add skeletons for kernfs 2013-11-27 13:28:24 -08:00
mount.c sysfs, kernfs: move mount core code to fs/kernfs/mount.c 2013-11-29 18:16:08 -08:00
symlink.c kernfs: implement "trusted.*" xattr support 2013-12-04 07:34:45 -08:00