Home
last modified time | relevance | path

Searched refs:index (Results 1 – 16 of 16) sorted by relevance

/security/selinux/ss/
Debitmap.h91 unsigned int index = EBITMAP_NODE_INDEX(n, bit); in ebitmap_node_get_bit() local
94 BUG_ON(index >= EBITMAP_UNIT_NUMS); in ebitmap_node_get_bit()
95 if ((n->maps[index] & (EBITMAP_BIT << ofs))) in ebitmap_node_get_bit()
103 unsigned int index = EBITMAP_NODE_INDEX(n, bit); in ebitmap_node_set_bit() local
106 BUG_ON(index >= EBITMAP_UNIT_NUMS); in ebitmap_node_set_bit()
107 n->maps[index] |= (EBITMAP_BIT << ofs); in ebitmap_node_set_bit()
113 unsigned int index = EBITMAP_NODE_INDEX(n, bit); in ebitmap_node_clr_bit() local
116 BUG_ON(index >= EBITMAP_UNIT_NUMS); in ebitmap_node_clr_bit()
117 n->maps[index] &= ~(EBITMAP_BIT << ofs); in ebitmap_node_clr_bit()
Dsidtab.c20 #define index_to_sid(index) (index + SECINITSID_NUM + 1) argument
154 static struct sidtab_entry_leaf *sidtab_do_lookup(struct sidtab *s, u32 index, in sidtab_do_lookup() argument
158 u32 level, capacity_shift, leaf_index = index / SIDTAB_LEAF_ENTRIES; in sidtab_do_lookup()
161 level = sidtab_level_from_count(index + 1); in sidtab_do_lookup()
192 return &entry->ptr_leaf->entries[index % SIDTAB_LEAF_ENTRIES]; in sidtab_do_lookup()
195 static struct context *sidtab_lookup(struct sidtab *s, u32 index) in sidtab_lookup() argument
200 if (index >= count) in sidtab_lookup()
203 return &sidtab_do_lookup(s, index, 0)->context; in sidtab_lookup()
Debitmap.c349 u32 mapunit, count, startbit, index; in ebitmap_read() local
435 index = (startbit - n->startbit) / EBITMAP_UNIT_SIZE; in ebitmap_read()
437 n->maps[index++] = map & (-1UL); in ebitmap_read()
Dservices.c467 int index; in security_dump_masked_av() local
507 for (index = 0; index < 32; index++) { in security_dump_masked_av()
508 u32 mask = (1 << index); in security_dump_masked_av()
515 permission_names[index] in security_dump_masked_av()
516 ? permission_names[index] : "????"); in security_dump_masked_av()
860 int index; in security_bounded_transition() local
892 index = new_context->type; in security_bounded_transition()
894 type = policydb->type_val_to_struct[index - 1]; in security_bounded_transition()
907 index = type->bounds; in security_bounded_transition()
2331 size_t index, u32 *out_sid) in ocontext_to_sid() argument
[all …]
/security/apparmor/include/
Dfile.h117 u16 index = 0; in dfa_map_xindex() local
120 index |= AA_X_UNSAFE; in dfa_map_xindex()
122 index |= AA_X_INHERIT; in dfa_map_xindex()
124 index |= AA_X_UNCONFINED; in dfa_map_xindex()
127 index |= AA_X_UNCONFINED; in dfa_map_xindex()
129 index |= AA_X_NAME; in dfa_map_xindex()
131 index |= AA_X_NAME | AA_X_CHILD; in dfa_map_xindex()
133 index |= AA_X_TABLE; in dfa_map_xindex()
134 index |= old_index - 4; in dfa_map_xindex()
137 return index; in dfa_map_xindex()
/security/tomoyo/
Dcommon.c746 u8 index; in tomoyo_read_profile() local
754 index = head->r.index; in tomoyo_read_profile()
755 profile = ns->profile_ptr[index]; in tomoyo_read_profile()
764 for ( ; head->r.index < TOMOYO_MAX_PROFILES; in tomoyo_read_profile()
765 head->r.index++) in tomoyo_read_profile()
766 if (ns->profile_ptr[head->r.index]) in tomoyo_read_profile()
768 if (head->r.index == TOMOYO_MAX_PROFILES) { in tomoyo_read_profile()
781 tomoyo_io_printf(head, "%u-COMMENT=", index); in tomoyo_read_profile()
785 tomoyo_io_printf(head, "%u-PREFERENCE={ ", index); in tomoyo_read_profile()
797 tomoyo_io_printf(head, "%u-%s", index, "CONFIG"); in tomoyo_read_profile()
[all …]
Dcondition.c25 static bool tomoyo_argv(const unsigned int index, const char *arg_ptr, in tomoyo_argv() argument
36 if (index != argv->index) in tomoyo_argv()
302 if (tomoyo_parse_ulong(&argv->index, &left) != in tomoyo_parse_argv()
836 const u8 index = j ? right : left; in tomoyo_condition() local
839 switch (index) { in tomoyo_condition()
951 switch (index) { in tomoyo_condition()
994 switch (index) { in tomoyo_condition()
1045 switch (index) { in tomoyo_condition()
Dutil.c971 const u8 index) in tomoyo_get_mode() argument
979 mode = p->config[index]; in tomoyo_get_mode()
981 mode = p->config[tomoyo_index2category[index] in tomoyo_get_mode()
998 struct tomoyo_domain_info *domain, const u8 index) in tomoyo_init_request_info() argument
1008 r->type = index; in tomoyo_init_request_info()
1009 r->mode = tomoyo_get_mode(domain->ns, profile, index); in tomoyo_init_request_info()
Dcommon.h608 unsigned long index; member
809 u16 index; member
978 const u8 index);
981 const u8 index);
1042 const u8 index);
1066 void tomoyo_update_stat(const u8 index);
Daudit.c328 const u8 profile, const u8 index, in tomoyo_get_audit() argument
333 const u8 category = tomoyo_index2category[index] + in tomoyo_get_audit()
345 mode = p->config[index]; in tomoyo_get_audit()
/security/selinux/include/
Dconditional.h23 int index);
/security/selinux/
Dselinuxfs.c1176 unsigned index = file_inode(filep)->i_ino & SEL_INO_MASK; in sel_read_bool() local
1182 if (index >= fsi->bool_num || strcmp(name, in sel_read_bool()
1183 fsi->bool_pending_names[index])) in sel_read_bool()
1191 cur_enforcing = security_get_bool_value(fsi->state, index); in sel_read_bool()
1197 fsi->bool_pending_values[index]); in sel_read_bool()
1216 unsigned index = file_inode(filep)->i_ino & SEL_INO_MASK; in sel_write_bool() local
1240 if (index >= fsi->bool_num || strcmp(name, in sel_write_bool()
1241 fsi->bool_pending_names[index])) in sel_write_bool()
1251 fsi->bool_pending_values[index] = new_value; in sel_write_bool()
1820 static int sel_make_class_dir_entries(char *classname, int index, in sel_make_class_dir_entries() argument
[all …]
/security/apparmor/
Dpolicy_unpack.c987 int index, xtype; in verify_xindex() local
989 index = xindex & AA_X_INDEX_MASK; in verify_xindex()
990 if (xtype == AA_X_TABLE && index >= table_size) in verify_xindex()
Ddomain.c509 int index = xindex & AA_X_INDEX_MASK; in x_table_lookup() local
517 for (*name = profile->file.trans.table[index]; !label && *name; in x_table_lookup()
/security/
DKconfig.hardening139 (index 0), and sizes (0 length), so it is therefore more
/security/integrity/ima/
DKconfig51 IMA_MEASURE_PCR_IDX determines the TPM PCR register index