Home
last modified time | relevance | path

Searched refs:tgt_type (Results 1 – 7 of 7) sorted by relevance

/external/selinux/sepolgen/src/sepolgen/
Daccess.py85 self.tgt_type = None
113 self.tgt_type = list[1]
125 l = [self.src_type, self.tgt_type, self.obj_class]
133 return "allow %s %s:%s %s;" % (self.src_type, self.tgt_type,
139 if self.tgt_type != other.tgt_type:
140 return cmp(self.tgt_type, other.tgt_type)
169 for tgt_type in avrule.tgt_types:
173 access.tgt_type = tgt_type
259 …def add(self, src_type, tgt_type, obj_class, perms, audit_msg=None, avc_type=audit2why.TERULE, dat… argument
263 cls = tgt.setdefault(tgt_type, { })
[all …]
Dinterfaces.py148 if access.is_idparam(av.tgt_type):
149 if __param_insert(av.tgt_type, refpolicy.TGT_TYPE, av, params) == 1:
287 if av.tgt_type == attr_vec.name:
288 av.tgt_type = typeattribute.type
396 if access.is_idparam(av.tgt_type):
400 tgt_types.add(av.tgt_type)
438 tgt_types = self.map_param(av.tgt_type, ifcall)
457 for tgt_type in tgt_types:
459 ifv.access.add(src_type, tgt_type, obj_class, new_perms)
Dmatching.py171 dist += self.type_distance(req.tgt_type, prov.tgt_type)
242 ifset.tgt_type_map.get(av.tgt_type, [])):
Dpolicygen.py268 (av.src_type, av.tgt_type, av.obj_class, av.perms.to_space_str()))
295 ifcall.args.append(av.tgt_type)
Drefpolicy.py476 if av.src_type == av.tgt_type:
479 self.tgt_types.add(av.tgt_type)
/external/selinux/sepolgen/tests/
Dtest_access.py31 self.assertEqual(a.tgt_type, None)
40 a.tgt_type = "bar"
46 self.assertEqual(a.tgt_type, l.tgt_type)
53 a.tgt_type = "bar"
60 self.assertEqual(a.tgt_type, l.tgt_type)
67 a.tgt_type = "bar"
81 a.tgt_type = "bar"
91 a.tgt_type = "bar"
97 b.tgt_type = "bar"
112 b.tgt_type = "aar"
[all …]
Dtest_interfaces.py53 av.tgt_type = "$1"
63 av.tgt_type = "$1"
73 av.tgt_type = "$2"