namespaces: utsname: implement utsname namespaces
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 18 lines · Linux Kernel Mailing List
commit
4865ecf1315b450ab3317a745a6678c04d311e40
tree6cf5d3028f8642eba2a8094eb413db080cc9219c
parent96b644bdec977b97a45133e5b4466ba47a7a5e65
author Serge E. Hallyn <[email protected]> 1159780694 -0700 committer Linus Torvalds <[email protected]> 1159801041 -0700[PATCH] namespaces: utsname: implement utsname namespaces
This patch defines the uts namespace and some manipulators. Adds the uts namespace to
task_struct, and initializes a system-wide init namespace.It leaves a #define for
system_utsnameso sysctl will compile. This define will be removed in a separate patch.
include/linux/utsname.h line 9
Quoted 9 lines
include/linux/utsname.h +5
-0@@ -1,6 +1,11 @@#ifndef _LINUX_UTSNAME_H#define _LINUX_UTSNAME_H +#include <linux/sched.h> +#include <linux/kref.h> +#include <linux/nsproxy.h> +#include <asm/atomic.h> +#define __OLD_UTS_LEN 8
This patch was not tested with 'make headers_check':
usr/include/linux/utsname.h requires linux/kref.h, which does not exist in exported headers usr/include/linux/utsname.h requires linux/nsproxy.h, which does not exist in exported headers usr/include/linux/utsname.h requires asm/atomic.h, which does not exist in exported headers
Please protect stuff with #ifdef __KERNEL__ as appropriate, and remember to run 'make headers_check' before submitting patches.
Signature · 1 line
dwmw2
Quoted 3 lines · David Woodhouse
usr/include/linux/utsname.hrequireslinux/kref.h, which does not exist in exported headersusr/include/linux/utsname.hrequireslinux/nsproxy.h, which does not exist in exported headersusr/include/linux/utsname.hrequiresasm/atomic.h, which does not exist in exported headers
We can probably just drop utsname.h from the export, since libc can't use it as-is anyway. It doesn't actually define 'struct utsname'.
Signature · 1 line
dwmw2