Home
last modified time | relevance | path

Searched refs:obj_class (Results 1 – 9 of 9) sorted by relevance

/external/selinux/sepolgen/src/sepolgen/
Daccess.py86 self.obj_class = None
114 self.obj_class = list[2]
125 l = [self.src_type, self.tgt_type, self.obj_class]
134 self.obj_class, self.perms.to_space_str())
141 if self.obj_class != self.obj_class:
142 return cmp(self.obj_class, other.obj_class)
170 for obj_class in avrule.obj_classes:
174 access.obj_class = obj_class
259 …def add(self, src_type, tgt_type, obj_class, perms, audit_msg=None, avc_type=audit2why.TERULE, dat… argument
265 if cls.has_key((obj_class, avc_type)):
[all …]
Dmatching.py121 total = self.perm_maps.getdefault_distance(av_req.obj_class, diff)
125 return self.perm_maps.getdefault_distance(av_req.obj_class, diff)
174 if req.obj_class != prov.obj_class and not access.is_idparam(prov.obj_class):
183 pdist = self.perm_maps.getdefault_distance(prov.obj_class, prov.perms)
224 av_dir = self.perm_maps.getdefault_direction(av.obj_class, av.perms)
230 self.perm_maps.getdefault_direction(x.obj_class, x.perms)
Dpolicygen.py184 ( "dir" in av.obj_class or "open" in av.perms )):
189 …bda x: x[TCONTEXT], sesearch([ALLOW], {SCONTEXT: av.src_type, CLASS: av.obj_class, PERMS: av.perms…
193 …can write to a '%s' of the following type:\n# %s\n" % ( av.src_type, av.obj_class, ", ".join(types…
195 …an write to a '%s' of the following types:\n# %s\n" % ( av.src_type, av.obj_class, ", ".join(types…
268 (av.src_type, av.tgt_type, av.obj_class, av.perms.to_space_str()))
297 ifcall.args.append(av.obj_class)
Dinterfaces.py77 avobjs = [av.obj_class]
101 p.obj_classes.add(av.obj_class)
152 if access.is_idparam(av.obj_class):
153 if __param_insert(av.obj_class, refpolicy.OBJ_CLASS, av, params) == 1:
442 obj_classes = self.map_param(av.obj_class, ifcall)
458 for obj_class in obj_classes:
459 ifv.access.add(src_type, tgt_type, obj_class, new_perms)
Drefpolicy.py480 self.obj_classes.add(av.obj_class)
847 def add_obj_class(self, obj_class, perms): argument
848 p = self.obj_classes.setdefault(obj_class, IdSet())
857 for obj_class, perms in self.obj_classes.items():
858 s.append("\tclass %s %s;" % (obj_class, perms.to_space_str()))
883 def __init__(self, obj_class, perms): argument
884 self.obj_class = obj_class
888 return self.obj_class + ": " + self.perms
/external/selinux/sepolgen/tests/
Dtest_access.py32 self.assertEqual(a.obj_class, None)
41 a.obj_class = "file"
47 self.assertEqual(a.obj_class, l.obj_class)
54 a.obj_class = "file"
61 self.assertEqual(a.obj_class, l.obj_class)
68 a.obj_class = "file"
82 a.obj_class = "file"
92 a.obj_class = "file"
98 b.obj_class = "file"
167 comps[i][2] == av.obj_class:
[all …]
Dtest_interfaces.py54 av.obj_class = "process"
64 av.obj_class = "dir"
74 av.obj_class = "dir"
/external/mesa3d/src/gallium/drivers/nvc0/
Dnvc0_screen.c307 nvc0_magic_3d_init(struct nouveau_pushbuf *push, uint16_t obj_class) in nvc0_magic_3d_init() argument
359 if (obj_class >= NVE4_3D_CLASS) { in nvc0_magic_3d_init()
406 uint32_t obj_class; in nvc0_screen_create() local
461 obj_class = NVE4_P2MF_CLASS; in nvc0_screen_create()
464 obj_class = NVC0_M2MF_CLASS; in nvc0_screen_create()
467 ret = nouveau_object_new(chan, 0xbeef323f, obj_class, NULL, 0, in nvc0_screen_create()
503 obj_class = NVE4_3D_CLASS; in nvc0_screen_create()
511 obj_class = NVC8_3D_CLASS; in nvc0_screen_create()
514 obj_class = NVC1_3D_CLASS; in nvc0_screen_create()
517 obj_class = NVC0_3D_CLASS; in nvc0_screen_create()
[all …]
/external/selinux/policycoreutils/sepolicy/
Dsearch.c383 const qpol_class_t *obj_class = NULL; in get_te_results() local
443 if (qpol_terule_get_object_class(q, rule, &obj_class)) in get_te_results()
445 if (qpol_class_get_name(q, obj_class, &tmp_name)) in get_te_results()
556 const qpol_class_t *obj_class = NULL; in get_ft_results() local
601 if (qpol_filename_trans_get_object_class(q, filename_trans, &obj_class)) in get_ft_results()
604 if (qpol_class_get_name(q, obj_class, &tmp_name)) in get_ft_results()
761 const qpol_class_t *obj_class = NULL; in get_av_results() local
813 if (qpol_avrule_get_object_class(q, rule, &obj_class)) { in get_av_results()
816 if (qpol_class_get_name(q, obj_class, &tmp_name)) { in get_av_results()