Lines Matching refs:pnum
69 static unsigned int sel_netport_hashfn(u16 pnum) in sel_netport_hashfn() argument
71 return (pnum & (SEL_NETPORT_HASH_SIZE - 1)); in sel_netport_hashfn()
84 static struct sel_netport *sel_netport_find(u8 protocol, u16 pnum) in sel_netport_find() argument
89 idx = sel_netport_hashfn(pnum); in sel_netport_find()
91 if (port->psec.port == pnum && port->psec.protocol == protocol) in sel_netport_find()
138 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid_slow() argument
145 port = sel_netport_find(protocol, pnum); in sel_netport_sid_slow()
152 ret = security_port_sid(&selinux_state, protocol, pnum, sid); in sel_netport_sid_slow()
157 new->psec.port = pnum; in sel_netport_sid_slow()
184 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid() argument
189 port = sel_netport_find(protocol, pnum); in sel_netport_sid()
197 return sel_netport_sid_slow(protocol, pnum, sid); in sel_netport_sid()