summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2023-01-10 14:48:06 +0100
committerKarel Zak <kzak@redhat.com>2023-01-10 14:48:06 +0100
commit92ba5cb2ee3100456b293e034e227c4187e6b6e3 (patch)
tree62bda6c6cbd20a89e63000663fe1addd881ff58c /include
parent987d844cdbc0f91ca81de3c1e5d0628a60eb458f (diff)
downloadutil-linux-92ba5cb2ee3100456b293e034e227c4187e6b6e3.tar.gz
include: add MOVE_MOUNT_SET_GROUP fallback
Addresses: https://github.com/torvalds/linux/commit/9ffb14ef61bab83fa818736bf3e7e6b6e182e8e2 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/mount-api-utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mount-api-utils.h b/include/mount-api-utils.h
index fd65bfe74..ad29ff88a 100644
--- a/include/mount-api-utils.h
+++ b/include/mount-api-utils.h
@@ -50,6 +50,10 @@ static inline int open_tree(int dfd, const char *filename, unsigned int flags)
# define MOVE_MOUNT_T_EMPTY_PATH 0x00000040 /* Empty to path permitted */
#endif
+#ifndef MOVE_MOUNT_SET_GROUP
+# define MOVE_MOUNT_SET_GROUP 0x00000100 /* Set sharing group instead */
+#endif
+
#ifndef MOVE_MOUNT__MASK
# define MOVE_MOUNT__MASK 0x00000077
#endif