/external/selinux/sepolgen/src/sepolgen/ |
D | access.py | 88 self.obj_class = None 119 self.obj_class = list[2] 130 l = [self.src_type, self.tgt_type, self.obj_class] 139 self.obj_class, self.perms.to_space_str()) 144 a = (self.src_type, self.tgt_type, self.obj_class, x) 148 b = (other.src_type, other.tgt_type, other.obj_class, y) 171 for obj_class in avrule.obj_classes: 175 access.obj_class = obj_class 260 …def add(self, src_type, tgt_type, obj_class, perms, audit_msg=None, avc_type=audit2why.TERULE, dat… argument 266 if (obj_class, avc_type) in cls: [all …]
|
D | matching.py | 118 total = self.perm_maps.getdefault_distance(av_req.obj_class, diff) 122 return self.perm_maps.getdefault_distance(av_req.obj_class, diff) 171 if req.obj_class != prov.obj_class and not access.is_idparam(prov.obj_class): 180 pdist = self.perm_maps.getdefault_distance(prov.obj_class, prov.perms) 221 av_dir = self.perm_maps.getdefault_direction(av.obj_class, av.perms) 227 self.perm_maps.getdefault_direction(x.obj_class, x.perms)
|
D | policygen.py | 185 ( "dir" in av.obj_class or "open" in av.perms )): 190 …[TCONTEXT] for x in sesearch([ALLOW], {SCONTEXT: av.src_type, CLASS: av.obj_class, PERMS: av.perms… 194 …can write to a '%s' of the following type:\n# %s\n" % ( av.src_type, av.obj_class, ", ".join(types… 196 …an write to a '%s' of the following types:\n# %s\n" % ( av.src_type, av.obj_class, ", ".join(types… 269 (av.src_type, av.tgt_type, av.obj_class, av.perms.to_space_str())) 295 ifcall.args.append(av.obj_class)
|
D | interfaces.py | 77 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)
|
D | refpolicy.py | 479 self.obj_classes.add(av.obj_class) 846 def add_obj_class(self, obj_class, perms): argument 847 p = self.obj_classes.setdefault(obj_class, IdSet()) 856 for obj_class, perms in self.obj_classes.items(): 857 s.append("\tclass %s %s;" % (obj_class, perms.to_space_str())) 882 def __init__(self, obj_class, perms): argument 883 self.obj_class = obj_class 887 return self.obj_class + ": " + self.perms
|
/external/selinux/sepolgen/tests/ |
D | test_access.py | 32 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" 84 a.obj_class = "file" 107 a.obj_class = "file" 113 b.obj_class = "file" 184 comps[i][2] == av.obj_class: [all …]
|
D | test_interfaces.py | 54 av.obj_class = "process" 64 av.obj_class = "dir" 74 av.obj_class = "dir"
|
/external/mesa3d/src/gallium/drivers/nvc0/ |
D | nvc0_screen.c | 307 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/ |
D | search.c | 383 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()
|
/external/curl/lib/vtls/ |
D | nss.c | 341 CK_OBJECT_CLASS obj_class, in nss_create_object() argument 364 PK11_SETATTRS(attrs, attr_cnt, CKA_CLASS, &obj_class, sizeof(obj_class)); in nss_create_object() 369 if(CKO_CERTIFICATE == obj_class) { in nss_create_object() 384 if(!cacert && CKO_CERTIFICATE == obj_class) in nss_create_object()
|