aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/capability.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/capability.c')
-rw-r--r--kernel/capability.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/capability.c b/kernel/capability.c
index cbc5fd60c0f3..f02ad47320b9 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -12,6 +12,7 @@
12#include <linux/module.h> 12#include <linux/module.h>
13#include <linux/security.h> 13#include <linux/security.h>
14#include <linux/syscalls.h> 14#include <linux/syscalls.h>
15#include <linux/pid_namespace.h>
15#include <asm/uaccess.h> 16#include <asm/uaccess.h>
16 17
17/* 18/*
@@ -129,7 +130,7 @@ static inline int cap_set_all(kernel_cap_t *effective,
129 int found = 0; 130 int found = 0;
130 131
131 do_each_thread(g, target) { 132 do_each_thread(g, target) {
132 if (target == current || is_init(target)) 133 if (target == current || is_container_init(target->group_leader))
133 continue; 134 continue;
134 found = 1; 135 found = 1;
135 if (security_capset_check(target, effective, inheritable, 136 if (security_capset_check(target, effective, inheritable,