summaryrefslogtreecommitdiffstats
path: root/security/commoncap.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-03-09 16:15:23 -0800
committerEric W. Biederman <ebiederm@xmission.com>2013-08-30 17:30:38 -0700
commitdbef0c1c4c5f8ce5d1f5bd8cee092a7afb4ac21b (patch)
tree3eaa0a5a45ba52fae938e42e0031f25ac96a482f /security/commoncap.c
parenta606488513543312805fab2b93070cefe6a3016c (diff)
downloadlinux-stable-dbef0c1c4c5f8ce5d1f5bd8cee092a7afb4ac21b.tar.gz
linux-stable-dbef0c1c4c5f8ce5d1f5bd8cee092a7afb4ac21b.tar.bz2
linux-stable-dbef0c1c4c5f8ce5d1f5bd8cee092a7afb4ac21b.zip
namespaces: Simplify copy_namespaces so it is clear what is going on.
Remove the test for the impossible case where tsk->nsproxy == NULL. Fork will never be called with tsk->nsproxy == NULL. Only call get_nsproxy when we don't need to generate a new_nsproxy, and mark the case where we don't generate a new nsproxy as likely. Remove the code to drop an unnecessarily acquired nsproxy value. Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'security/commoncap.c')
0 files changed, 0 insertions, 0 deletions