diff options
author | Serge E. Hallyn <serue@us.ibm.com> | 2006-10-02 05:18:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 10:57:20 -0400 |
commit | ab516013ad9ca47f1d3a936fa81303bfbf734d52 (patch) | |
tree | 643ea9c4c3d28958cb42dd87b1856f74edd22b11 /include/linux/sched.h | |
parent | b1ba4ddde0cf67991d89f039365eaaeda61aa027 (diff) |
[PATCH] namespaces: add nsproxy
This patch adds a nsproxy structure to the task struct. Later patches will
move the fs namespace pointer into this structure, and introduce a new utsname
namespace into the nsproxy.
The vserver and openvz functionality, then, would be implemented in large part
by virtualizing/isolating more and more resources into namespaces, each
contained in the nsproxy.
[akpm@osdl.org: build fix]
Signed-off-by: Serge Hallyn <serue@us.ibm.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Andrey Savochkin <saw@sw.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index a7fff3304bd6..4fa631fa55e3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -239,6 +239,7 @@ extern signed long schedule_timeout_uninterruptible(signed long timeout); | |||
239 | asmlinkage void schedule(void); | 239 | asmlinkage void schedule(void); |
240 | 240 | ||
241 | struct namespace; | 241 | struct namespace; |
242 | struct nsproxy; | ||
242 | 243 | ||
243 | /* Maximum number of active map areas.. This is a random (large) number */ | 244 | /* Maximum number of active map areas.. This is a random (large) number */ |
244 | #define DEFAULT_MAX_MAP_COUNT 65536 | 245 | #define DEFAULT_MAX_MAP_COUNT 65536 |
@@ -898,6 +899,7 @@ struct task_struct { | |||
898 | struct files_struct *files; | 899 | struct files_struct *files; |
899 | /* namespace */ | 900 | /* namespace */ |
900 | struct namespace *namespace; | 901 | struct namespace *namespace; |
902 | struct nsproxy *nsproxy; | ||
901 | /* signal handlers */ | 903 | /* signal handlers */ |
902 | struct signal_struct *signal; | 904 | struct signal_struct *signal; |
903 | struct sighand_struct *sighand; | 905 | struct sighand_struct *sighand; |