Merge git://git.infradead.org/users/willy/linux-nvme
[platform/adaptation/renesas_rcar/renesas_kernel.git] / ipc / namespace.c
index 7ee61bf..4be6581 100644 (file)
@@ -171,7 +171,7 @@ static int ipcns_install(struct nsproxy *nsproxy, void *new)
 {
        struct ipc_namespace *ns = new;
        if (!ns_capable(ns->user_ns, CAP_SYS_ADMIN) ||
-           !nsown_capable(CAP_SYS_ADMIN))
+           !ns_capable(current_user_ns(), CAP_SYS_ADMIN))
                return -EPERM;
 
        /* Ditch state from the old ipc namespace */