• Home
  • Raw
  • Download

Lines Matching refs:tgt

973 static int __cil_insert_type_rule(policydb_t *pdb, uint32_t kind, uint32_t src, uint32_t tgt, uint3…  in __cil_insert_type_rule()  argument
981 avtab_key.target_type = tgt; in __cil_insert_type_rule()
1010 pdb->p_type_val_to_name[tgt - 1], in __cil_insert_type_rule()
1043 pdb->p_type_val_to_name[tgt - 1], in __cil_insert_type_rule()
1097 struct cil_symtab_datum *tgt = NULL; in __cil_type_rule_to_avtab() local
1110 tgt = cil_rule->tgt; in __cil_type_rule_to_avtab()
1120 if (tgt->fqn == CIL_KEY_SELF) { in __cil_type_rule_to_avtab()
1132 rc = __cil_expand_type(tgt, &tgt_bitmap); in __cil_type_rule_to_avtab()
1210 struct cil_symtab_datum *tgt = NULL; in __cil_typetransition_to_avtab() local
1224 trans.tgt = typetrans->tgt; in __cil_typetransition_to_avtab()
1238 tgt = typetrans->tgt; in __cil_typetransition_to_avtab()
1248 if (tgt->fqn == CIL_KEY_SELF) { in __cil_typetransition_to_avtab()
1260 rc = __cil_expand_type(tgt, &tgt_bitmap); in __cil_typetransition_to_avtab()
1344 static int __cil_insert_avrule(policydb_t *pdb, uint32_t kind, uint32_t src, uint32_t tgt, uint32_t… in __cil_insert_avrule() argument
1352 avtab_key.target_type = tgt; in __cil_insert_avrule()
1391 …pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_classpe… in __cil_avrule_expand_helper() argument
1417 rc = __cil_get_sepol_type_datum(pdb, tgt, &sepol_tgt); in __cil_avrule_expand_helper()
1432 …pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_list *c… in __cil_avrule_expand() argument
1441 rc = __cil_avrule_expand_helper(pdb, kind, src, tgt, cp, cond_node, cond_flavor); in __cil_avrule_expand()
1449 rc = __cil_avrule_expand(pdb, kind, src, tgt, cmp->classperms, cond_node, cond_flavor); in __cil_avrule_expand()
1458 rc = __cil_avrule_expand(pdb, kind, src, tgt, cp->classperms, cond_node, cond_flavor); in __cil_avrule_expand()
1492 struct cil_symtab_datum *tgt = NULL; in __cil_avrule_to_avtab() local
1505 tgt = cil_avrule->tgt; in __cil_avrule_to_avtab()
1507 if (tgt->fqn == CIL_KEY_SELF) { in __cil_avrule_to_avtab()
1524 int expand_tgt = __cil_should_expand_attribute(db, tgt); in __cil_avrule_to_avtab()
1526 rc = __cil_avrule_expand(pdb, kind, src, tgt, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab()
1536 rc = __cil_expand_type(tgt, &tgt_bitmap); in __cil_avrule_to_avtab()
1545 tgt = DATUM(db->val_to_type[t]); in __cil_avrule_to_avtab()
1547 rc = __cil_avrule_expand(pdb, kind, src, tgt, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab()
1566 rc = __cil_avrule_expand(pdb, kind, src, tgt, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab()
1574 rc = __cil_expand_type(tgt, &tgt_bitmap); in __cil_avrule_to_avtab()
1580 tgt = DATUM(db->val_to_type[t]); in __cil_avrule_to_avtab()
1582 rc = __cil_avrule_expand(pdb, kind, src, tgt, classperms, cond_node, cond_flavor); in __cil_avrule_to_avtab()
1753 static int __cil_avrulex_ioctl_to_hashtable(hashtab_t h, uint16_t kind, uint32_t src, uint32_t tgt,… in __cil_avrulex_ioctl_to_hashtable() argument
1777 avtab_key->target_type = tgt; in __cil_avrulex_ioctl_to_hashtable()
1810 …pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_permiss… in __cil_avrulex_to_hashtable_helper() argument
1822 rc = __cil_get_sepol_type_datum(pdb, tgt, &sepol_tgt); in __cil_avrulex_to_hashtable_helper()
1855 struct cil_symtab_datum *tgt = NULL; in cil_avrulex_to_hashtable() local
1868 tgt = cil_avrulex->tgt; in cil_avrulex_to_hashtable()
1870 if (tgt->fqn == CIL_KEY_SELF) { in cil_avrulex_to_hashtable()
1884 int expand_tgt = __cil_should_expand_attribute(db, tgt); in cil_avrulex_to_hashtable()
1887 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, tgt, cil_avrulex->perms.x.permx, args); in cil_avrulex_to_hashtable()
1897 rc = __cil_expand_type(tgt, &tgt_bitmap); in cil_avrulex_to_hashtable()
1906 tgt = DATUM(db->val_to_type[t]); in cil_avrulex_to_hashtable()
1908 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, tgt, cil_avrulex->perms.x.permx, args); in cil_avrulex_to_hashtable()
1927 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, tgt, cil_avrulex->perms.x.permx, args); in cil_avrulex_to_hashtable()
1935 rc = __cil_expand_type(tgt, &tgt_bitmap); in cil_avrulex_to_hashtable()
1941 tgt = DATUM(db->val_to_type[t]); in cil_avrulex_to_hashtable()
1943 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, tgt, cil_avrulex->perms.x.permx, args); in cil_avrulex_to_hashtable()
2432 rc = __cil_expand_type(roletrans->tgt, &type_bitmap); in cil_roletrans_to_policydb()
2510 rc = __cil_expand_role(roleallow->tgt, &tgt_bitmap); in cil_roleallow_to_policydb()
4715 cil_log(CIL_ERR,"%s %s ", DATUM(avrule->src)->fqn, DATUM(avrule->tgt)->fqn); in __cil_print_rule()
4747 target.tgt = cil_rule->tgt; in __cil_print_neverallow_failure()
4794 struct cil_symtab_datum *tgt = cil_rule->tgt; in cil_check_neverallow() local
4814 if (tgt->fqn == CIL_KEY_SELF) { in cil_check_neverallow()
4817 rc = __cil_add_sepol_type(pdb, db, cil_rule->tgt, &rule->ttypes.types); in cil_check_neverallow()
4933 cil_rule->tgt = type_value_to_cil[k->target_type]; in cil_avrule_from_sepol()
4934 if (!cil_rule->tgt) goto exit; in cil_avrule_from_sepol()