]> Git Repo - linux.git/blobdiff - security/selinux/netnode.c
vmscan: split file huge pages before paging them out
[linux.git] / security / selinux / netnode.c
index 03a72c32afd738ccad5c188bbe853202c32f53f6..da923f89d2a99aa9a5e3a92691cc9e3f66f15f3b 100644 (file)
@@ -283,7 +283,7 @@ int sel_netnode_sid(void *addr, u16 family, u32 *sid)
  * Remove all entries from the network address table.
  *
  */
-static void sel_netnode_flush(void)
+void sel_netnode_flush(void)
 {
        unsigned int idx;
        struct sel_netnode *node, *node_tmp;
@@ -300,19 +300,9 @@ static void sel_netnode_flush(void)
        spin_unlock_bh(&sel_netnode_lock);
 }
 
-static int sel_netnode_avc_callback(u32 event)
-{
-       if (event == AVC_CALLBACK_RESET) {
-               sel_netnode_flush();
-               synchronize_net();
-       }
-       return 0;
-}
-
 static __init int sel_netnode_init(void)
 {
        int iter;
-       int ret;
 
        if (!selinux_enabled)
                return 0;
@@ -322,11 +312,7 @@ static __init int sel_netnode_init(void)
                sel_netnode_hash[iter].size = 0;
        }
 
-       ret = avc_add_callback(sel_netnode_avc_callback, AVC_CALLBACK_RESET);
-       if (ret != 0)
-               panic("avc_add_callback() failed, error %d\n", ret);
-
-       return ret;
+       return 0;
 }
 
 __initcall(sel_netnode_init);
This page took 0.030838 seconds and 4 git commands to generate.