diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-01-28 11:33:41 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-02-12 12:12:28 +0100 |
| commit | c4a16820d90199409c9bf01c4f794e1e9e8d8fd8 (patch) | |
| tree | b3de182aaedb70d4278e12becfc23a829ffc9a82 /include/uapi/asm-generic | |
| parent | 474f7825d5335798742b92f067e1d22365013107 (diff) | |
| download | linux-c4a16820d90199409c9bf01c4f794e1e9e8d8fd8.tar.gz linux-c4a16820d90199409c9bf01c4f794e1e9e8d8fd8.tar.bz2 linux-c4a16820d90199409c9bf01c4f794e1e9e8d8fd8.zip | |
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>
Diffstat (limited to 'include/uapi/asm-generic')
| -rw-r--r-- | include/uapi/asm-generic/unistd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 88dc393c2bca..2892a45023af 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h @@ -849,9 +849,11 @@ __SYSCALL(__NR_getxattrat, sys_getxattrat) __SYSCALL(__NR_listxattrat, sys_listxattrat) #define __NR_removexattrat 466 __SYSCALL(__NR_removexattrat, sys_removexattrat) +#define __NR_open_tree_attr 467 +__SYSCALL(__NR_open_tree_attr, sys_open_tree_attr) #undef __NR_syscalls -#define __NR_syscalls 467 +#define __NR_syscalls 468 /* * 32 bit systems traditionally used different |
