aboutsummaryrefslogtreecommitdiffstats
path: root/security/apparmor/audit.c
diff options
context:
space:
mode:
authorJohn Johansen <[email protected]>2023-08-21 23:54:58 +0000
committerJohn Johansen <[email protected]>2025-01-18 14:47:12 +0000
commit84c455decf27ce97a23fb70b58075592ab88d66a (patch)
tree0259a3a265ff60e4329adfe6787592194a7a68b8 /security/apparmor/audit.c
parentapparmor: add additional flags to extended permission. (diff)
downloadkernel-84c455decf27ce97a23fb70b58075592ab88d66a.tar.gz
kernel-84c455decf27ce97a23fb70b58075592ab88d66a.zip
apparmor: add support for profiles to define the kill signal
Previously apparmor has only sent SIGKILL but there are cases where it can be useful to send a different signal. Allow the profile to optionally specify a different value. Signed-off-by: John Johansen <[email protected]>
Diffstat (limited to 'security/apparmor/audit.c')
-rw-r--r--security/apparmor/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/audit.c b/security/apparmor/audit.c
index 73087d76f649..ac89602aa2d9 100644
--- a/security/apparmor/audit.c
+++ b/security/apparmor/audit.c
@@ -192,7 +192,7 @@ int aa_audit(int type, struct aa_profile *profile,
aa_audit_msg(type, ad, cb);
if (ad->type == AUDIT_APPARMOR_KILL)
- (void)send_sig_info(SIGKILL, NULL,
+ (void)send_sig_info(profile->signal, NULL,
ad->common.type == LSM_AUDIT_DATA_TASK &&
ad->common.u.tsk ? ad->common.u.tsk : current);