Lines Matching full:sid
127 * sel_netport_sid_slow - Lookup the SID of a network address using the policy
130 * @sid: port SID
133 * This function determines the SID of a network port by querying the security
138 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid_slow() argument
147 *sid = port->psec.sid; in sel_netport_sid_slow()
152 ret = security_port_sid(&selinux_state, protocol, pnum, sid); in sel_netport_sid_slow()
159 new->psec.sid = *sid; in sel_netport_sid_slow()
172 * sel_netport_sid - Lookup the SID of a network port
175 * @sid: port SID
178 * This function determines the SID of a network port using the fastest method
184 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid() argument
191 *sid = port->psec.sid; in sel_netport_sid()
197 return sel_netport_sid_slow(protocol, pnum, sid); in sel_netport_sid()