]>
Commit | Line | Data |
---|---|---|
82a1b2d6 NB |
1 | dnl # |
2 | dnl # 3.5 API change, | |
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. | |
6 | dnl # | |
7 | dnl # | |
8 | AC_DEFUN([ZFS_AC_KERNEL_KUID_HELPERS], [ | |
9 | AC_MSG_CHECKING([whether i_(uid|gid)_(read|write) exist]) | |
10 | ZFS_LINUX_TRY_COMPILE([ | |
11 | #include <linux/fs.h> | |
12 | ],[ | |
13 | struct inode *ip = NULL; | |
14 | (void) i_uid_read(ip); | |
15 | ],[ | |
16 | AC_MSG_RESULT(yes) | |
17 | AC_DEFINE(HAVE_KUID_HELPERS, 1, | |
18 | [i_(uid|gid)_(read|write) exist]) | |
19 | ],[ | |
20 | AC_MSG_RESULT(no) | |
21 | ]) | |
22 | ]) |