Searched refs:cladatum (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/security/selinux/ss/ |
H A D | policydb.c | 347 struct class_datum *cladatum; class_index() local 350 cladatum = datum; class_index() 352 if (!cladatum->value || cladatum->value > p->p_classes.nprim) class_index() 355 if (flex_array_put_ptr(fa, cladatum->value - 1, key, class_index() 358 p->class_val_to_struct[cladatum->value - 1] = cladatum; class_index() 640 struct class_datum *cladatum; cls_destroy() local 646 cladatum = datum; cls_destroy() 647 hashtab_map(cladatum->permissions.table, perm_destroy, NULL); cls_destroy() 648 hashtab_destroy(cladatum->permissions.table); cls_destroy() 649 constraint = cladatum->constraints; cls_destroy() 662 constraint = cladatum->validatetrans; cls_destroy() 674 kfree(cladatum->comkey); cls_destroy() 1310 struct class_datum *cladatum; class_read() local 1316 cladatum = kzalloc(sizeof(*cladatum), GFP_KERNEL); class_read() 1317 if (!cladatum) class_read() 1326 cladatum->value = le32_to_cpu(buf[2]); class_read() 1328 rc = symtab_init(&cladatum->permissions, PERM_SYMTAB_SIZE); class_read() 1331 cladatum->permissions.nprim = le32_to_cpu(buf[3]); class_read() 1341 rc = str_read(&cladatum->comkey, GFP_KERNEL, fp, len2); class_read() 1346 cladatum->comdatum = hashtab_search(p->p_commons.table, cladatum->comkey); class_read() 1347 if (!cladatum->comdatum) { class_read() 1348 printk(KERN_ERR "SELinux: unknown common %s\n", cladatum->comkey); class_read() 1353 rc = perm_read(p, cladatum->permissions.table, fp); class_read() 1358 rc = read_cons_helper(p, &cladatum->constraints, ncons, 0, fp); class_read() 1368 rc = read_cons_helper(p, &cladatum->validatetrans, class_read() 1379 cladatum->default_user = le32_to_cpu(buf[0]); class_read() 1380 cladatum->default_role = le32_to_cpu(buf[1]); class_read() 1381 cladatum->default_range = le32_to_cpu(buf[2]); class_read() 1388 cladatum->default_type = le32_to_cpu(buf[0]); class_read() 1391 rc = hashtab_insert(h, key, cladatum); class_read() 1397 cls_destroy(key, cladatum, NULL); class_read() 1804 struct class_datum *cladatum; string_to_security_class() local 1806 cladatum = hashtab_search(p->p_classes.table, name); string_to_security_class() 1807 if (!cladatum) string_to_security_class() 1810 return cladatum->value; string_to_security_class() 1815 struct class_datum *cladatum; string_to_av_perm() local 1822 cladatum = p->class_val_to_struct[tclass-1]; string_to_av_perm() 1823 comdatum = cladatum->comdatum; string_to_av_perm() 1828 perdatum = hashtab_search(cladatum->permissions.table, string_to_av_perm() 2835 struct class_datum *cladatum = datum; class_write() local 2846 if (cladatum->comkey) class_write() 2847 len2 = strlen(cladatum->comkey); class_write() 2852 for (c = cladatum->constraints; c; c = c->next) class_write() 2857 buf[2] = cpu_to_le32(cladatum->value); class_write() 2858 buf[3] = cpu_to_le32(cladatum->permissions.nprim); class_write() 2859 if (cladatum->permissions.table) class_write() 2860 buf[4] = cpu_to_le32(cladatum->permissions.table->nel); class_write() 2872 if (cladatum->comkey) { class_write() 2873 rc = put_entry(cladatum->comkey, 1, len2, fp); class_write() 2878 rc = hashtab_map(cladatum->permissions.table, perm_write, fp); class_write() 2882 rc = write_cons_helper(p, cladatum->constraints, fp); class_write() 2888 for (c = cladatum->validatetrans; c; c = c->next) class_write() 2896 rc = write_cons_helper(p, cladatum->validatetrans, fp); class_write() 2901 buf[0] = cpu_to_le32(cladatum->default_user); class_write() 2902 buf[1] = cpu_to_le32(cladatum->default_role); class_write() 2903 buf[2] = cpu_to_le32(cladatum->default_range); class_write() 2911 buf[0] = cpu_to_le32(cladatum->default_type); class_write()
|
H A D | mls.c | 514 struct class_datum *cladatum; mls_compute_sid() local 531 cladatum = policydb.class_val_to_struct[tclass - 1]; mls_compute_sid() 532 if (cladatum) mls_compute_sid() 533 default_range = cladatum->default_range; mls_compute_sid()
|
H A D | services.c | 1401 struct class_datum *cladatum = NULL; security_compute_sid() local 1451 cladatum = policydb.class_val_to_struct[tclass - 1]; security_compute_sid() 1457 if (cladatum && cladatum->default_user == DEFAULT_TARGET) { security_compute_sid() 1472 if (cladatum && cladatum->default_role == DEFAULT_SOURCE) { security_compute_sid() 1474 } else if (cladatum && cladatum->default_role == DEFAULT_TARGET) { security_compute_sid() 1484 if (cladatum && cladatum->default_type == DEFAULT_SOURCE) { security_compute_sid() 1486 } else if (cladatum && cladatum->default_type == DEFAULT_TARGET) { security_compute_sid()
|
Completed in 136 milliseconds