/security/apparmor/ |
D | resource.c | 156 int j; in __aa_transition_rlimits() local 158 for (j = 0, mask = 1; j < RLIM_NLIMITS; j++, in __aa_transition_rlimits() 161 rlim = current->signal->rlim + j; in __aa_transition_rlimits() 162 initrlim = init_task.signal->rlim + j; in __aa_transition_rlimits() 172 int j; in __aa_transition_rlimits() local 176 for (j = 0, mask = 1; j < RLIM_NLIMITS; j++, mask <<= 1) { in __aa_transition_rlimits() 180 rlim = current->signal->rlim + j; in __aa_transition_rlimits() 182 new->rlimits.limits[j].rlim_max); in __aa_transition_rlimits()
|
D | label.c | 282 int pos, j; in aa_vec_unique() local 298 for (j = i - dups; j > pos; j--) in aa_vec_unique() 299 vec[j] = vec[j - 1]; in aa_vec_unique() 508 AA_BUG(I->j < 0); in __aa_label_next_not_in_set() 509 AA_BUG(I->j > sub->size); in __aa_label_next_not_in_set() 511 while (I->j < sub->size && I->i < set->size) { in __aa_label_next_not_in_set() 512 int res = profile_cmp(sub->vec[I->j], set->vec[I->i]); in __aa_label_next_not_in_set() 515 (I->j)++; in __aa_label_next_not_in_set() 520 return sub->vec[(I->j)++]; in __aa_label_next_not_in_set() 523 if (I->j < sub->size) in __aa_label_next_not_in_set() [all …]
|
D | match.c | 245 size_t j, k; in verify_dfa() local 247 for (j = i; in verify_dfa() 248 (BASE_TABLE(dfa)[j] & MATCH_FLAG_DIFF_ENCODE) && in verify_dfa() 249 !(BASE_TABLE(dfa)[j] & MARK_DIFF_ENCODE); in verify_dfa() 250 j = k) { in verify_dfa() 251 k = DEFAULT_TABLE(dfa)[j]; in verify_dfa() 252 if (j == k) in verify_dfa() 254 if (k < j) in verify_dfa() 256 BASE_TABLE(dfa)[j] |= MARK_DIFF_ENCODE; in verify_dfa()
|
D | policy_unpack.c | 474 int c, j, pos, size2 = aa_unpack_strdup(e, &str, NULL); in unpack_trans_table() local 486 for (c = j = 0; j < size2 - 1; j++) { in unpack_trans_table() 487 if (!str[j]) { in unpack_trans_table() 488 pos = j; in unpack_trans_table()
|
/security/loadpin/ |
D | loadpin.c | 214 int i, j; in parse_exclude() local 234 for (j = 0; j < ARRAY_SIZE(ignore_read_file_id); j++) { in parse_exclude() 235 if (strcmp(cur, kernel_read_file_str[j]) == 0) { in parse_exclude() 237 kernel_read_file_str[j]); in parse_exclude() 238 ignore_read_file_id[j] = 1; in parse_exclude()
|
/security/apparmor/include/ |
D | label.h | 109 int i, j; member 165 (I).j++; \ 166 if ((I).j >= (L2)->size) { \ 168 (I).j = 0; \ 175 for ((I).i = (I).j = 0; \ 176 ((P1) = (L1)->vec[(I).i]) && ((P2) = (L2)->vec[(I).j]); \ 196 for ((I).i = (I).j = 0; \ 201 for ((I).i = (I).j = 0; \
|
/security/tomoyo/ |
D | util.c | 706 int j; in tomoyo_file_matches_pattern2() local 778 j = 0; in tomoyo_file_matches_pattern2() 781 while (isdigit(filename[j])) in tomoyo_file_matches_pattern2() 782 j++; in tomoyo_file_matches_pattern2() 784 while (isxdigit(filename[j])) in tomoyo_file_matches_pattern2() 785 j++; in tomoyo_file_matches_pattern2() 787 while (tomoyo_alphabet_char(filename[j])) in tomoyo_file_matches_pattern2() 788 j++; in tomoyo_file_matches_pattern2() 790 for (i = 1; i <= j; i++) { in tomoyo_file_matches_pattern2()
|
D | condition.c | 803 u8 j; in tomoyo_condition() local 835 for (j = 0; j < 2; j++) { in tomoyo_condition() 836 const u8 index = j ? right : left; in tomoyo_condition() 1043 max_v[j] = value; in tomoyo_condition() 1044 min_v[j] = value; in tomoyo_condition() 1058 is_bitop[j] = true; in tomoyo_condition()
|
/security/selinux/ss/ |
D | policydb.c | 1202 int rc, i, j, depth; in read_cons_helper() local 1222 for (j = 0; j < nexpr; j++) { in read_cons_helper() 2099 int i, j, rc; in genfs_read() local 2151 for (j = 0; j < nel2; j++) { in genfs_read() 2213 int i, j, rc; in ocontext_read() local 2227 for (j = 0; j < nel; j++) { in ocontext_read() 2401 int i, j, rc; in policydb_read() local 2543 for (j = 0; j < nel; j++) { in policydb_read() 3262 unsigned int i, j, rc; in ocontext_write() local 3340 for (j = 0; j < 4; j++) in ocontext_write() [all …]
|
D | services.c | 107 u16 i, j; in selinux_set_mapping() local 124 j = 0; in selinux_set_mapping() 125 while (map[j].name) { in selinux_set_mapping() 126 const struct security_class_mapping *p_in = map + (j++); in selinux_set_mapping() 127 struct selinux_mapping *p_out = out_map->mapping + j; in selinux_set_mapping() 633 unsigned int i, j; in context_struct_compute_av() local 660 ebitmap_for_each_positive_bit(tattr, tnode, j) { in context_struct_compute_av() 662 avkey.target_type = j + 1; in context_struct_compute_av() 1031 unsigned int i, j; in security_compute_xperms_decision() local 1079 ebitmap_for_each_positive_bit(tattr, tnode, j) { in security_compute_xperms_decision() [all …]
|
/security/integrity/ima/ |
D | ima_template.c | 196 int i = 0, j = 0; in template_fmt_size() local 201 j++; in template_fmt_size() 205 return j + 1; in template_fmt_size()
|