diff options
author | Nick Kralevich <nnk@google.com> | 2015-10-10 20:11:05 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-10 20:11:05 +0000 |
commit | a31a56a6a47f92d33994b325d85897fd37ba4341 (patch) | |
tree | 5c5fc355d04d03775d5181a02d60590ba908f76b | |
parent | deb18b511745d42d5c9dd0202db5e16b360577f7 (diff) | |
parent | 80890a97507d6d117282c9d2077ed9e3e927c9fc (diff) | |
download | libselinux-a31a56a6a47f92d33994b325d85897fd37ba4341.tar.gz |
am 80890a97: Merge "audit: log permissive from access decision"
* commit '80890a97507d6d117282c9d2077ed9e3e927c9fc':
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); |