The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/config/kernel-security-inode-init.m4

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 dnl #
    2 dnl # 3.2 API change
    3 dnl # The security_inode_init_security() API has been changed to include
    4 dnl # a filesystem specific callback to write security extended attributes.
    5 dnl # This was done to support the initialization of multiple LSM xattrs
    6 dnl # and the EVM xattr.
    7 dnl #
    8 AC_DEFUN([ZFS_AC_KERNEL_SRC_SECURITY_INODE_INIT_SECURITY_CALLBACK], [
    9         ZFS_LINUX_TEST_SRC([security_inode_init_security], [
   10                 #include <linux/security.h>
   11         ],[
   12                 struct inode *ip __attribute__ ((unused)) = NULL;
   13                 struct inode *dip __attribute__ ((unused)) = NULL;
   14                 const struct qstr *str __attribute__ ((unused)) = NULL;
   15                 initxattrs func __attribute__ ((unused)) = NULL;
   16 
   17                 security_inode_init_security(ip, dip, str, func, NULL);
   18         ])
   19 ])
   20 
   21 AC_DEFUN([ZFS_AC_KERNEL_SECURITY_INODE_INIT_SECURITY_CALLBACK], [
   22         AC_MSG_CHECKING([whether security_inode_init_security wants callback])
   23         ZFS_LINUX_TEST_RESULT([security_inode_init_security], [
   24                 AC_MSG_RESULT(yes)
   25         ],[
   26                 ZFS_LINUX_TEST_ERROR([security_inode_init_security callback])
   27         ])
   28 ])
   29 
   30 AC_DEFUN([ZFS_AC_KERNEL_SRC_SECURITY_INODE], [
   31         ZFS_AC_KERNEL_SRC_SECURITY_INODE_INIT_SECURITY_CALLBACK
   32 ])
   33 
   34 AC_DEFUN([ZFS_AC_KERNEL_SECURITY_INODE], [
   35         ZFS_AC_KERNEL_SECURITY_INODE_INIT_SECURITY_CALLBACK
   36 ])

Cache object: 4a2093a51ad354e5797e54a52767f4ad


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.