• Home
  • Raw
  • Download

Lines Matching refs:perms

279 	char *perms, *expr;  in class_constraint_rules_to_strs()  local
293 perms = sepol_av_to_string(pdb, class->s.value, curr->permissions); in class_constraint_rules_to_strs()
294 if (strchr(perms, ' ')) { in class_constraint_rules_to_strs()
311 perm_prefix, perms+1, perm_suffix, in class_constraint_rules_to_strs()
524 char *perms = NULL; in class_or_common_perms_to_str() local
538 perms = strs_to_str(strs); in class_or_common_perms_to_str()
544 return perms; in class_or_common_perms_to_str()
552 char *name, *perms; in write_class_and_common_rules_to_conf() local
576 perms = class_or_common_perms_to_str(&common->permissions); in write_class_and_common_rules_to_conf()
577 if (!perms) { in write_class_and_common_rules_to_conf()
582 sepol_printf(out, "common %s { %s }\n", name, perms); in write_class_and_common_rules_to_conf()
583 free(perms); in write_class_and_common_rules_to_conf()
594 perms = class_or_common_perms_to_str(&class->permissions); in write_class_and_common_rules_to_conf()
597 if (perms || class->comkey) { in write_class_and_common_rules_to_conf()
603 if (perms) { in write_class_and_common_rules_to_conf()
604 sepol_printf(out, " { %s }", perms); in write_class_and_common_rules_to_conf()
605 free(perms); in write_class_and_common_rules_to_conf()
1686 const char *flavor, *src, *tgt, *class, *perms, *new; in avtab_node_to_str() local
1734 perms = sepol_av_to_string(pdb, key->target_class, data); in avtab_node_to_str()
1735 if (perms == NULL) { in avtab_node_to_str()
1740 flavor, src, tgt, class, perms+1); in avtab_node_to_str()
1742 perms = sepol_extended_perms_to_string(datum->xperms); in avtab_node_to_str()
1743 if (perms == NULL) { in avtab_node_to_str()
1748 rule = create_str("%s %s %s:%s %s;", 5, flavor, src, tgt, class, perms); in avtab_node_to_str()