diff options
author | Brian Behlendorf <[email protected]> | 2011-05-19 12:47:32 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-07-01 12:40:08 -0700 |
commit | 5c03efc379693f992ebe39c6a00c7297c4a304ea (patch) | |
tree | 276b91b77f0fcd1c09774dcdc8b8d831b54be729 /config/kernel-security-inode-init.m4 | |
parent | bd2f5ac97f4265523fb1397d845eabb8647c79e4 (diff) |
Linux compat 2.6.39: security_inode_init_security()
The security_inode_init_security() function now takes an additional
qstr argument which must be passed in from the dentry if available.
Passing a NULL is safe when no qstr is available the relevant
security checks will just be skipped.
Closes #246
Closes #217
Closes #187
Diffstat (limited to 'config/kernel-security-inode-init.m4')
-rw-r--r-- | config/kernel-security-inode-init.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/kernel-security-inode-init.m4 b/config/kernel-security-inode-init.m4 new file mode 100644 index 000000000..a26de9fd6 --- /dev/null +++ b/config/kernel-security-inode-init.m4 @@ -0,0 +1,24 @@ +dnl # +dnl # 2.6.39 API change +dnl # The security_inode_init_security() function now takes an additional +dnl # qstr argument which must be passed in from the dentry if available. +dnl # Passing a NULL is safe when no qstr is available the relevant +dnl # security checks will just be skipped. +dnl # +AC_DEFUN([ZFS_AC_KERNEL_6ARGS_SECURITY_INODE_INIT_SECURITY], [ + AC_MSG_CHECKING([whether security_inode_init_security wants 6 args]) + tmp_flags="$EXTRA_KCFLAGS" + EXTRA_KCFLAGS="-Werror" + ZFS_LINUX_TRY_COMPILE([ + #include <linux/security.h> + ],[ + security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL); + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY, 1, + [security_inode_init_security wants 6 args]) + ],[ + AC_MSG_RESULT(no) + ]) + EXTRA_KCFLAGS="$tmp_flags" +]) |