/external/selinux/python/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 | 482 self.obj_classes.add(av.obj_class) 862 def add_obj_class(self, obj_class, perms): argument 863 p = self.obj_classes.setdefault(obj_class, IdSet()) 872 for obj_class, perms in self.obj_classes.items(): 873 s.append("\tclass %s %s;" % (obj_class, perms.to_space_str())) 898 def __init__(self, obj_class, perms): argument 899 self.obj_class = obj_class 903 return self.obj_class + ": " + self.perms
|
/external/selinux/python/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/nouveau/nvc0/ |
D | nvc0_screen.c | 439 const uint16_t obj_class = screen->compute->oclass; in nvc0_screen_get_compute_param() local 451 if (obj_class >= NVE4_COMPUTE_CLASS) { in nvc0_screen_get_compute_param() 461 if (obj_class >= NVE4_COMPUTE_CLASS) { in nvc0_screen_get_compute_param() 469 switch (obj_class) { in nvc0_screen_get_compute_param() 578 nvc0_magic_3d_init(struct nouveau_pushbuf *push, uint16_t obj_class) in nvc0_magic_3d_init() argument 596 if (obj_class < GM107_3D_CLASS) { in nvc0_magic_3d_init() 628 if (obj_class < GM107_3D_CLASS) { in nvc0_magic_3d_init() 632 if (obj_class >= NVE4_3D_CLASS) { in nvc0_magic_3d_init() 767 uint32_t obj_class; in nvc0_screen_create() local 852 obj_class = NVF0_P2MF_CLASS; in nvc0_screen_create() [all …]
|
D | nve4_compute.c | 43 uint32_t obj_class; in nve4_screen_compute_setup() local 49 obj_class = NVF0_COMPUTE_CLASS; /* GK110 */ in nve4_screen_compute_setup() 52 obj_class = NVE4_COMPUTE_CLASS; /* GK104 */ in nve4_screen_compute_setup() 55 obj_class = GM107_COMPUTE_CLASS; in nve4_screen_compute_setup() 58 obj_class = GM200_COMPUTE_CLASS; in nve4_screen_compute_setup() 65 ret = nouveau_object_new(chan, 0xbeef00c0, obj_class, NULL, 0, in nve4_screen_compute_setup() 106 PUSH_DATA (push, (obj_class >= NVF0_COMPUTE_CLASS) ? 0x400 : 0x300); in nve4_screen_compute_setup() 118 if (obj_class >= NVF0_COMPUTE_CLASS) { in nve4_screen_compute_setup()
|
D | nvc0_compute.c | 35 uint32_t obj_class; in nvc0_screen_compute_setup() local 44 obj_class = NVC0_COMPUTE_CLASS; in nvc0_screen_compute_setup() 51 ret = nouveau_object_new(chan, 0xbeef90c0, obj_class, NULL, 0, in nvc0_screen_compute_setup()
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_compute.c | 39 unsigned obj_class; in nv50_screen_compute_setup() local 46 obj_class = NV50_COMPUTE_CLASS; in nv50_screen_compute_setup() 53 obj_class = NVA3_COMPUTE_CLASS; in nv50_screen_compute_setup() 56 obj_class = NV50_COMPUTE_CLASS; in nv50_screen_compute_setup() 65 ret = nouveau_object_new(chan, 0xbeef50c0, obj_class, NULL, 0, in nv50_screen_compute_setup()
|
/external/curl/lib/vtls/ |
D | nss.c | 377 CK_OBJECT_CLASS obj_class, in nss_create_object() argument 400 PK11_SETATTRS(attrs, attr_cnt, CKA_CLASS, &obj_class, sizeof(obj_class)); in nss_create_object() 405 if(CKO_CERTIFICATE == obj_class) { in nss_create_object() 420 if(!cacert && CKO_CERTIFICATE == obj_class) in nss_create_object()
|