copy address of proc_ns_ops into ns_common
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6344c433a4
commit
33c429405a
13 changed files with 34 additions and 10 deletions
|
@ -48,6 +48,8 @@ static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns,
|
|||
return ERR_PTR(err);
|
||||
}
|
||||
|
||||
ns->ns.ops = &utsns_operations;
|
||||
|
||||
down_read(&uts_sem);
|
||||
memcpy(&ns->name, &old_ns->name, sizeof(ns->name));
|
||||
ns->user_ns = get_user_ns(user_ns);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue