Skip to content
Commit 20c6aaa3 authored by zhangxiliang's avatar zhangxiliang Committed by Al Viro
Browse files

[PATCH] Fix the bug of using AUDIT_STATUS_RATE_LIMIT when set fail, no error output.



When the "status_get->mask" is "AUDIT_STATUS_RATE_LIMIT || AUDIT_STATUS_BACKLOG_LIMIT".
If "audit_set_rate_limit" fails and "audit_set_backlog_limit" succeeds, the "err" value
will be greater than or equal to 0. It will miss the failure of rate set.

Signed-off-by: default avatarZhang Xiliang <zhangxiliang@cn.fujitsu.com>
Acked-by: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 980dfb0d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment