]> git.baikalelectronics.ru Git - kernel.git/commit
security: new security_inode_init_security API adds function callback
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 6 Jun 2011 19:29:25 +0000 (15:29 -0400)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 18 Jul 2011 16:29:38 +0000 (12:29 -0400)
commit97fcc5ddb1ba1a6bb081e7b4a9a123edfbb7f1e4
tree3ba2367380d009111ea17696162a62320c88d144
parent97192dbf5e418c0eb4f47ccdadc3c337c521fd04
security: new security_inode_init_security API adds function callback

This patch changes the security_inode_init_security API by adding a
filesystem specific callback to write security extended attributes.
This change is in preparation for supporting the initialization of
multiple LSM xattrs and the EVM xattr.  Initially the callback function
walks an array of xattrs, writing each xattr separately, but could be
optimized to write multiple xattrs at once.

For existing security_inode_init_security() calls, which have not yet
been converted to use the new callback function, such as those in
reiserfs and ocfs2, this patch defines security_old_inode_init_security().

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
14 files changed:
fs/btrfs/xattr.c
fs/ext2/xattr_security.c
fs/ext3/xattr_security.c
fs/ext4/xattr_security.c
fs/gfs2/inode.c
fs/jffs2/security.c
fs/jfs/xattr.c
fs/ocfs2/xattr.c
fs/reiserfs/xattr_security.c
fs/xfs/linux-2.6/xfs_iops.c
include/linux/security.h
include/linux/xattr.h
mm/shmem.c
security/security.c