Home
last modified time | relevance | path

Searched refs:new_fs (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/kernel/
Dnsproxy.c66 struct fs_struct *new_fs) in create_new_namespaces() argument
75 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs); in create_new_namespaces()
193 struct nsproxy **new_nsp, struct cred *new_cred, struct fs_struct *new_fs) in unshare_nsproxy_namespaces() argument
207 new_fs ? new_fs : current->fs); in unshare_nsproxy_namespaces()
Dfork.c2441 struct fs_struct *fs, *new_fs = NULL; in ksys_unshare() local
2480 err = unshare_fs(unshare_flags, &new_fs); in ksys_unshare()
2490 new_cred, new_fs); in ksys_unshare()
2494 if (new_fs || new_fd || do_sysvsem || new_cred || new_nsproxy) { in ksys_unshare()
2512 if (new_fs) { in ksys_unshare()
2515 current->fs = new_fs; in ksys_unshare()
2517 new_fs = NULL; in ksys_unshare()
2519 new_fs = fs; in ksys_unshare()
2548 if (new_fs) in ksys_unshare()
2549 free_fs_struct(new_fs); in ksys_unshare()
/Linux-v4.19/fs/
Dfs_struct.c135 struct fs_struct *new_fs = copy_fs_struct(fs); in unshare_fs_struct() local
138 if (!new_fs) in unshare_fs_struct()
144 current->fs = new_fs; in unshare_fs_struct()
Dnamespace.c2858 struct user_namespace *user_ns, struct fs_struct *new_fs) in copy_mnt_ns() argument
2904 if (new_fs) { in copy_mnt_ns()
2905 if (&p->mnt == new_fs->root.mnt) { in copy_mnt_ns()
2906 new_fs->root.mnt = mntget(&q->mnt); in copy_mnt_ns()
2909 if (&p->mnt == new_fs->pwd.mnt) { in copy_mnt_ns()
2910 new_fs->pwd.mnt = mntget(&q->mnt); in copy_mnt_ns()