diff options
author | Paul Moore <pmoore@redhat.com> | 2014-06-26 22:33:56 +0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2014-06-26 22:33:56 +0400 |
commit | 615e51fdda6f274e94b1e905fcaf6111e0d9aa20 (patch) | |
tree | d0ce12f9f5e086c293a7255e3e712d2a42be02b9 /security/selinux/include/netport.h | |
parent | f31e799459659ae88c341aeac16a8a5efb1271d4 (diff) | |
download | linux-615e51fdda6f274e94b1e905fcaf6111e0d9aa20.tar.xz |
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>
Diffstat (limited to 'security/selinux/include/netport.h')
-rw-r--r-- | security/selinux/include/netport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/include/netport.h b/security/selinux/include/netport.h index 4d965b83d735..d1ce896b2cb0 100644 --- a/security/selinux/include/netport.h +++ b/security/selinux/include/netport.h @@ -26,6 +26,8 @@ #ifndef _SELINUX_NETPORT_H #define _SELINUX_NETPORT_H +void sel_netport_flush(void); + int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid); #endif |