]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: reduce the number of calls to synchronize_net() when flushing caches
authorPaul Moore <pmoore@redhat.com>
Thu, 26 Jun 2014 18:33:56 +0000 (14:33 -0400)
committerPaul Moore <pmoore@redhat.com>
Thu, 26 Jun 2014 18:33:56 +0000 (14:33 -0400)
commit0fd7227b26063d51af2710893e776d701137e7ea
treed0ce12f9f5e086c293a7255e3e712d2a42be02b9
parent48bccb57fb05deb5c91839cbeab721d6284c4c9a
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: Jaejyn Shin <flagon22bass@gmail.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/hooks.c
security/selinux/include/netif.h
security/selinux/include/netnode.h
security/selinux/include/netport.h
security/selinux/netif.c
security/selinux/netnode.c
security/selinux/netport.c