ipc: Initialize ipc_namespace->user_ns early.
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 31 May 2016 17:26:41 +0000 (12:26 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 23 Jun 2016 20:41:53 +0000 (15:41 -0500)
commitb236017acffa73d52eac9427f42d8993067d20fb
tree02dd39ff4a5e38f15f6f708a46d8034a23ebb0d8
parent8654df4e2ac9704905198d63845554c2ddf6a93f
ipc: Initialize ipc_namespace->user_ns early.

Allow the ipc namespace initialization code to depend on ns->user_ns
being set during initialization.

In particular this allows mq_init_ns to use ns->user_ns for permission
checks and initializating s_user_ns while the the mq filesystem is
being mounted.

Acked-by: Seth Forshee <seth.forshee@canonical.com>
Suggested-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
ipc/namespace.c