diff options
author | Nick Kralevich <nnk@google.com> | 2015-10-10 20:20:57 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-10 20:20:57 +0000 |
commit | f42083e0ef1976d731a767b54401a80e12fe2799 (patch) | |
tree | 5c5fc355d04d03775d5181a02d60590ba908f76b | |
parent | 136dea0be37d07c2498453fdd4ae92ad871b8ae6 (diff) | |
parent | a31a56a6a47f92d33994b325d85897fd37ba4341 (diff) | |
download | libselinux-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |