Unverified Commit be61afaf authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15139 apparmor: fix 'Do simple duplicate message elimination'

parents a9150a3f fe44df2f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -94,6 +94,8 @@ static int audit_caps(struct common_audit_data *sa, struct aa_profile *profile,
		return error;
	} else {
		aa_put_profile(ent->profile);
		if (profile != ent->profile)
			cap_clear(ent->caps);
		ent->profile = aa_get_profile(profile);
		cap_raise(ent->caps, cap);
	}