Home
last modified time | relevance | path

Searched refs:ifcall (Results 1 – 3 of 3) sorted by relevance

/external/selinux/python/sepolgen/src/sepolgen/
Dpolicygen.py250 ifcall = call_interface(match.interface, ml.av)
251 s.append(' %s # [%d]' % (ifcall.to_string(), match.dist))
286 ifcall = refpolicy.InterfaceCall()
287 ifcall.ifname = interface.name
291 ifcall.args.append(av.src_type)
293 ifcall.args.append(av.tgt_type)
295 ifcall.args.append(av.obj_class)
300 assert(len(ifcall.args) > 0)
302 return ifcall
338 ifcall = call_interface(ml.best().interface, ml.av)
[all …]
Dinterfaces.py192 def ifcall_extract_params(ifcall, params): argument
194 for arg in ifcall.args:
305 for ifcall in interface.interface_calls():
306 if ifcall_extract_params(ifcall, self.params):
417 def map_param(self, id, ifcall): argument
420 if num > len(ifcall.args):
425 arg = ifcall.args[num - 1]
433 def map_add_av(self, ifv, av, ifcall): argument
434 src_types = self.map_param(av.src_type, ifcall)
438 tgt_types = self.map_param(av.tgt_type, ifcall)
[all …]
/external/selinux/python/sepolgen/tests/
Dtest_refpolicy.py141 ifcall = refpolicy.InterfaceCall(ifname="allow_foobar")
142 ifcall.args.append("foo_t")
143 ifcall.args.append("{ file dir }")
147 i.children.append(ifcall)