Home
last modified time | relevance | path

Searched refs:j (Results 1 – 12 of 12) sorted by relevance

/security/apparmor/
Dresource.c156 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()
Dmatch.c220 size_t j, k; in verify_dfa() local
222 for (j = i; in verify_dfa()
223 (BASE_TABLE(dfa)[j] & MATCH_FLAG_DIFF_ENCODE) && in verify_dfa()
224 !(BASE_TABLE(dfa)[j] & MARK_DIFF_ENCODE); in verify_dfa()
225 j = k) { in verify_dfa()
226 k = DEFAULT_TABLE(dfa)[j]; in verify_dfa()
227 if (j == k) in verify_dfa()
229 if (k < j) in verify_dfa()
231 BASE_TABLE(dfa)[j] |= MARK_DIFF_ENCODE; in verify_dfa()
Dlabel.c279 int pos, j; in aa_vec_unique() local
295 for (j = i - dups; j > pos; j--) in aa_vec_unique()
296 vec[j] = vec[j - 1]; in aa_vec_unique()
511 AA_BUG(I->j < 0); in __aa_label_next_not_in_set()
512 AA_BUG(I->j > sub->size); in __aa_label_next_not_in_set()
514 while (I->j < sub->size && I->i < set->size) { in __aa_label_next_not_in_set()
515 int res = profile_cmp(sub->vec[I->j], set->vec[I->i]); in __aa_label_next_not_in_set()
518 (I->j)++; in __aa_label_next_not_in_set()
523 return sub->vec[(I->j)++]; in __aa_label_next_not_in_set()
526 if (I->j < sub->size) in __aa_label_next_not_in_set()
[all …]
Dpolicy_unpack.c494 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()
507 if (!str[j]) { in unpack_trans_table()
508 pos = j; in unpack_trans_table()
Dlsm.c1537 u32 i, j; in destroy_buffers() local
1540 for_each_cpu_buffer(j) { in destroy_buffers()
1541 kfree(per_cpu(aa_buffers, i).buf[j]); in destroy_buffers()
1542 per_cpu(aa_buffers, i).buf[j] = NULL; in destroy_buffers()
1549 u32 i, j; in alloc_buffers() local
1552 for_each_cpu_buffer(j) { in alloc_buffers()
1565 per_cpu(aa_buffers, i).buf[j] = buffer; in alloc_buffers()
/security/loadpin/
Dloadpin.c191 int i, j; in parse_exclude() local
211 for (j = 0; j < ARRAY_SIZE(ignore_read_file_id); j++) { in parse_exclude()
212 if (strcmp(cur, kernel_read_file_str[j]) == 0) { in parse_exclude()
214 kernel_read_file_str[j]); in parse_exclude()
215 ignore_read_file_id[j] = 1; in parse_exclude()
/security/apparmor/include/
Dlabel.h111 int i, j; member
166 (I).j++; \
167 if ((I).j >= (L2)->size) { \
169 (I).j = 0; \
176 for ((I).i = (I).j = 0; \
177 ((P1) = (L1)->vec[(I).i]) && ((P2) = (L2)->vec[(I).j]); \
197 for ((I).i = (I).j = 0; \
202 for ((I).i = (I).j = 0; \
/security/tomoyo/
Dutil.c684 int j; in tomoyo_file_matches_pattern2() local
756 j = 0; in tomoyo_file_matches_pattern2()
759 while (isdigit(filename[j])) in tomoyo_file_matches_pattern2()
760 j++; in tomoyo_file_matches_pattern2()
762 while (isxdigit(filename[j])) in tomoyo_file_matches_pattern2()
763 j++; in tomoyo_file_matches_pattern2()
765 while (tomoyo_alphabet_char(filename[j])) in tomoyo_file_matches_pattern2()
766 j++; in tomoyo_file_matches_pattern2()
768 for (i = 1; i <= j; i++) { in tomoyo_file_matches_pattern2()
Dcondition.c803 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/
Dpolicydb.c1197 int rc, i, j, depth; in read_cons_helper() local
1217 for (j = 0; j < nexpr; j++) { in read_cons_helper()
1962 int i, j, rc; in genfs_read() local
2014 for (j = 0; j < nel2; j++) { in genfs_read()
2076 int i, j, rc; in ocontext_read() local
2090 for (j = 0; j < nel; j++) { in ocontext_read()
2263 int i, j, rc; in policydb_read() local
2392 for (j = 0; j < nel; j++) { in policydb_read()
3087 unsigned int i, j, rc; in ocontext_write() local
3165 for (j = 0; j < 4; j++) in ocontext_write()
[all …]
Dservices.c105 u16 i, j; in selinux_set_mapping() local
122 j = 0; in selinux_set_mapping()
123 while (map[j].name) { in selinux_set_mapping()
124 struct security_class_mapping *p_in = map + (j++); in selinux_set_mapping()
125 struct selinux_mapping *p_out = out_map->mapping + j; in selinux_set_mapping()
627 unsigned int i, j; in context_struct_compute_av() local
654 ebitmap_for_each_positive_bit(tattr, tnode, j) { in context_struct_compute_av()
656 avkey.target_type = j + 1; in context_struct_compute_av()
1013 unsigned int i, j; in security_compute_xperms_decision() local
1060 ebitmap_for_each_positive_bit(tattr, tnode, j) { in security_compute_xperms_decision()
[all …]
/security/integrity/ima/
Dima_template.c169 int i = 0, j = 0; in template_fmt_size() local
174 j++; in template_fmt_size()
178 return j + 1; in template_fmt_size()