userns: fix return value on mntns_install() failure
authorZhao Hongjiang <zhaohongjiang@huawei.com>
Thu, 13 Sep 2012 08:38:03 +0000 (16:38 +0800)
committerEric W. Biederman <ebiederm@xmission.com>
Mon, 19 Nov 2012 13:59:22 +0000 (05:59 -0800)
commitae11e0f18482bfe0cd83b9b61434ea7e0bd94e25
tree13356ea5b2a0316b1daf2661adeec05b0d5f78b2
parent0c55cfc4166d9a0f38de779bd4d75a90afbe7734
userns: fix return value on mntns_install() failure

Change return value from -EINVAL to -EPERM when the permission check fails.

Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/namespace.c