1*eda14cbcSMatt Macydnl # 2*eda14cbcSMatt Macydnl # 3.5 API change, 3*eda14cbcSMatt Macydnl # Since usernamespaces were introduced in kernel version 3.5, it 4*eda14cbcSMatt Macydnl # became necessary to go through one more level of indirection 5*eda14cbcSMatt Macydnl # when dealing with uid/gid - namely the kuid type. 6*eda14cbcSMatt Macydnl # 7*eda14cbcSMatt Macydnl # 8*eda14cbcSMatt MacyAC_DEFUN([ZFS_AC_KERNEL_SRC_KUID_HELPERS], [ 9*eda14cbcSMatt Macy ZFS_LINUX_TEST_SRC([i_uid_read], [ 10*eda14cbcSMatt Macy #include <linux/fs.h> 11*eda14cbcSMatt Macy ],[ 12*eda14cbcSMatt Macy struct inode *ip = NULL; 13*eda14cbcSMatt Macy (void) i_uid_read(ip); 14*eda14cbcSMatt Macy ]) 15*eda14cbcSMatt Macy]) 16*eda14cbcSMatt Macy 17*eda14cbcSMatt MacyAC_DEFUN([ZFS_AC_KERNEL_KUID_HELPERS], [ 18*eda14cbcSMatt Macy AC_MSG_CHECKING([whether i_(uid|gid)_(read|write) exist]) 19*eda14cbcSMatt Macy ZFS_LINUX_TEST_RESULT([i_uid_read], [ 20*eda14cbcSMatt Macy AC_MSG_RESULT(yes) 21*eda14cbcSMatt Macy ],[ 22*eda14cbcSMatt Macy ZFS_LINUX_TEST_ERROR([i_uid_read]) 23*eda14cbcSMatt Macy ]) 24*eda14cbcSMatt Macy]) 25