Home
last modified time | relevance | path

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

/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/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.c30 #define index_to_sid(index) (index + SECINITSID_NUM + 1) argument
180 static struct sidtab_entry *sidtab_do_lookup(struct sidtab *s, u32 index, in sidtab_do_lookup() argument
184 u32 level, capacity_shift, leaf_index = index / SIDTAB_LEAF_ENTRIES; in sidtab_do_lookup()
187 level = sidtab_level_from_count(index + 1); in sidtab_do_lookup()
218 return &entry->ptr_leaf->entries[index % SIDTAB_LEAF_ENTRIES]; in sidtab_do_lookup()
221 static struct sidtab_entry *sidtab_lookup(struct sidtab *s, u32 index) in sidtab_lookup() argument
226 if (index >= count) in sidtab_lookup()
229 return sidtab_do_lookup(s, index, 0); in sidtab_lookup()
Dservices.c475 int index; in security_dump_masked_av() local
515 for (index = 0; index < 32; index++) { in security_dump_masked_av()
516 u32 mask = (1 << index); in security_dump_masked_av()
523 permission_names[index] in security_dump_masked_av()
524 ? permission_names[index] : "????"); in security_dump_masked_av()
875 int index; in security_bounded_transition() local
907 index = new_entry->context.type; in security_bounded_transition()
909 type = policydb->type_val_to_struct[index - 1]; in security_bounded_transition()
922 index = type->bounds; in security_bounded_transition()
2394 size_t index, u32 *out_sid) in ocontext_to_sid() argument
[all …]
Debitmap.c368 u32 mapunit, count, startbit, index; in ebitmap_read() local
454 index = (startbit - n->startbit) / EBITMAP_UNIT_SIZE; in ebitmap_read()
456 n->maps[index++] = map & (-1UL); in ebitmap_read()
/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.c988 const u8 index) in tomoyo_get_mode() argument
996 mode = p->config[index]; in tomoyo_get_mode()
998 mode = p->config[tomoyo_index2category[index] in tomoyo_get_mode()
1015 struct tomoyo_domain_info *domain, const u8 index) in tomoyo_init_request_info() argument
1025 r->type = index; in tomoyo_init_request_info()
1026 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.h21 int security_get_bool_value(struct selinux_state *state, u32 index);
/security/selinux/
Dselinuxfs.c1269 unsigned index = file_inode(filep)->i_ino & SEL_INO_MASK; in sel_read_bool() local
1275 if (index >= fsi->bool_num || strcmp(name, in sel_read_bool()
1276 fsi->bool_pending_names[index])) in sel_read_bool()
1284 cur_enforcing = security_get_bool_value(fsi->state, index); in sel_read_bool()
1290 fsi->bool_pending_values[index]); in sel_read_bool()
1309 unsigned index = file_inode(filep)->i_ino & SEL_INO_MASK; in sel_write_bool() local
1333 if (index >= fsi->bool_num || strcmp(name, in sel_write_bool()
1334 fsi->bool_pending_names[index])) in sel_write_bool()
1344 fsi->bool_pending_values[index] = new_value; in sel_write_bool()
1906 char *classname, int index, in sel_make_class_dir_entries() argument
[all …]
/security/apparmor/
Dpolicy_unpack.c1004 int index, xtype; in verify_xindex() local
1006 index = xindex & AA_X_INDEX_MASK; in verify_xindex()
1007 if (xtype == AA_X_TABLE && index >= table_size) in verify_xindex()
Ddomain.c514 int index = xindex & AA_X_INDEX_MASK; in x_table_lookup() local
522 for (*name = profile->file.trans.table[index]; !label && *name; in x_table_lookup()
/security/integrity/ima/
DKconfig51 IMA_MEASURE_PCR_IDX determines the TPM PCR register index
/security/
DKconfig.hardening139 (index 0), and sizes (0 length), so it is therefore more