/linux-4.1.27/kernel/ |
H A D | utsname.c | 69 struct uts_namespace *new_ns; copy_utsname() local 77 new_ns = clone_uts_ns(user_ns, old_ns); copy_utsname() 80 return new_ns; copy_utsname()
|
H A D | nsproxy.c | 128 struct nsproxy *new_ns; copy_namespaces() local 150 new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); copy_namespaces() 151 if (IS_ERR(new_ns)) copy_namespaces() 152 return PTR_ERR(new_ns); copy_namespaces() 154 tsk->nsproxy = new_ns; copy_namespaces()
|
/linux-4.1.27/fs/sysfs/ |
H A D | dir.c | 102 const void *new_ns) sysfs_rename_dir_ns() 108 ret = kernfs_rename_ns(kobj->sd, parent, new_name, new_ns); sysfs_rename_dir_ns() 114 const void *new_ns) sysfs_move_dir_ns() 122 return kernfs_rename_ns(kn, new_parent, kn->name, new_ns); sysfs_move_dir_ns() 101 sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, const void *new_ns) sysfs_rename_dir_ns() argument 113 sysfs_move_dir_ns(struct kobject *kobj, struct kobject *new_parent_kobj, const void *new_ns) sysfs_move_dir_ns() argument
|
H A D | symlink.c | 161 * @new_ns: new namespace of the symlink. 166 const char *old, const char *new, const void *new_ns) sysfs_rename_link_ns() 191 result = kernfs_rename_ns(kn, parent, new, new_ns); sysfs_rename_link_ns() 165 sysfs_rename_link_ns(struct kobject *kobj, struct kobject *targ, const char *old, const char *new, const void *new_ns) sysfs_rename_link_ns() argument
|
/linux-4.1.27/fs/ |
H A D | namespace.c | 2741 struct mnt_namespace *new_ns; alloc_mnt_ns() local 2744 new_ns = kmalloc(sizeof(struct mnt_namespace), GFP_KERNEL); alloc_mnt_ns() 2745 if (!new_ns) alloc_mnt_ns() 2747 ret = ns_alloc_inum(&new_ns->ns); alloc_mnt_ns() 2749 kfree(new_ns); alloc_mnt_ns() 2752 new_ns->ns.ops = &mntns_operations; alloc_mnt_ns() 2753 new_ns->seq = atomic64_add_return(1, &mnt_ns_seq); alloc_mnt_ns() 2754 atomic_set(&new_ns->count, 1); alloc_mnt_ns() 2755 new_ns->root = NULL; alloc_mnt_ns() 2756 INIT_LIST_HEAD(&new_ns->list); alloc_mnt_ns() 2757 init_waitqueue_head(&new_ns->poll); alloc_mnt_ns() 2758 new_ns->event = 0; alloc_mnt_ns() 2759 new_ns->user_ns = get_user_ns(user_ns); alloc_mnt_ns() 2760 return new_ns; alloc_mnt_ns() 2766 struct mnt_namespace *new_ns; copy_mnt_ns() local 2782 new_ns = alloc_mnt_ns(user_ns); copy_mnt_ns() 2783 if (IS_ERR(new_ns)) copy_mnt_ns() 2784 return new_ns; copy_mnt_ns() 2794 free_mnt_ns(new_ns); copy_mnt_ns() 2797 new_ns->root = new; copy_mnt_ns() 2798 list_add_tail(&new_ns->list, &new->mnt_list); copy_mnt_ns() 2808 q->mnt_ns = new_ns; copy_mnt_ns() 2833 return new_ns; copy_mnt_ns() 2842 struct mnt_namespace *new_ns = alloc_mnt_ns(&init_user_ns); create_mnt_ns() local 2843 if (!IS_ERR(new_ns)) { create_mnt_ns() 2845 mnt->mnt_ns = new_ns; create_mnt_ns() 2846 new_ns->root = mnt; create_mnt_ns() 2847 list_add(&mnt->mnt_list, &new_ns->list); create_mnt_ns() 2851 return new_ns; create_mnt_ns()
|
/linux-4.1.27/include/linux/ |
H A D | sysfs.h | 209 const void *new_ns); 212 const void *new_ns); 244 const void *new_ns); 293 const char *new_name, const void *new_ns) sysfs_rename_dir_ns() 300 const void *new_ns) sysfs_move_dir_ns() 292 sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name, const void *new_ns) sysfs_rename_dir_ns() argument 298 sysfs_move_dir_ns(struct kobject *kobj, struct kobject *new_parent_kobj, const void *new_ns) sysfs_move_dir_ns() argument
|
H A D | kernfs.h | 308 const char *new_name, const void *new_ns); 394 const char *new_name, const void *new_ns) kernfs_rename_ns() 392 kernfs_rename_ns(struct kernfs_node *kn, struct kernfs_node *new_parent, const char *new_name, const void *new_ns) kernfs_rename_ns() argument
|
/linux-4.1.27/security/apparmor/ |
H A D | domain.c | 250 struct aa_namespace *new_ns; x_table_lookup() local 253 new_ns = NULL; x_table_lookup() 270 new_ns = aa_find_namespace(ns, ns_name); x_table_lookup() 271 if (!new_ns) x_table_lookup() 282 new_profile = aa_lookup_profile(new_ns ? new_ns : ns, xname); x_table_lookup() 283 aa_put_namespace(new_ns); x_table_lookup()
|
/linux-4.1.27/fs/kernfs/ |
H A D | dir.c | 1276 * @new_ns: new namespace tag 1279 const char *new_name, const void *new_ns) kernfs_rename_ns() 1297 if ((kn->parent == new_parent) && (kn->ns == new_ns) && kernfs_rename_ns() 1302 if (kernfs_find_ns(new_parent, new_name, new_ns)) kernfs_rename_ns() 1327 kn->ns = new_ns; kernfs_rename_ns() 1278 kernfs_rename_ns(struct kernfs_node *kn, struct kernfs_node *new_parent, const char *new_name, const void *new_ns) kernfs_rename_ns() argument
|