]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: fix avc audit messages
authorStephen Smalley <sds@tycho.nsa.gov>
Tue, 5 Feb 2019 16:49:32 +0000 (11:49 -0500)
committerPaul Moore <paul@paul-moore.com>
Tue, 5 Feb 2019 17:34:33 +0000 (12:34 -0500)
commit40712e5a50ba00589b316153b5bb057664367393
treea73db80ede5b0a2607ddf8b158399a0c5e2a473e
parentd722858872e54403ade165577a44f8a3b8e37f71
selinux: fix avc audit messages

commit e490a8f0c8e25f ("selinux: inline some AVC functions used only once")
introduced usage of audit_log_string() in place of audit_log_format()
for fixed strings.  However, audit_log_string() quotes the string.
This breaks the avc audit message format and userspace audit parsers.
Switch back to using audit_log_format().

Fixes: e490a8f0c8e25f ("selinux: inline some AVC functions used only once")
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/avc.c