Searched refs:index (Results 1 - 13 of 13) sorted by relevance

/security/apparmor/include/
H A Dfile.h52 * - index - an index into either the exec name table or the variable table
53 * - exec type - which determines how the executable name and index are used
83 * @xindex: exec transition index if @allow contains MAY_EXEC
105 u16 index = 0; local
108 index |= AA_X_UNSAFE;
110 index |= AA_X_INHERIT;
112 index |= AA_X_UNCONFINED;
115 index |= AA_X_UNCONFINED;
117 index |
[all...]
/security/selinux/ss/
H A Debitmap.h90 unsigned int index = EBITMAP_NODE_INDEX(n, bit); local
93 BUG_ON(index >= EBITMAP_UNIT_NUMS);
94 if ((n->maps[index] & (EBITMAP_BIT << ofs)))
102 unsigned int index = EBITMAP_NODE_INDEX(n, bit); local
105 BUG_ON(index >= EBITMAP_UNIT_NUMS);
106 n->maps[index] |= (EBITMAP_BIT << ofs);
112 unsigned int index = EBITMAP_NODE_INDEX(n, bit); local
115 BUG_ON(index >= EBITMAP_UNIT_NUMS);
116 n->maps[index] &= ~(EBITMAP_BIT << ofs);
H A Debitmap.c340 u32 mapunit, count, startbit, index; local
422 index = (startbit - n->startbit) / EBITMAP_UNIT_SIZE;
424 n->maps[index++] = map & (-1UL);
H A Dservices.c475 int index; local
515 for (index = 0; index < 32; index++) {
516 u32 mask = (1 << index);
523 permission_names[index]
524 ? permission_names[index] : "????");
858 int index; local
884 index = new_context->type;
887 index
[all...]
/security/tomoyo/
H A Dutil.c968 * @index: Index number of functionality.
973 const u8 index)
981 mode = p->config[index];
983 mode = p->config[tomoyo_index2category[index]
995 * @index: Index number of functionality.
1000 struct tomoyo_domain_info *domain, const u8 index)
1009 r->type = index;
1010 r->mode = tomoyo_get_mode(domain->ns, profile, index);
972 tomoyo_get_mode(const struct tomoyo_policy_namespace *ns, const u8 profile, const u8 index) argument
999 tomoyo_init_request_info(struct tomoyo_request_info *r, struct tomoyo_domain_info *domain, const u8 index) argument
H A Dcondition.c16 * @index: Index number of @arg_ptr.
17 * @arg_ptr: Contents of argv[@index].
20 * @checked: Set to true if @argv[@index] was found.
24 static bool tomoyo_argv(const unsigned int index, const char *arg_ptr, argument
33 if (index != argv->index)
290 if (tomoyo_parse_ulong(&argv->index, &left) !=
812 const u8 index = j ? right : left; local
814 switch (index) {
925 switch (index) {
[all...]
H A Dcommon.c730 u8 index; local
737 index = head->r.index;
738 profile = ns->profile_ptr[index];
747 for ( ; head->r.index < TOMOYO_MAX_PROFILES;
748 head->r.index++)
749 if (ns->profile_ptr[head->r.index])
751 if (head->r.index == TOMOYO_MAX_PROFILES) {
763 tomoyo_io_printf(head, "%u-COMMENT=", index);
767 tomoyo_io_printf(head, "%u-PREFERENCE={ ", index);
2268 tomoyo_update_stat(const u8 index) argument
[all...]
H A Daudit.c316 * @index: Index number of functionality.
322 const u8 profile, const u8 index,
327 const u8 category = tomoyo_index2category[index] +
338 mode = p->config[index];
321 tomoyo_get_audit(const struct tomoyo_policy_namespace *ns, const u8 profile, const u8 index, const struct tomoyo_acl_info *matched_acl, const bool is_granted) argument
H A Dcommon.h604 unsigned long index; member in struct:tomoyo_argv
804 u16 index; member in struct:tomoyo_io_buffer::__anon43
967 const u8 index);
970 const u8 index);
1030 const u8 index);
1054 void tomoyo_update_stat(const u8 index);
1093 * Returns index number for tomoyo_read_unlock().
/security/selinux/
H A Dselinuxfs.c1055 unsigned index = file_inode(filep)->i_ino & SEL_INO_MASK; local
1061 if (index >= bool_num || strcmp(name, bool_pending_names[index]))
1069 cur_enforcing = security_get_bool_value(index);
1075 bool_pending_values[index]);
1089 unsigned index = file_inode(filep)->i_ino & SEL_INO_MASK; local
1099 if (index >= bool_num || strcmp(name, bool_pending_names[index]))
1127 bool_pending_values[index] = new_value;
1643 static int sel_make_class_dir_entries(char *classname, int index, argument
[all...]
/security/apparmor/
H A Dpolicy_unpack.c590 /* setup class index */
676 int index, xtype; local
678 index = xindex & AA_X_INDEX_MASK;
679 if (xtype == AA_X_TABLE && index > table_size)
H A Ddomain.c235 * @xindex: index into x transition table
244 int index = xindex & AA_X_INDEX_MASK; local
247 /* index is guaranteed to be in range, validated at load time */
248 for (name = profile->file.trans.table[index]; !new_profile && name;
294 * @xindex: index into x transition table
296 * find profile for a transition index
/security/smack/
H A Dsmackfs.c562 if (s->index == 0)
572 if (s->index == 0)

Completed in 141 milliseconds