Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 31) sorted by relevance

12

/security/tomoyo/
A Dutil.c194 if (c == 'x' || c == 'X') { in tomoyo_parse_ulong()
197 } else if (c >= '0' && c <= '7') { in tomoyo_parse_ulong()
332 return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'); in tomoyo_alphabet_char()
358 return c > ' ' && c < 127; in tomoyo_valid()
370 return c && (c <= ' ' || c >= 127); in tomoyo_invalid()
450 if (c >= '0' && c <= '3') { in tomoyo_correct_word2()
460 c = tomoyo_make_byte(c, d, e); in tomoyo_correct_word2()
461 if (c <= ' ' || c >= 127) in tomoyo_correct_word2()
499 } else if (c <= ' ' || c >= 127) { in tomoyo_correct_word2()
657 if (c < '0' || c > '7') in tomoyo_const_part_length()
[all …]
A Drealpath.c34 const unsigned char c = p[i]; in tomoyo_encode2() local
36 if (c == '\\') in tomoyo_encode2()
38 else if (c > ' ' && c < 127) in tomoyo_encode2()
51 const unsigned char c = p[i]; in tomoyo_encode2() local
53 if (c == '\\') { in tomoyo_encode2()
56 } else if (c > ' ' && c < 127) { in tomoyo_encode2()
57 *cp++ = c; in tomoyo_encode2()
60 *cp++ = (c >> 6) + '0'; in tomoyo_encode2()
61 *cp++ = ((c >> 3) & 7) + '0'; in tomoyo_encode2()
62 *cp++ = (c & 7) + '0'; in tomoyo_encode2()
A Daudit.c52 const unsigned char c = kaddr[offset++]; in tomoyo_print_bprm() local
59 } else if (c == '\\') { in tomoyo_print_bprm()
62 } else if (c > ' ' && c < 127) { in tomoyo_print_bprm()
63 *cp++ = c; in tomoyo_print_bprm()
64 } else if (!c) { in tomoyo_print_bprm()
70 *cp++ = (c >> 6) + '0'; in tomoyo_print_bprm()
71 *cp++ = ((c >> 3) & 7) + '0'; in tomoyo_print_bprm()
72 *cp++ = (c & 7) + '0'; in tomoyo_print_bprm()
74 if (c) in tomoyo_print_bprm()
A Ddomain.c650 const unsigned char c = env_page.data[offset++]; in tomoyo_environ() local
652 if (c && arg_len < TOMOYO_EXEC_TMPSIZE - 10) { in tomoyo_environ()
653 if (c == '=') { in tomoyo_environ()
655 } else if (c == '\\') { in tomoyo_environ()
658 } else if (c > ' ' && c < 127) { in tomoyo_environ()
659 arg_ptr[arg_len++] = c; in tomoyo_environ()
662 arg_ptr[arg_len++] = (c >> 6) + '0'; in tomoyo_environ()
664 = ((c >> 3) & 7) + '0'; in tomoyo_environ()
665 arg_ptr[arg_len++] = (c & 7) + '0'; in tomoyo_environ()
670 if (c) in tomoyo_environ()
A Dcondition.c138 const unsigned char c = kaddr[offset++]; in tomoyo_scan_bprm() local
140 if (c && arg_len < TOMOYO_EXEC_TMPSIZE - 10) { in tomoyo_scan_bprm()
141 if (c == '\\') { in tomoyo_scan_bprm()
144 } else if (c > ' ' && c < 127) { in tomoyo_scan_bprm()
145 arg_ptr[arg_len++] = c; in tomoyo_scan_bprm()
148 arg_ptr[arg_len++] = (c >> 6) + '0'; in tomoyo_scan_bprm()
150 ((c >> 3) & 7) + '0'; in tomoyo_scan_bprm()
151 arg_ptr[arg_len++] = (c & 7) + '0'; in tomoyo_scan_bprm()
156 if (c) in tomoyo_scan_bprm()
/security/selinux/ss/
A Dcontext.c14 u32 context_compute_hash(const struct context *c) in context_compute_hash() argument
26 if (c->len) in context_compute_hash()
27 return full_name_hash(NULL, c->str, c->len); in context_compute_hash()
29 hash = jhash_3words(c->user, c->role, c->type, hash); in context_compute_hash()
30 hash = mls_range_hash(&c->range, hash); in context_compute_hash()
A Dcontext.h39 memset(&c->range, 0, sizeof(c->range)); in mls_context_init()
146 ebitmap_destroy(&c->range.level[0].cat); in mls_context_destroy()
147 ebitmap_destroy(&c->range.level[1].cat); in mls_context_destroy()
148 mls_context_init(c); in mls_context_destroy()
151 static inline void context_init(struct context *c) in context_init() argument
153 memset(c, 0, sizeof(*c)); in context_init()
184 c->user = c->role = c->type = 0; in context_destroy()
185 kfree(c->str); in context_destroy()
186 c->str = NULL; in context_destroy()
187 c->len = 0; in context_destroy()
[all …]
A Dpolicydb.c812 c = c->next; in policydb_destroy()
825 c = c->next; in policydb_destroy()
884 for (c = head; c; c = c->next) { in policydb_load_isids()
2215 for (l = NULL, c = genfs->head; c; l = c, c = c->next) { in genfs_read()
3051 for (c = node; c; c = c->next) { in write_cons_helper()
3109 for (c = cladatum->constraints; c; c = c->next) in class_write()
3142 for (c = cladatum->validatetrans; c; c = c->next) in class_write()
3321 for (c = p->ocontexts[i]; c; c = c->next) in ocontext_write()
3327 for (c = p->ocontexts[i]; c; c = c->next) { in ocontext_write()
3471 for (c = genfs->head; c; c = c->next) in genfs_write()
[all …]
A Dservices.c2472 c = c->next; in security_port_sid()
2475 if (c) { in security_port_sid()
2525 c = c->next; in security_ib_pkey_sid()
2578 c = c->next; in security_ib_endport_sid()
2634 c = c->next; in security_netif_sid()
2707 c = c->next; in security_node_sid()
2721 c = c->next; in security_node_sid()
2920 for (c = genfs->head; c; c = c->next) { in __security_genfs_sid()
2921 if (!c->v.sclass || sclass == c->v.sclass) { in __security_genfs_sid()
2934 if (!c) in __security_genfs_sid()
[all …]
A Dsymtab.c20 unsigned char c; in symhash() local
22 while ((c = *(const unsigned char *)key++)) in symhash()
23 hash = ((hash << 5) + hash) ^ c; in symhash()
A Dmls.c189 int mls_context_isvalid(struct policydb *p, struct context *c) in mls_context_isvalid() argument
196 if (!mls_range_isvalid(p, &c->range)) in mls_context_isvalid()
199 if (c->role == OBJECT_R_VAL) in mls_context_isvalid()
205 if (!c->user || c->user > p->p_users.nprim) in mls_context_isvalid()
207 usrdatum = p->user_val_to_struct[c->user - 1]; in mls_context_isvalid()
208 if (!mls_range_contains(usrdatum->range, c->range)) in mls_context_isvalid()
A Dmls.h30 int mls_context_isvalid(struct policydb *p, struct context *c);
/security/ipe/
A DMakefile9 cmd_polgen = scripts/ipe/polgen/polgen security/ipe/boot_policy.c $(2)
11 targets += boot_policy.c
13 $(obj)/boot_policy.c: scripts/ipe/polgen/polgen $(CONFIG_IPE_BOOT_POLICY) FORCE
28 clean-files := boot_policy.c \
A Dpolicy_tests.c233 static void pol_to_desc(const struct policy_case *c, char *desc) in pol_to_desc() argument
235 strscpy(desc, c->desc, KUNIT_PARAM_DESC_SIZE); in pol_to_desc()
A D.gitignore2 boot_policy.c
/security/keys/trusted-keys/
A Dtrusted_core.c83 char *c; in datablob_parse() local
86 c = strsep(datablob, " \t"); in datablob_parse()
87 if (!c) in datablob_parse()
89 key_cmd = match_token(c, key_tokens, args); in datablob_parse()
93 c = strsep(datablob, " \t"); in datablob_parse()
94 if (!c) in datablob_parse()
96 ret = kstrtol(c, 10, &keylen); in datablob_parse()
104 c = strsep(datablob, " \t"); in datablob_parse()
105 if (!c) in datablob_parse()
107 p->blob_len = strlen(c) / 2; in datablob_parse()
[all …]
A Dtrusted_tpm1.c123 unsigned char c; in TSS_authhmac() local
136 c = !!h3; in TSS_authhmac()
160 TPM_NONCE_SIZE, h2, 1, &c, 0, 0); in TSS_authhmac()
743 static int getoptions(char *c, struct trusted_key_payload *pay, in getoptions() argument
747 char *p = c; in getoptions()
763 if (!c) in getoptions()
766 while ((p = strsep(&c, " \t"))) { in getoptions()
/security/apparmor/include/
A Dpolicy.h387 struct aa_profile *c; in aa_get_profile_rcu() local
391 c = rcu_dereference(*p); in aa_get_profile_rcu()
392 } while (c && !kref_get_unless_zero(&c->label.count)); in aa_get_profile_rcu()
395 return c; in aa_get_profile_rcu()
A Dlabel.h384 struct aa_label *c; in aa_get_label_rcu() local
388 c = rcu_dereference(*l); in aa_get_label_rcu()
389 } while (c && !kref_get_unless_zero(&c->count)); in aa_get_label_rcu()
392 return c; in aa_get_label_rcu()
/security/selinux/
A Davc.c794 struct avc_callback_node *c; in avc_add_callback() local
797 c = kmalloc(sizeof(*c), GFP_KERNEL); in avc_add_callback()
798 if (!c) { in avc_add_callback()
803 c->callback = callback; in avc_add_callback()
804 c->events = events; in avc_add_callback()
805 c->next = avc_callbacks; in avc_add_callback()
806 avc_callbacks = c; in avc_add_callback()
956 struct avc_callback_node *c; in avc_ss_reset() local
961 for (c = avc_callbacks; c; c = c->next) { in avc_ss_reset()
962 if (c->events & AVC_CALLBACK_RESET) { in avc_ss_reset()
[all …]
/security/keys/
A Dkeyctl_pkey.c42 char *c = params->info, *p, *q; in keyctl_pkey_params_parse() local
45 while ((p = strsep(&c, " \t"))) { in keyctl_pkey_params_parse()
/security/integrity/ima/
A Dima_template.c194 char c; in template_fmt_size() local
199 c = template_fmt[i]; in template_fmt_size()
200 if (c == '|') in template_fmt_size()
/security/apparmor/
A Dpolicy.c394 int c; in aa_compute_profile_mediates() local
405 for (c = 0; c <= AA_CLASS_LAST; c++) { in aa_compute_profile_mediates()
406 if (ANY_RULE_MEDIATES(profile, c)) in aa_compute_profile_mediates()
407 profile->label.mediates |= ((u64) 1) << c; in aa_compute_profile_mediates()
A Dmatch.c528 aa_state_t aa_dfa_next(struct aa_dfa *dfa, aa_state_t state, const char c) in aa_dfa_next() argument
539 match_char(state, def, base, next, check, equiv[(u8) c]); in aa_dfa_next()
541 match_char(state, def, base, next, check, (u8) c); in aa_dfa_next()
A Dpolicy_unpack.c486 int c, j, pos, size2 = aa_unpack_strdup(e, &str, NULL); in unpack_trans_table() local
498 for (c = j = 0; j < size2 - 1; j++) { in unpack_trans_table()
501 c++; in unpack_trans_table()
514 if (c == 1) in unpack_trans_table()
516 else if (c > 1) in unpack_trans_table()
518 } else if (c) in unpack_trans_table()

Completed in 52 milliseconds

12