diff options
Diffstat (limited to 'security/selinux/netnode.c')
| -rw-r--r-- | security/selinux/netnode.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/security/selinux/netnode.c b/security/selinux/netnode.c index 03a72c32afd7..ddf315260839 100644 --- a/security/selinux/netnode.c +++ b/security/selinux/netnode.c | |||
| @@ -283,7 +283,7 @@ int sel_netnode_sid(void *addr, u16 family, u32 *sid) | |||
| 283 | * Remove all entries from the network address table. | 283 | * Remove all entries from the network address table. |
| 284 | * | 284 | * |
| 285 | */ | 285 | */ |
| 286 | static void sel_netnode_flush(void) | 286 | void sel_netnode_flush(void) |
| 287 | { | 287 | { |
| 288 | unsigned int idx; | 288 | unsigned int idx; |
| 289 | struct sel_netnode *node, *node_tmp; | 289 | struct sel_netnode *node, *node_tmp; |
| @@ -300,15 +300,6 @@ static void sel_netnode_flush(void) | |||
| 300 | spin_unlock_bh(&sel_netnode_lock); | 300 | spin_unlock_bh(&sel_netnode_lock); |
| 301 | } | 301 | } |
| 302 | 302 | ||
| 303 | static int sel_netnode_avc_callback(u32 event) | ||
| 304 | { | ||
| 305 | if (event == AVC_CALLBACK_RESET) { | ||
| 306 | sel_netnode_flush(); | ||
| 307 | synchronize_net(); | ||
| 308 | } | ||
| 309 | return 0; | ||
| 310 | } | ||
| 311 | |||
| 312 | static __init int sel_netnode_init(void) | 303 | static __init int sel_netnode_init(void) |
| 313 | { | 304 | { |
| 314 | int iter; | 305 | int iter; |
| @@ -322,10 +313,6 @@ static __init int sel_netnode_init(void) | |||
| 322 | sel_netnode_hash[iter].size = 0; | 313 | sel_netnode_hash[iter].size = 0; |
| 323 | } | 314 | } |
| 324 | 315 | ||
| 325 | ret = avc_add_callback(sel_netnode_avc_callback, AVC_CALLBACK_RESET); | ||
| 326 | if (ret != 0) | ||
| 327 | panic("avc_add_callback() failed, error %d\n", ret); | ||
| 328 | |||
| 329 | return ret; | 316 | return ret; |
| 330 | } | 317 | } |
| 331 | 318 | ||
