Skip to content

Commit c4a1682

Browse files
committed
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: "Seth Forshee (DigitalOcean)" <sforshee@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 474f782 commit c4a1682

File tree

20 files changed

+63
-1
lines changed

20 files changed

+63
-1
lines changed

arch/alpha/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,3 +506,4 @@
506506
574 common getxattrat sys_getxattrat
507507
575 common listxattrat sys_listxattrat
508508
576 common removexattrat sys_removexattrat
509+
577 common open_tree_attr sys_open_tree_attr

arch/arm/tools/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,3 +481,4 @@
481481
464 common getxattrat sys_getxattrat
482482
465 common listxattrat sys_listxattrat
483483
466 common removexattrat sys_removexattrat
484+
467 common open_tree_attr sys_open_tree_attr

arch/arm64/tools/syscall_32.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,3 +478,4 @@
478478
464 common getxattrat sys_getxattrat
479479
465 common listxattrat sys_listxattrat
480480
466 common removexattrat sys_removexattrat
481+
467 common open_tree_attr sys_open_tree_attr

arch/m68k/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,3 +466,4 @@
466466
464 common getxattrat sys_getxattrat
467467
465 common listxattrat sys_listxattrat
468468
466 common removexattrat sys_removexattrat
469+
467 common open_tree_attr sys_open_tree_attr

arch/microblaze/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,3 +472,4 @@
472472
464 common getxattrat sys_getxattrat
473473
465 common listxattrat sys_listxattrat
474474
466 common removexattrat sys_removexattrat
475+
467 common open_tree_attr sys_open_tree_attr

arch/mips/kernel/syscalls/syscall_n32.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,3 +405,4 @@
405405
464 n32 getxattrat sys_getxattrat
406406
465 n32 listxattrat sys_listxattrat
407407
466 n32 removexattrat sys_removexattrat
408+
467 n32 open_tree_attr sys_open_tree_attr

arch/mips/kernel/syscalls/syscall_n64.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,3 +381,4 @@
381381
464 n64 getxattrat sys_getxattrat
382382
465 n64 listxattrat sys_listxattrat
383383
466 n64 removexattrat sys_removexattrat
384+
467 n64 open_tree_attr sys_open_tree_attr

arch/mips/kernel/syscalls/syscall_o32.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,3 +454,4 @@
454454
464 o32 getxattrat sys_getxattrat
455455
465 o32 listxattrat sys_listxattrat
456456
466 o32 removexattrat sys_removexattrat
457+
467 o32 open_tree_attr sys_open_tree_attr

arch/parisc/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,4 @@
465465
464 common getxattrat sys_getxattrat
466466
465 common listxattrat sys_listxattrat
467467
466 common removexattrat sys_removexattrat
468+
467 common open_tree_attr sys_open_tree_attr

arch/powerpc/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,3 +557,4 @@
557557
464 common getxattrat sys_getxattrat
558558
465 common listxattrat sys_listxattrat
559559
466 common removexattrat sys_removexattrat
560+
467 common open_tree_attr sys_open_tree_attr

0 commit comments

Comments
 (0)