]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-user-ns-inum.m4
Linux 6.8 compat: handle mnt_idmap user_namespace change
[mirror_zfs.git] / config / kernel-user-ns-inum.m4
1 dnl #
2 dnl # 3.18 API change
3 dnl # struct user_namespace inum moved from .proc_inum to .ns.inum.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_USER_NS_COMMON_INUM], [
6 ZFS_LINUX_TEST_SRC([user_ns_common_inum], [
7 #include <linux/user_namespace.h>
8 ], [
9 struct user_namespace uns;
10 uns.ns.inum = 0;
11 ])
12 ])
13
14 AC_DEFUN([ZFS_AC_KERNEL_USER_NS_COMMON_INUM], [
15 AC_MSG_CHECKING([whether user_namespace->ns.inum exists])
16 ZFS_LINUX_TEST_RESULT([user_ns_common_inum], [
17 AC_MSG_RESULT(yes)
18 AC_DEFINE(HAVE_USER_NS_COMMON_INUM, 1,
19 [user_namespace->ns.inum exists])
20 ],[
21 AC_MSG_RESULT(no)
22 ])
23 ])