Skip to content
Commit 615e51fd authored by Paul Moore's avatar Paul Moore
Browse files

selinux: reduce the number of calls to synchronize_net() when flushing caches



When flushing the AVC, such as during a policy load, the various
network caches are also flushed, with each making a call to
synchronize_net() which has shown to be expensive in some cases.
This patch consolidates the network cache flushes into a single AVC
callback which only calls synchronize_net() once for each AVC cache
flush.

Reported-by: default avatarJaejyn Shin <flagon22bass@gmail.com>
Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
parent f31e7994
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