aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/utsname.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/utsname.c')
-rw-r--r--kernel/utsname.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/utsname.c b/kernel/utsname.c
index 35587b76faa3..6976cd47dcf6 100644
--- a/kernel/utsname.c
+++ b/kernel/utsname.c
@@ -154,10 +154,16 @@ static int utsns_install(struct nsproxy *nsproxy, struct ns_common *new)
154 return 0; 154 return 0;
155} 155}
156 156
157static struct user_namespace *utsns_owner(struct ns_common *ns)
158{
159 return to_uts_ns(ns)->user_ns;
160}
161
157const struct proc_ns_operations utsns_operations = { 162const struct proc_ns_operations utsns_operations = {
158 .name = "uts", 163 .name = "uts",
159 .type = CLONE_NEWUTS, 164 .type = CLONE_NEWUTS,
160 .get = utsns_get, 165 .get = utsns_get,
161 .put = utsns_put, 166 .put = utsns_put,
162 .install = utsns_install, 167 .install = utsns_install,
168 .owner = utsns_owner,
163}; 169};