Home
last modified time | relevance | path

Searched refs:nsset (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/kernel/
H A Dnsproxy.c315 static void put_nsset(struct nsset *nsset) in put_nsset() argument
317 unsigned flags = nsset->flags; in put_nsset()
320 put_cred(nsset_cred(nsset)); in put_nsset()
325 if (nsset->fs && (flags & CLONE_NEWNS) && (flags & ~CLONE_NEWNS)) in put_nsset()
326 free_fs_struct(nsset->fs); in put_nsset()
327 if (nsset->nsproxy) in put_nsset()
328 free_nsproxy(nsset->nsproxy); in put_nsset()
331 static int prepare_nsset(unsigned flags, struct nsset *nsset) in prepare_nsset() argument
335 nsset->nsproxy = create_new_namespaces(0, me, current_user_ns(), me->fs); in prepare_nsset()
336 if (IS_ERR(nsset->nsproxy)) in prepare_nsset()
[all …]
H A Dutsname.c140 static int utsns_install(struct nsset *nsset, struct ns_common *new) in utsns_install() argument
142 struct nsproxy *nsproxy = nsset->nsproxy; in utsns_install()
146 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in utsns_install()
H A Dpid_namespace.c395 static int pidns_install(struct nsset *nsset, struct ns_common *ns) in pidns_install() argument
397 struct nsproxy *nsproxy = nsset->nsproxy; in pidns_install()
402 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in pidns_install()
H A Duser_namespace.c1336 static int userns_install(struct nsset *nsset, struct ns_common *ns) in userns_install() argument
1357 cred = nsset_cred(nsset); in userns_install()
/openbmc/linux/kernel/cgroup/
H A Dnamespace.c98 static int cgroupns_install(struct nsset *nsset, struct ns_common *ns) in cgroupns_install() argument
100 struct nsproxy *nsproxy = nsset->nsproxy; in cgroupns_install()
103 if (!ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN) || in cgroupns_install()
/openbmc/linux/include/linux/
H A Dproc_ns.h11 struct nsset;
22 int (*install)(struct nsset *nsset, struct ns_common *ns);
H A Dnsproxy.h53 struct nsset { struct
60 static inline struct cred *nsset_cred(struct nsset *set) in nsset_cred() argument
/openbmc/linux/ipc/
H A Dnamespace.c235 static int ipcns_install(struct nsset *nsset, struct ns_common *new) in ipcns_install() argument
237 struct nsproxy *nsproxy = nsset->nsproxy; in ipcns_install()
240 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in ipcns_install()
/openbmc/linux/kernel/time/
H A Dnamespace.c304 static int timens_install(struct nsset *nsset, struct ns_common *new) in timens_install() argument
306 struct nsproxy *nsproxy = nsset->nsproxy; in timens_install()
313 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN)) in timens_install()
/openbmc/linux/net/core/
H A Dnet_namespace.c1432 static int netns_install(struct nsset *nsset, struct ns_common *ns)
1434 struct nsproxy *nsproxy = nsset->nsproxy;
1438 !ns_capable(nsset->cred->user_ns, CAP_SYS_ADMIN))
1403 netns_install(struct nsset * nsset,struct ns_common * ns) netns_install() argument
/openbmc/linux/fs/
H A Dnamespace.c4967 static int mntns_install(struct nsset *nsset, struct ns_common *ns) in mntns_install() argument
4969 struct nsproxy *nsproxy = nsset->nsproxy; in mntns_install()
4970 struct fs_struct *fs = nsset->fs; in mntns_install()
4972 struct user_namespace *user_ns = nsset->cred->user_ns; in mntns_install()