mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
pidns: Add setns support
- Pid namespaces are designed to be inescapable so verify that the passed in pid namespace is a child of the currently active pid namespace or the currently active pid namespace itself. Allowing the currently active pid namespace is important so the effects of an earlier setns can be cancelled. Signed-off-by: Eric W. Biederman <[email protected]>
This commit is contained in:
parent
225778d68d
commit
57e8391d32
3 changed files with 58 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ static const struct proc_ns_operations *ns_entries[] = {
|
|||
#ifdef CONFIG_IPC_NS
|
||||
&ipcns_operations,
|
||||
#endif
|
||||
#ifdef CONFIG_PID_NS
|
||||
&pidns_operations,
|
||||
#endif
|
||||
};
|
||||
|
||||
static const struct file_operations ns_file_operations = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue