diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2013-10-01 21:14:54 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2013-11-05 11:09:11 -0500 |
commit | a20b62bdf7a1ed1a334eff3c4cafa97f5826006b (patch) | |
tree | 233c3774d6ff81715d37163cc223fb5008e83e9b | |
parent | d3aea84a4ace5ff9ce7fb7714cee07bebef681c2 (diff) |
audit: suppress stock memalloc failure warnings since already managed
Supress the stock memory allocation failure warnings for audit buffers
since audit alreay takes care of memory allocation failure warnings, including
rate-limiting, in audit_log_start().
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
-rw-r--r-- | security/lsm_audit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/lsm_audit.c b/security/lsm_audit.c index 8d8d97dbb389..b0f249d1a1ef 100644 --- a/security/lsm_audit.c +++ b/security/lsm_audit.c | |||
@@ -396,7 +396,8 @@ void common_lsm_audit(struct common_audit_data *a, | |||
396 | if (a == NULL) | 396 | if (a == NULL) |
397 | return; | 397 | return; |
398 | /* we use GFP_ATOMIC so we won't sleep */ | 398 | /* we use GFP_ATOMIC so we won't sleep */ |
399 | ab = audit_log_start(current->audit_context, GFP_ATOMIC, AUDIT_AVC); | 399 | ab = audit_log_start(current->audit_context, GFP_ATOMIC | __GFP_NOWARN, |
400 | AUDIT_AVC); | ||
400 | 401 | ||
401 | if (ab == NULL) | 402 | if (ab == NULL) |
402 | return; | 403 | return; |