summaryrefslogtreecommitdiffstats
path: root/tools/include/uapi/linux/mount.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-03-19 12:10:49 +0100
committerIngo Molnar <mingo@kernel.org>2021-03-19 12:10:49 +0100
commit01438749e36bfe53ea25c91568019be775a9782e (patch)
treef91f5abae2004863afda683589d034dcd2000ab8 /tools/include/uapi/linux/mount.h
parent4faf62b1ef1a9367f7dcf8b7ce509980dfdcee83 (diff)
parentbee645788e07eea63055d261d2884ea45c2ba857 (diff)
downloadcachepc-linux-01438749e36bfe53ea25c91568019be775a9782e.tar.gz
cachepc-linux-01438749e36bfe53ea25c91568019be775a9782e.zip
Merge branch 'locking/urgent' into locking/core, to pick up dependent commits
We are applying further, lower-prio fixes on top of two ww_mutex fixes in locking/urgent. Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/include/uapi/linux/mount.h')
-rw-r--r--tools/include/uapi/linux/mount.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/mount.h b/tools/include/uapi/linux/mount.h
index dd8306ea336c..e6524ead2b7b 100644
--- a/tools/include/uapi/linux/mount.h
+++ b/tools/include/uapi/linux/mount.h
@@ -1,6 +1,8 @@
#ifndef _UAPI_LINUX_MOUNT_H
#define _UAPI_LINUX_MOUNT_H
+#include <linux/types.h>
+
/*
* These are the fs-independent mount-flags: up to 32 flags are supported
*
@@ -117,5 +119,19 @@ enum fsconfig_command {
#define MOUNT_ATTR_NOATIME 0x00000010 /* - Do not update access times. */
#define MOUNT_ATTR_STRICTATIME 0x00000020 /* - Always perform atime updates */
#define MOUNT_ATTR_NODIRATIME 0x00000080 /* Do not update directory access times */
+#define MOUNT_ATTR_IDMAP 0x00100000 /* Idmap mount to @userns_fd in struct mount_attr. */
+
+/*
+ * mount_setattr()
+ */
+struct mount_attr {
+ __u64 attr_set;
+ __u64 attr_clr;
+ __u64 propagation;
+ __u64 userns_fd;
+};
+
+/* List of all mount_attr versions. */
+#define MOUNT_ATTR_SIZE_VER0 32 /* sizeof first published struct */
#endif /* _UAPI_LINUX_MOUNT_H */