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 <ebiederm@xmission.com>
This commit is contained in:
@@ -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 = {
|
||||
|
Reference in New Issue
Block a user