提交 a20b62bd 编写于 作者: R Richard Guy Briggs 提交者: Eric Paris

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: NRichard Guy Briggs <rgb@redhat.com>
Signed-off-by: NEric Paris <eparis@redhat.com>
上级 d3aea84a
...@@ -396,7 +396,8 @@ void common_lsm_audit(struct common_audit_data *a, ...@@ -396,7 +396,8 @@ void common_lsm_audit(struct common_audit_data *a,
if (a == NULL) if (a == NULL)
return; return;
/* we use GFP_ATOMIC so we won't sleep */ /* 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) if (ab == NULL)
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册