diff options
| author | Oleg Nesterov <[email protected]> | 2008-02-08 04:19:09 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-02-08 09:22:27 -0800 |
| commit | e4cc0a9c876d4d4eadaef97a2bff4a199946d202 (patch) | |
| tree | e25406d84ce842c54e3ac5438e4bcee32a75a964 /include/linux | |
| parent | 4e021306cff4277764a42065214fc73f2d26be4b (diff) | |
fix setsid() for sub-namespace /sbin/init
sys_setsid() still deals with pid_t's from the global namespace. This means
that the "session > 1" check can't help for sub-namespace init, setsid() can't
succeed because copy_process(CLONE_NEWPID) populates PIDTYPE_PGID/SID links.
Remove the usage of task_struct->pid and convert the code to use "struct pid".
This also simplifies and speedups the code, saves one find_pid().
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Acked-by: Pavel Emelyanov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions