|
@@ -240,7 +240,7 @@ static void sel_netif_kill(int ifindex)
|
|
* Remove all entries from the network interface table.
|
|
* Remove all entries from the network interface table.
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
-static void sel_netif_flush(void)
|
|
|
|
|
|
+void sel_netif_flush(void)
|
|
{
|
|
{
|
|
int idx;
|
|
int idx;
|
|
struct sel_netif *netif;
|
|
struct sel_netif *netif;
|
|
@@ -252,15 +252,6 @@ static void sel_netif_flush(void)
|
|
spin_unlock_bh(&sel_netif_lock);
|
|
spin_unlock_bh(&sel_netif_lock);
|
|
}
|
|
}
|
|
|
|
|
|
-static int sel_netif_avc_callback(u32 event)
|
|
|
|
-{
|
|
|
|
- if (event == AVC_CALLBACK_RESET) {
|
|
|
|
- sel_netif_flush();
|
|
|
|
- synchronize_net();
|
|
|
|
- }
|
|
|
|
- return 0;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static int sel_netif_netdev_notifier_handler(struct notifier_block *this,
|
|
static int sel_netif_netdev_notifier_handler(struct notifier_block *this,
|
|
unsigned long event, void *ptr)
|
|
unsigned long event, void *ptr)
|
|
{
|
|
{
|
|
@@ -291,10 +282,6 @@ static __init int sel_netif_init(void)
|
|
|
|
|
|
register_netdevice_notifier(&sel_netif_netdev_notifier);
|
|
register_netdevice_notifier(&sel_netif_netdev_notifier);
|
|
|
|
|
|
- err = avc_add_callback(sel_netif_avc_callback, AVC_CALLBACK_RESET);
|
|
|
|
- if (err)
|
|
|
|
- panic("avc_add_callback() failed, error %d\n", err);
|
|
|
|
-
|
|
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|
|
|
|
|