Lines Matching refs:pnum
68 static unsigned int sel_netport_hashfn(u16 pnum) in sel_netport_hashfn() argument
70 return (pnum & (SEL_NETPORT_HASH_SIZE - 1)); in sel_netport_hashfn()
83 static struct sel_netport *sel_netport_find(u8 protocol, u16 pnum) in sel_netport_find() argument
88 idx = sel_netport_hashfn(pnum); in sel_netport_find()
90 if (port->psec.port == pnum && port->psec.protocol == protocol) in sel_netport_find()
137 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid_slow() argument
144 port = sel_netport_find(protocol, pnum); in sel_netport_sid_slow()
151 ret = security_port_sid(&selinux_state, protocol, pnum, sid); in sel_netport_sid_slow()
156 new->psec.port = pnum; in sel_netport_sid_slow()
183 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid() argument
188 port = sel_netport_find(protocol, pnum); in sel_netport_sid()
196 return sel_netport_sid_slow(protocol, pnum, sid); in sel_netport_sid()