4 dnl # Check if APIs for idmapped mount are available
6 AC_DEFUN([ZFS_AC_KERNEL_SRC_IDMAP_MNT_API], [
7 ZFS_LINUX_TEST_SRC([idmap_mnt_api], [
11 fs_flags |= FS_ALLOW_IDMAP;
15 AC_DEFUN([ZFS_AC_KERNEL_IDMAP_MNT_API], [
16 AC_MSG_CHECKING([whether APIs for idmapped mount are present])
17 ZFS_LINUX_TEST_RESULT([idmap_mnt_api], [
19 AC_DEFINE(HAVE_IDMAP_MNT_API, 1,
20 [APIs for idmapped mount are present])
27 dnl # 6.8 decouples mnt_idmap from user_namespace. This is all internal
28 dnl # to mnt_idmap so we can't detect it directly, but we detect a related
29 dnl # change as use that as a signal.
31 AC_DEFUN([ZFS_AC_KERNEL_SRC_IDMAP_NO_USERNS], [
32 ZFS_LINUX_TEST_SRC([idmap_no_userns], [
33 #include <linux/uidgid.h>
35 struct uid_gid_map *map = NULL;
41 AC_DEFUN([ZFS_AC_KERNEL_IDMAP_NO_USERNS], [
42 AC_MSG_CHECKING([whether idmapped mounts have a user namespace])
43 ZFS_LINUX_TEST_RESULT([idmap_no_userns], [
45 AC_DEFINE(HAVE_IDMAP_NO_USERNS, 1,
46 [mnt_idmap does not have user_namespace])