• Home
  • Raw
  • Download

Lines Matching refs:rule

196 static int smk_parse_rule(const char *data, struct smack_rule *rule, int import)  in smk_parse_rule()  argument
202 rule->smk_subject = smk_import(data, 0); in smk_parse_rule()
203 if (rule->smk_subject == NULL) in smk_parse_rule()
206 rule->smk_object = smk_import(data + SMK_LABELLEN, 0); in smk_parse_rule()
207 if (rule->smk_object == NULL) in smk_parse_rule()
214 rule->smk_subject = skp->smk_known; in smk_parse_rule()
220 rule->smk_object = skp->smk_known; in smk_parse_rule()
223 rule->smk_access = 0; in smk_parse_rule()
230 rule->smk_access |= MAY_READ; in smk_parse_rule()
241 rule->smk_access |= MAY_WRITE; in smk_parse_rule()
252 rule->smk_access |= MAY_EXEC; in smk_parse_rule()
263 rule->smk_access |= MAY_APPEND; in smk_parse_rule()
274 rule->smk_access |= MAY_TRANSMUTE; in smk_parse_rule()
307 struct smack_rule *rule; in smk_write_load_list() local
339 rule = kzalloc(sizeof(*rule), GFP_KERNEL); in smk_write_load_list()
340 if (rule == NULL) { in smk_write_load_list()
345 if (smk_parse_rule(data, rule, 1)) in smk_write_load_list()
350 skp = smk_find_entry(rule->smk_subject); in smk_write_load_list()
362 if (load && !smk_set_access(rule, rule_list, rule_lock)) { in smk_write_load_list()
365 smlp->smk_rule = rule; in smk_write_load_list()
373 kfree(rule); in smk_write_load_list()
676 char *rule; in smk_write_cipso() local
707 rule = data; in smk_write_cipso()
714 skp = smk_import_entry(rule, 0); in smk_write_cipso()
718 rule += SMK_LABELLEN; in smk_write_cipso()
719 ret = sscanf(rule, "%d", &maplevel); in smk_write_cipso()
723 rule += SMK_DIGITLEN; in smk_write_cipso()
724 ret = sscanf(rule, "%d", &catlen); in smk_write_cipso()
734 rule += SMK_DIGITLEN; in smk_write_cipso()
735 ret = sscanf(rule, "%d", &cat); in smk_write_cipso()
1479 struct smack_rule rule; in smk_write_access() local
1487 if (count < SMK_LOADLEN || smk_parse_rule(data, &rule, 0)) in smk_write_access()
1490 res = smk_access(rule.smk_subject, rule.smk_object, rule.smk_access, in smk_write_access()