summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-10-10 20:20:57 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-10-10 20:20:57 +0000
commitf42083e0ef1976d731a767b54401a80e12fe2799 (patch)
tree5c5fc355d04d03775d5181a02d60590ba908f76b
parent136dea0be37d07c2498453fdd4ae92ad871b8ae6 (diff)
parenta31a56a6a47f92d33994b325d85897fd37ba4341 (diff)
downloadlibselinux-f42083e0ef1976d731a767b54401a80e12fe2799.tar.gz
am a31a56a6: am 80890a97: Merge "audit: log permissive from access decision"
* commit 'a31a56a6a47f92d33994b325d85897fd37ba4341': audit: log permissive from access decision
-rw-r--r--src/avc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/avc.c b/src/avc.c
index 15167f0..528d897 100644
--- a/src/avc.c
+++ b/src/avc.c
@@ -683,6 +683,11 @@ void avc_audit(security_id_t ssid, security_id_t tsid,
log_append(avc_audit_buf, " ");
avc_dump_query(ssid, tsid, tclass);
+
+ /* append permissive=0|1 like the kernel at the end */
+ if (denied || !requested)
+ log_append(avc_audit_buf, " permissive=%d", !result);
+
log_append(avc_audit_buf, "\n");
avc_log(SELINUX_AVC, "%s", avc_audit_buf);