]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-super-userns.m4
Stack overflow in recursive bpobj_iterate_impl
[mirror_zfs.git] / config / kernel-super-userns.m4
CommitLineData
938cfeb0
NB
1dnl #
2dnl # 4.8 API change
3dnl # struct user_namespace was added to struct super_block as
4dnl # super->s_user_ns member
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_SUPER_USER_NS], [
7 AC_MSG_CHECKING([whether super_block->s_user_ns exists])
8 ZFS_LINUX_TRY_COMPILE([
9 #include <linux/fs.h>
10 #include <linux/user_namespace.h>
11 ],[
12 struct super_block super;
13 super.s_user_ns = (struct user_namespace *)NULL;
14 ],[
15 AC_MSG_RESULT(yes)
16 AC_DEFINE(HAVE_SUPER_USER_NS, 1,
17 [super_block->s_user_ns exists])
18 ],[
19 AC_MSG_RESULT(no)
20 ])
21])