projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TOMOYO: Allow controlling generation of access granted logs for per an entry basis.
[firefly-linux-kernel-4.4.55.git]
/
security
/
tomoyo
/
common.c
diff --git
a/security/tomoyo/common.c
b/security/tomoyo/common.c
index 85d915587a71ad8a0d72dc3e6b51e8530df90877..2704c384bf1e67a574b7f9e4741b4d8888ca50fa 100644
(file)
--- a/
security/tomoyo/common.c
+++ b/
security/tomoyo/common.c
@@
-1272,6
+1272,10
@@
static bool tomoyo_print_condition(struct tomoyo_io_buffer *head,
head->r.cond_step++;
/* fall through */
case 3:
+ if (cond->grant_log != TOMOYO_GRANTLOG_AUTO)
+ tomoyo_io_printf(head, " grant_log=%s",
+ tomoyo_yesno(cond->grant_log ==
+ TOMOYO_GRANTLOG_YES));
tomoyo_set_lf(head);
return true;
}