/security/tomoyo/ |
D | util.c | 190 char c = *(cp + 1); in tomoyo_parse_ulong() local 192 if (c == 'x' || c == 'X') { in tomoyo_parse_ulong() 195 } else if (c >= '0' && c <= '7') { in tomoyo_parse_ulong() 328 static inline bool tomoyo_alphabet_char(const char c) in tomoyo_alphabet_char() argument 330 return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'); in tomoyo_alphabet_char() 354 static inline bool tomoyo_valid(const unsigned char c) in tomoyo_valid() argument 356 return c > ' ' && c < 127; in tomoyo_valid() 366 static inline bool tomoyo_invalid(const unsigned char c) in tomoyo_invalid() argument 368 return c && (c <= ' ' || c >= 127); in tomoyo_invalid() 437 unsigned char c; in tomoyo_correct_word2() local [all …]
|
D | realpath.c | 33 const unsigned char c = p[i]; in tomoyo_encode2() local 35 if (c == '\\') in tomoyo_encode2() 37 else if (c > ' ' && c < 127) in tomoyo_encode2() 50 const unsigned char c = p[i]; in tomoyo_encode2() local 52 if (c == '\\') { in tomoyo_encode2() 55 } else if (c > ' ' && c < 127) { in tomoyo_encode2() 56 *cp++ = c; in tomoyo_encode2() 59 *cp++ = (c >> 6) + '0'; in tomoyo_encode2() 60 *cp++ = ((c >> 3) & 7) + '0'; in tomoyo_encode2() 61 *cp++ = (c & 7) + '0'; in tomoyo_encode2()
|
D | audit.c | 52 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()
|
D | domain.c | 652 const unsigned char c = env_page.data[offset++]; in tomoyo_environ() local 654 if (c && arg_len < TOMOYO_EXEC_TMPSIZE - 10) { in tomoyo_environ() 655 if (c == '=') { in tomoyo_environ() 657 } else if (c == '\\') { in tomoyo_environ() 660 } else if (c > ' ' && c < 127) { in tomoyo_environ() 661 arg_ptr[arg_len++] = c; in tomoyo_environ() 664 arg_ptr[arg_len++] = (c >> 6) + '0'; in tomoyo_environ() 666 = ((c >> 3) & 7) + '0'; in tomoyo_environ() 667 arg_ptr[arg_len++] = (c & 7) + '0'; in tomoyo_environ() 672 if (c) in tomoyo_environ()
|
D | condition.c | 138 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()
|
D | common.c | 610 const u8 c = tomoyo_index2category[i]; in tomoyo_set_mode() local 612 tomoyo_category_keywords[c]; in tomoyo_set_mode() 2676 char c; in tomoyo_write_control() local 2692 if (get_user(c, buffer)) { in tomoyo_write_control() 2698 cp0[head->w.avail++] = c; in tomoyo_write_control() 2699 if (c != '\n') in tomoyo_write_control()
|
/security/selinux/ss/ |
D | context.h | 37 static inline void mls_context_init(struct context *c) in mls_context_init() argument 39 memset(&c->range, 0, sizeof(c->range)); in mls_context_init() 107 static inline void mls_context_destroy(struct context *c) in mls_context_destroy() argument 109 ebitmap_destroy(&c->range.level[0].cat); in mls_context_destroy() 110 ebitmap_destroy(&c->range.level[1].cat); in mls_context_destroy() 111 mls_context_init(c); in mls_context_destroy() 114 static inline void context_init(struct context *c) in context_init() argument 116 memset(c, 0, sizeof(*c)); in context_init() 144 static inline void context_destroy(struct context *c) in context_destroy() argument 146 c->user = c->role = c->type = c->hash = 0; in context_destroy() [all …]
|
D | policydb.c | 355 static void ocontext_destroy(struct ocontext *c, int i) in ocontext_destroy() argument 357 if (!c) in ocontext_destroy() 360 context_destroy(&c->context[0]); in ocontext_destroy() 361 context_destroy(&c->context[1]); in ocontext_destroy() 364 kfree(c->u.name); in ocontext_destroy() 365 kfree(c); in ocontext_destroy() 764 struct ocontext *c, *ctmp; in policydb_destroy() local 788 c = p->ocontexts[i]; in policydb_destroy() 789 while (c) { in policydb_destroy() 790 ctmp = c; in policydb_destroy() [all …]
|
D | services.c | 269 struct context *c; in constraint_expr_eval() local 394 c = scontext; in constraint_expr_eval() 396 c = tcontext; in constraint_expr_eval() 398 c = xcontext; in constraint_expr_eval() 399 if (!c) { in constraint_expr_eval() 405 val1 = c->user; in constraint_expr_eval() 407 val1 = c->role; in constraint_expr_eval() 409 val1 = c->type; in constraint_expr_eval() 2320 struct ocontext *c; in security_port_sid() local 2328 c = policydb->ocontexts[OCON_PORT]; in security_port_sid() [all …]
|
D | mls.c | 193 int mls_context_isvalid(struct policydb *p, struct context *c) in mls_context_isvalid() argument 200 if (!mls_range_isvalid(p, &c->range)) in mls_context_isvalid() 203 if (c->role == OBJECT_R_VAL) in mls_context_isvalid() 209 if (!c->user || c->user > p->p_users.nprim) in mls_context_isvalid() 211 usrdatum = p->user_val_to_struct[c->user - 1]; in mls_context_isvalid() 212 if (!mls_range_contains(usrdatum->range, c->range)) in mls_context_isvalid()
|
D | mls.h | 31 int mls_context_isvalid(struct policydb *p, struct context *c);
|
D | policydb.h | 314 extern int policydb_context_isvalid(struct policydb *p, struct context *c);
|
/security/apparmor/include/ |
D | policy.h | 275 struct aa_profile *c; in aa_get_profile_rcu() local 279 c = rcu_dereference(*p); in aa_get_profile_rcu() 280 } while (c && !kref_get_unless_zero(&c->label.count)); in aa_get_profile_rcu() 283 return c; in aa_get_profile_rcu()
|
D | label.h | 398 struct aa_label *c; in aa_get_label_rcu() local 402 c = rcu_dereference(*l); in aa_get_label_rcu() 403 } while (c && !kref_get_unless_zero(&c->count)); in aa_get_label_rcu() 406 return c; in aa_get_label_rcu()
|
D | match.h | 129 const char c);
|
/security/keys/ |
D | trusted.c | 130 unsigned char c; in TSS_authhmac() local 143 c = !!h3; in TSS_authhmac() 167 TPM_NONCE_SIZE, h2, 1, &c, 0, 0); in TSS_authhmac() 745 static int getoptions(char *c, struct trusted_key_payload *pay, in getoptions() argument 749 char *p = c; in getoptions() 765 while ((p = strsep(&c, " \t"))) { in getoptions() 871 char *c; in datablob_parse() local 874 c = strsep(&datablob, " \t"); in datablob_parse() 875 if (!c) in datablob_parse() 877 key_cmd = match_token(c, key_tokens, args); in datablob_parse() [all …]
|
D | keyctl_pkey.c | 42 char *c = params->info, *p, *q; in keyctl_pkey_params_parse() local 45 while ((p = strsep(&c, " \t"))) { in keyctl_pkey_params_parse()
|
/security/selinux/ |
D | avc.c | 812 struct avc_callback_node *c; in avc_add_callback() local 815 c = kmalloc(sizeof(*c), GFP_KERNEL); in avc_add_callback() 816 if (!c) { in avc_add_callback() 821 c->callback = callback; in avc_add_callback() 822 c->events = events; in avc_add_callback() 823 c->next = avc_callbacks; in avc_add_callback() 824 avc_callbacks = c; in avc_add_callback() 982 struct avc_callback_node *c; in avc_ss_reset() local 987 for (c = avc_callbacks; c; c = c->next) { in avc_ss_reset() 988 if (c->events & AVC_CALLBACK_RESET) { in avc_ss_reset() [all …]
|
D | hooks.c | 2615 char c; in opt_len() local 2617 for (len = 0; (c = s[len]) != '\0'; len++) { in opt_len() 2618 if (c == '"') in opt_len() 2620 if (c == ',' && !open_quote) in opt_len() 2646 char c = *p; in selinux_sb_eat_lsm_opts() local 2647 if (c != '"') in selinux_sb_eat_lsm_opts() 2648 *q++ = c; in selinux_sb_eat_lsm_opts() 3908 static void selinux_cred_getsecid(const struct cred *c, u32 *secid) in selinux_cred_getsecid() argument 3910 *secid = cred_sid(c); in selinux_cred_getsecid()
|
/security/integrity/ima/ |
D | ima_template.c | 167 char c; in template_fmt_size() local 172 c = template_fmt[i]; in template_fmt_size() 173 if (c == '|') in template_fmt_size()
|
/security/apparmor/ |
D | policy_unpack.c | 494 int c, j, pos, size2 = unpack_strdup(e, &str, NULL); in unpack_trans_table() local 506 for (c = j = 0; j < size2 - 1; j++) { in unpack_trans_table() 509 c++; in unpack_trans_table() 522 if (c == 1) in unpack_trans_table() 524 else if (c > 1) in unpack_trans_table() 526 } else if (c) in unpack_trans_table()
|
D | match.c | 480 const char c) in aa_dfa_next() argument 491 match_char(state, def, base, next, check, equiv[(u8) c]); in aa_dfa_next() 493 match_char(state, def, base, next, check, (u8) c); in aa_dfa_next()
|
/security/ |
D | security.c | 1571 void security_cred_getsecid(const struct cred *c, u32 *secid) in security_cred_getsecid() argument 1574 call_void_hook(cred_getsecid, c, secid); in security_cred_getsecid()
|