Home
last modified time | relevance | path

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

/external/selinux/python/sepolicy/sepolicy/
Dnetwork.py37 portrecs, portrecsbynum = sepolicy.gen_port_dict()
64 d[(src, protocol, perm)].append((i, portrecs[(i, protocol)]))
D__init__.py104 portrecs = None variable
790 global portrecs
792 if portrecs:
793 return (portrecs, portrecsbynum)
795 portrecs = {}
802 if (i['type'], i['protocol']) in portrecs:
803 portrecs[(i['type'], i['protocol'])].append(port)
805 portrecs[(i['type'], i['protocol'])] = [port]
812 return (portrecs, portrecsbynum)
1140 global portrecs
[all …]
Dmanpage.py408 self.portrecs = sepolicy.gen_port_dict()[0]
680 if (p, prot) in self.portrecs:
688 .EE""" % (prot, ",".join(self.portrecs[(p, prot)])))
/external/selinux/python/sepolicy/
Dsepolicy.py282 portrecs, portrecsbynum = sepolicy.gen_port_dict()
285 for i in portrecs:
308 if (t, 'tcp') in portrecs.keys():
309 print("%s: tcp: %s" % (t, ",".join(portrecs[t, 'tcp'])))
310 if (t, 'udp') in portrecs.keys():
311 print( "%s: udp: %s" % (t, ",".join(portrecs[t, 'udp'])))