diff options
| author | Pavel Emelyanov <[email protected]> | 2007-10-18 23:40:04 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-10-19 11:53:38 -0700 |
| commit | faacbfd3a6808bf87d8f353b42eceeaba2c78a47 (patch) | |
| tree | c05ad8985ec2367550cbb3321934fd0e8e9208d2 /kernel | |
| parent | 4c3f2ead5a3dff9069a45560ba4d007c8ae2e2ee (diff) | |
pid namespaces: add support for pid namespaces hierarchy
Each namespace has a parent and is characterized by its "level". Level is the
number of the namespace generation. E.g. init namespace has level 0, after
cloning new one it will have level 1, the next one - 2 and so on and so forth.
This level is not explicitly limited.
True hierarchy must have some way to find each namespace's children, but it is
not used in the patches, so this ability is not added (yet).
Signed-off-by: Pavel Emelyanov <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Sukadev Bhattiprolu <[email protected]>
Cc: Paul Menage <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/pid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/pid.c b/kernel/pid.c index bb0785109d39..c7346fb801fc 100644 --- a/kernel/pid.c +++ b/kernel/pid.c @@ -67,7 +67,8 @@ struct pid_namespace init_pid_ns = { [ 0 ... PIDMAP_ENTRIES-1] = { ATOMIC_INIT(BITS_PER_PAGE), NULL } }, .last_pid = 0, - .child_reaper = &init_task + .level = 0, + .child_reaper = &init_task, }; int is_global_init(struct task_struct *tsk) |