diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-01-12 16:47:09 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-01-12 16:52:09 +0100 |
| commit | 3c1b73fc6a4d7bc5469ab2679ef954f7b754d34b (patch) | |
| tree | c2ef6e8c2d13b54851e40b0f5f27dee82b599815 /include/linux | |
| parent | a2062463e894039a6fdc2334b96afd91d44b64a8 (diff) | |
fs: add init_pivot_root()
We will soon be able to pivot_root() with the introduction of the
immutable rootfs. Add a wrapper for kernel internal usage.
Link: https://patch.msgid.link/20260112-work-immutable-rootfs-v2-2-88dd1c34a204@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/init_syscalls.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/init_syscalls.h b/include/linux/init_syscalls.h index 92045d18cbfc..28776ee28d8e 100644 --- a/include/linux/init_syscalls.h +++ b/include/linux/init_syscalls.h @@ -17,3 +17,4 @@ int __init init_mkdir(const char *pathname, umode_t mode); int __init init_rmdir(const char *pathname); int __init init_utimes(char *filename, struct timespec64 *ts); int __init init_dup(struct file *file); +int __init init_pivot_root(const char *new_root, const char *put_old); |
