|
@@ -127,7 +127,7 @@ static int apparmor_capget(struct task_struct *target, kernel_cap_t *effective,
|
|
*inheritable = cred->cap_inheritable;
|
|
*inheritable = cred->cap_inheritable;
|
|
*permitted = cred->cap_permitted;
|
|
*permitted = cred->cap_permitted;
|
|
|
|
|
|
- if (!unconfined(profile)) {
|
|
|
|
|
|
+ if (!unconfined(profile) && !COMPLAIN_MODE(profile)) {
|
|
*effective = cap_intersect(*effective, profile->caps.allow);
|
|
*effective = cap_intersect(*effective, profile->caps.allow);
|
|
*permitted = cap_intersect(*permitted, profile->caps.allow);
|
|
*permitted = cap_intersect(*permitted, profile->caps.allow);
|
|
}
|
|
}
|