Lines Matching full:sid
6 * maintain a table associating each interface with a SID.
121 * sel_netif_sid_slow - Lookup the SID of a network interface using the policy
124 * @sid: interface SID
127 * This function determines the SID of a network interface by querying the
133 static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid_slow() argument
153 *sid = netif->nsec.sid; in sel_netif_sid_slow()
157 ret = security_netif_sid(&selinux_state, dev->name, sid); in sel_netif_sid_slow()
164 new->nsec.sid = *sid; in sel_netif_sid_slow()
179 * sel_netif_sid - Lookup the SID of a network interface
182 * @sid: interface SID
185 * This function determines the SID of a network interface using the fastest
192 int sel_netif_sid(struct net *ns, int ifindex, u32 *sid) in sel_netif_sid() argument
199 *sid = netif->nsec.sid; in sel_netif_sid()
205 return sel_netif_sid_slow(ns, ifindex, sid); in sel_netif_sid()