]> Pileus Git - ~andy/linux/commitdiff
audit: suppress stock memalloc failure warnings since already managed
authorRichard Guy Briggs <rgb@redhat.com>
Wed, 2 Oct 2013 01:14:54 +0000 (21:14 -0400)
committerEric Paris <eparis@redhat.com>
Tue, 5 Nov 2013 16:09:11 +0000 (11:09 -0500)
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>
security/lsm_audit.c

index 8d8d97dbb389b1d305352cee29e4dbcc0191af64..b0f249d1a1ef673596829b9e3d1731f3ddec59e0 100644 (file)
@@ -396,7 +396,8 @@ void common_lsm_audit(struct common_audit_data *a,
        if (a == NULL)
                return;
        /* we use GFP_ATOMIC so we won't sleep */
-       ab = audit_log_start(current->audit_context, GFP_ATOMIC, AUDIT_AVC);
+       ab = audit_log_start(current->audit_context, GFP_ATOMIC | __GFP_NOWARN,
+                            AUDIT_AVC);
 
        if (ab == NULL)
                return;