Home
last modified time | relevance | path

Searched refs:portrecs (Results 1 – 4 of 4) sorted by relevance

/external/selinux/python/sepolicy/sepolicy/
D__init__.py106 portrecs = None variable
836 global portrecs
838 if portrecs:
839 return (portrecs, portrecsbynum)
841 portrecs = {}
848 if (i['type'], i['protocol']) in portrecs:
849 portrecs[(i['type'], i['protocol'])].append(port)
851 portrecs[(i['type'], i['protocol'])] = [port]
858 return (portrecs, portrecsbynum)
1198 global portrecs
[all …]
Dnetwork.py37 portrecs, portrecsbynum = sepolicy.gen_port_dict()
64 d[(src, protocol, perm)].append((i, portrecs[(i, protocol)]))
Dmanpage.py415 self.portrecs = sepolicy.gen_port_dict()[0]
727 if (p, prot) in self.portrecs:
735 .EE""" % (prot, ",".join(self.portrecs[(p, prot)])))
/external/selinux/python/sepolicy/
Dsepolicy.py276 portrecs, portrecsbynum = sepolicy.gen_port_dict()
279 for i in portrecs:
302 if (t, 'tcp') in portrecs.keys():
303 print("%s: tcp: %s" % (t, ",".join(portrecs[t, 'tcp'])))
304 if (t, 'udp') in portrecs.keys():
305 print( "%s: udp: %s" % (t, ",".join(portrecs[t, 'udp'])))