Linux 3.2 compat, security_inode_init_security()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 12 Jan 2012 21:59:44 +0000 (13:59 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 12 Jan 2012 23:06:39 +0000 (15:06 -0800)
commit166dd49de0272e6f179e5fd6a41eebb4880a1154
tree6edeade75ae3a8613b4cdfd2fef9b358041638d2
parent2932b6a8004df8417036894d7d2e7e151cc95434
Linux 3.2 compat, security_inode_init_security()

The security_inode_init_security() API has been changed to include
a filesystem specific callback to write security extended attributes.
This was done to support the initialization of multiple LSM xattrs
and the EVM xattr.

This change updates the code to use the new API when it's available.
Otherwise it falls back to the previous implementation.

In addition, the ZFS_AC_KERNEL_6ARGS_SECURITY_INODE_INIT_SECURITY
autoconf test has been made more rigerous by passing the expected
types.  This is done to ensure we always properly the detect the
correct form for the security_inode_init_security() API.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #516
config/kernel-security-inode-init.m4
config/kernel.m4
configure
module/zfs/zpl_xattr.c
zfs_config.h.in