3 dnl # Since usernamespaces were introduced in kernel version 3.5, it
4 dnl # became necessary to go through one more level of indirection
5 dnl # when dealing with uid/gid - namely the kuid type.
8 AC_DEFUN([ZFS_AC_KERNEL_KUID_HELPERS], [
9 AC_MSG_CHECKING([whether i_(uid|gid)_(read|write) exist])
10 ZFS_LINUX_TRY_COMPILE([
13 struct inode *ip = NULL;
14 (void) i_uid_read(ip);
17 AC_DEFINE(HAVE_KUID_HELPERS, 1,
18 [i_(uid|gid)_(read|write) exist])