2 * Copyright (C) 2004 IBM Corporation
4 * Author: Serge Hallyn <serue@us.ibm.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation, version 2 of the
12 #include <linux/module.h>
13 #include <linux/uts.h>
14 #include <linux/utsname.h>
15 #include <linux/version.h>
18 * Copy task tsk's utsname namespace, or clone it if flags
19 * specifies CLONE_NEWUTS. In latter case, changes to the
20 * utsname of this process won't be seen by parent, and vice
23 int copy_utsname(int flags, struct task_struct *tsk)
25 struct uts_namespace *old_ns = tsk->nsproxy->uts_ns;
36 void free_uts_ns(struct kref *kref)
38 struct uts_namespace *ns;
40 ns = container_of(kref, struct uts_namespace, kref);