/* * Network interface table. * * Network interfaces (devices) do not have a security field, so we * maintain a table associating each interface with a SID. * * Author: James Morris * * Copyright (C) 2003 Red Hat, Inc., James Morris * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * as published by the Free Software Foundation. */ #ifndef _SELINUX_NETIF_H_ #define _SELINUX_NETIF_H_ struct sel_netif { struct list_head list; atomic_t users; struct netif_security_struct nsec; struct rcu_head rcu_head; }; struct sel_netif *sel_netif_lookup(struct net_device *dev); void sel_netif_put(struct sel_netif *netif); #endif /* _SELINUX_NETIF_H_ */