Unverified Commit c4a16820 authored by Christian Brauner's avatar Christian Brauner
Browse files

fs: add open_tree_attr()

Add open_tree_attr() which allow to atomically create a detached mount
tree and set mount options on it. If OPEN_TREE_CLONE is used this will
allow the creation of a detached mount with a new set of mount options
without it ever being exposed to userspace without that set of mount
options applied.

Link: https://lore.kernel.org/r/20250128-work-mnt_idmap-update-v2-v1-3-c25feb0d2eb3@kernel.org


Reviewed-by: default avatar"Seth Forshee (DigitalOcean)" <sforshee@kernel.org>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 474f7825
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -506,3 +506,4 @@
574	common	getxattrat			sys_getxattrat
575	common	listxattrat			sys_listxattrat
576	common	removexattrat			sys_removexattrat
577	common	open_tree_attr			sys_open_tree_attr
+1 −0
Original line number Diff line number Diff line
@@ -481,3 +481,4 @@
464	common	getxattrat			sys_getxattrat
465	common	listxattrat			sys_listxattrat
466	common	removexattrat			sys_removexattrat
467	common	open_tree_attr			sys_open_tree_attr
+1 −0
Original line number Diff line number Diff line
@@ -478,3 +478,4 @@
464	common	getxattrat			sys_getxattrat
465	common	listxattrat			sys_listxattrat
466	common	removexattrat			sys_removexattrat
467	common	open_tree_attr			sys_open_tree_attr
+1 −0
Original line number Diff line number Diff line
@@ -466,3 +466,4 @@
464	common	getxattrat			sys_getxattrat
465	common	listxattrat			sys_listxattrat
466	common	removexattrat			sys_removexattrat
467	common	open_tree_attr			sys_open_tree_attr
+1 −0
Original line number Diff line number Diff line
@@ -472,3 +472,4 @@
464	common	getxattrat			sys_getxattrat
465	common	listxattrat			sys_listxattrat
466	common	removexattrat			sys_removexattrat
467	common	open_tree_attr			sys_open_tree_attr
Loading