Skip to content
Commit 4eb0f4ab authored by Richard Guy Briggs's avatar Richard Guy Briggs Committed by Eric Paris
Browse files

smack: call WARN_ONCE() instead of calling audit_log_start()



Remove the call to audit_log() (which call audit_log_start()) and deal with
the errors in the caller, logging only once if the condition is met.  Calling
audit_log_start() in this location makes buffer allocation and locking more
complicated in the calling tree (audit_filter_user()).

Signed-off-by: default avatarRichard Guy Briggs <rgb@redhat.com>
Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 9ad42a79
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