Home
last modified time | relevance | path

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

/external/selinux/policycoreutils/sepolicy/sepolicy/
D__init__.py511 portrecs = None variable
532 global portrecs
534 if portrecs:
535 return (portrecs, portrecsbynum)
537 portrecs = {}
544 if (i['type'], i['protocol']) in portrecs:
545 portrecs[(i['type'], i['protocol'])].append(port)
547 portrecs[(i['type'], i['protocol'])] = [port]
554 return (portrecs, portrecsbynum)
954 global portrecs
[all …]
Dnetwork.py39 portrecs, portrecsbynum = sepolicy.gen_port_dict()
66 d[(src, protocol, perm)].append((i, portrecs[(i, protocol)]))
Dmanpage.py410 self.portrecs = gen_port_dict()[0]
682 if (p, prot) in self.portrecs:
690 .EE""" % (prot, ",".join(self.portrecs[(p, prot)])))
/external/selinux/policycoreutils/sepolicy/
Dsepolicy.py277 portrecs, portrecsbynum = sepolicy.gen_port_dict()
280 for i in portrecs:
303 if (t, 'tcp') in portrecs.keys():
304 print "%s: tcp: %s" % (t, ",".join(portrecs[t, 'tcp']))
305 if (t, 'udp') in portrecs.keys():
306 print "%s: udp: %s" % (t, ",".join(portrecs[t, 'udp']))