Home
last modified time | relevance | path

Searched refs:tclass (Results 1 – 25 of 69) sorted by relevance

123

/external/selinux/libselinux/src/
Dmapping.c100 unmap_class(security_class_t tclass) in unmap_class() argument
102 if (tclass < current_mapping_size) in unmap_class()
103 return current_mapping[tclass].value; in unmap_class()
111 return tclass; in unmap_class()
115 unmap_perm(security_class_t tclass, access_vector_t tperm) in unmap_perm() argument
117 if (tclass < current_mapping_size) { in unmap_perm()
121 for (i=0; i<current_mapping[tclass].num_perms; i++) in unmap_perm()
123 kperm |= current_mapping[tclass].perms[i]; in unmap_perm()
161 map_perm(security_class_t tclass, access_vector_t kperm) in map_perm() argument
163 if (tclass < current_mapping_size) { in map_perm()
[all …]
Davc.c22 security_class_t tclass; member
43 security_class_t tclass, access_vector_t perms,
48 security_class_t tclass; member
64 security_id_t tsid, security_class_t tclass) in avc_hash() argument
66 return ((uintptr_t) ssid ^ ((uintptr_t) tsid << 2) ^ tclass) in avc_hash()
344 security_class_t tclass) in avc_claim_node() argument
362 hvalue = avc_hash(ssid, tsid, tclass); in avc_claim_node()
367 new->ae.tclass = tclass; in avc_claim_node()
377 security_class_t tclass, in avc_search_node() argument
384 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node()
[all …]
Dcompute_av.c15 security_class_t tclass, in security_compute_av_flags_raw() argument
42 unmap_class(tclass), unmap_perm(tclass, requested)); in security_compute_av_flags_raw()
64 if (tclass != 0) in security_compute_av_flags_raw()
65 map_decision(tclass, avd); in security_compute_av_flags_raw()
79 security_class_t tclass, in hidden_def()
86 ret = security_compute_av_flags_raw(scon, tcon, tclass, in hidden_def()
106 security_class_t tclass, in hidden_def()
120 ret = security_compute_av_flags_raw(rscon, rtcon, tclass, in hidden_def()
133 security_class_t tclass, in hidden_def()
139 ret = security_compute_av_flags(scon, tcon, tclass, in hidden_def()
Dstringrep.c221 access_vector_t string_to_av_perm(security_class_t tclass, const char *s) in string_to_av_perm() argument
224 security_class_t kclass = unmap_class(tclass); in string_to_av_perm()
231 return map_perm(tclass, 1<<i); in string_to_av_perm()
238 const char *security_class_to_string(security_class_t tclass) in security_class_to_string() argument
242 tclass = unmap_class(tclass); in security_class_to_string()
244 node = get_class_cache_entry_value(tclass); in security_class_to_string()
251 const char *security_av_perm_to_string(security_class_t tclass, in security_av_perm_to_string() argument
257 av = unmap_perm(tclass, av); in security_av_perm_to_string()
258 tclass = unmap_class(tclass); in security_av_perm_to_string()
260 node = get_class_cache_entry_value(tclass); in security_av_perm_to_string()
[all …]
Dcompute_create.c53 security_class_t tclass, in security_compute_create_name_raw() argument
79 scon, tcon, unmap_class(tclass)); in security_compute_create_name_raw()
112 security_class_t tclass, in hidden_def()
115 return security_compute_create_name_raw(scon, tcon, tclass, in hidden_def()
122 security_class_t tclass, in hidden_def()
138 ret = security_compute_create_name_raw(rscon, rtcon, tclass, in hidden_def()
153 security_class_t tclass, in hidden_def()
156 return security_compute_create_name(scon, tcon, tclass, NULL, newcon); in hidden_def()
Dmapping.h16 unmap_class(security_class_t tclass);
19 unmap_perm(security_class_t tclass, access_vector_t tperm);
29 map_perm(security_class_t tclass, access_vector_t kperm);
32 map_decision(security_class_t tclass, struct av_decision *avd);
/external/libselinux/src/
Dmapping.c100 unmap_class(security_class_t tclass) in unmap_class() argument
102 if (tclass < current_mapping_size) in unmap_class()
103 return current_mapping[tclass].value; in unmap_class()
111 return tclass; in unmap_class()
115 unmap_perm(security_class_t tclass, access_vector_t tperm) in unmap_perm() argument
117 if (tclass < current_mapping_size) { in unmap_perm()
121 for (i=0; i<current_mapping[tclass].num_perms; i++) in unmap_perm()
123 kperm |= current_mapping[tclass].perms[i]; in unmap_perm()
161 map_perm(security_class_t tclass, access_vector_t kperm) in map_perm() argument
163 if (tclass < current_mapping_size) { in map_perm()
[all …]
Davc.c22 security_class_t tclass; member
43 security_class_t tclass, access_vector_t perms,
48 security_class_t tclass; member
64 security_id_t tsid, security_class_t tclass) in avc_hash() argument
66 return ((uintptr_t) ssid ^ ((uintptr_t) tsid << 2) ^ tclass) in avc_hash()
304 security_class_t tclass) in avc_claim_node() argument
322 hvalue = avc_hash(ssid, tsid, tclass); in avc_claim_node()
327 new->ae.tclass = tclass; in avc_claim_node()
337 security_class_t tclass, in avc_search_node() argument
344 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node()
[all …]
Dstringrep.c178 access_vector_t string_to_av_perm(security_class_t tclass, const char *s) in string_to_av_perm() argument
181 security_class_t kclass = unmap_class(tclass); in string_to_av_perm()
188 return map_perm(tclass, 1<<i); in string_to_av_perm()
195 const char *security_class_to_string(security_class_t tclass) in security_class_to_string() argument
199 tclass = unmap_class(tclass); in security_class_to_string()
201 node = get_class_cache_entry_value(tclass); in security_class_to_string()
207 const char *security_av_perm_to_string(security_class_t tclass, in security_av_perm_to_string() argument
213 av = unmap_perm(tclass, av); in security_av_perm_to_string()
214 tclass = unmap_class(tclass); in security_av_perm_to_string()
216 node = get_class_cache_entry_value(tclass); in security_av_perm_to_string()
[all …]
Dmapping.h16 unmap_class(security_class_t tclass);
19 unmap_perm(security_class_t tclass, access_vector_t tperm);
29 map_perm(security_class_t tclass, access_vector_t kperm);
32 map_decision(security_class_t tclass, struct av_decision *avd);
/external/selinux/libselinux/utils/
Dcompute_av.c11 security_class_t tclass; in main() local
20 tclass = string_to_security_class(argv[3]); in main()
21 if (!tclass) { in main()
26 ret = security_compute_av(argv[1], argv[2], tclass, 1, &avd); in main()
33 print_access_vector(tclass, avd.allowed); in main()
38 print_access_vector(tclass, avd.decided); in main()
44 print_access_vector(tclass, avd.auditallow); in main()
50 print_access_vector(tclass, avd.auditdeny); in main()
Dcompute_member.c11 security_class_t tclass; in main() local
20 tclass = string_to_security_class(argv[3]); in main()
21 if (!tclass) { in main()
26 ret = security_compute_member(argv[1], argv[2], tclass, &buf); in main()
Dcompute_create.c11 security_class_t tclass; in main() local
20 tclass = string_to_security_class(argv[3]); in main()
21 if (!tclass) { in main()
26 ret = security_compute_create(argv[1], argv[2], tclass, &buf); in main()
Dcompute_relabel.c11 security_class_t tclass; in main() local
20 tclass = string_to_security_class(argv[3]); in main()
21 if (!tclass) { in main()
26 ret = security_compute_relabel(argv[1], argv[2], tclass, &buf); in main()
/external/selinux/prebuilts/bin/
Dsesearch.py136 if args.tclass:
138 q.tclass = args.tclass
140 q.tclass = args.tclass.split(",")
169 if args.tclass:
171 q.tclass = args.tclass
173 q.tclass = args.tclass.split(",")
190 if args.tclass:
192 q.tclass = args.tclass
194 q.tclass = args.tclass.split(",")
/external/selinux/libselinux/include/selinux/
Dselinux.h186 security_class_t tclass,
191 security_class_t tclass,
197 security_class_t tclass,
202 security_class_t tclass,
210 security_class_t tclass,
214 security_class_t tclass,
218 security_class_t tclass,
223 security_class_t tclass,
231 security_class_t tclass,
235 security_class_t tclass,
[all …]
Davc.h262 security_class_t tclass,
285 security_class_t tclass, access_vector_t requested,
308 security_class_t tclass, access_vector_t requested,
327 security_class_t tclass, security_id_t * newsid);
345 security_class_t tclass, security_id_t * newsid);
378 security_id_t tsid, security_class_t tclass,
382 security_id_t tsid, security_class_t tclass,
/external/selinux/libsepol/include/sepol/policydb/
Dservices.h48 sepol_security_class_t tclass, /* IN */
59 sepol_security_class_t tclass,
75 sepol_security_class_t tclass,
91 sepol_security_class_t tclass,
100 sepol_security_class_t *tclass);
106 extern int sepol_string_to_av_perm(sepol_security_class_t tclass,
116 sepol_security_class_t tclass, /* IN */
126 sepol_security_class_t tclass, /* IN */
135 sepol_security_class_t tclass, /* IN */
/external/selinux/checkpolicy/
Dcheckpolicy.c291 extern char *av_to_string(uint32_t tclass, sepol_access_vector_t av);
381 sepol_security_class_t tclass; in main() local
703 tclass = atoi(ans); in main()
704 if (!tclass in main()
705 || tclass > policydb.p_classes.nprim) { in main()
710 policydb.class_val_to_struct[tclass - 1]; in main()
722 tclass = cladatum->s.value; in main()
730 ret = sepol_compute_av(ssid, tsid, tclass, 0, &avd); in main()
819 tclass = atoi(ans); in main()
820 if (!tclass in main()
[all …]
/external/selinux/sepolgen/tests/test_data/
Dhttpd.log1 … scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/d…
2 … scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/d…
3 … scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/d…
4 … scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/d…
5 … scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/d…
6 … scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/d…
7 … scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/d…
8 … scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/d…
9 … scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/d…
10 … scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:staff_t:s0 tclass=dbus : exe="/bin/d…
[all …]
Daudit.log1 … scontext=staff_u:staff_r:pam_t:s0 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=fifo_file
4 …no=14469552 scontext=staff_u:staff_r:staff_t:s0 tcontext=system_u:object_r:xdm_tmp_t:s0 tclass=file
6 …268435218 scontext=staff_u:staff_r:staff_t:s0 tcontext=system_u:object_r:sysctl_fs_t:s0 tclass=file
8 … ino=5434689 scontext=staff_u:staff_r:staff_t:s0 tcontext=user_u:object_r:user_tmp_t:s0 tclass=file
10 … ino=5434689 scontext=staff_u:staff_r:staff_t:s0 tcontext=user_u:object_r:user_tmp_t:s0 tclass=file
15 …3127137 scontext=staff_u:staff_r:staff_su_t:s0 tcontext=root:object_r:user_home_dir_t:s0 tclass=dir
17 …69552 scontext=staff_u:staff_r:staff_xauth_t:s0 tcontext=system_u:object_r:xdm_tmp_t:s0 tclass=file
19 …69552 scontext=staff_u:staff_r:staff_xauth_t:s0 tcontext=system_u:object_r:xdm_tmp_t:s0 tclass=file
21 …69552 scontext=staff_u:staff_r:staff_xauth_t:s0 tcontext=system_u:object_r:xdm_tmp_t:s0 tclass=file
24 …3127137 scontext=staff_u:staff_r:staff_su_t:s0 tcontext=root:object_r:user_home_dir_t:s0 tclass=dir
[all …]
/external/libselinux/include/selinux/
Dselinux.h166 security_class_t tclass,
174 security_class_t tclass,
181 security_class_t tclass,
188 security_class_t tclass,
266 extern const char *security_av_perm_to_string(security_class_t tclass,
268 extern access_vector_t string_to_av_perm(security_class_t tclass,
273 extern int security_av_string(security_class_t tclass,
279 const char *tclass,
Davc.h258 security_class_t tclass,
281 security_class_t tclass, access_vector_t requested,
304 security_class_t tclass, access_vector_t requested,
323 security_class_t tclass, security_id_t * newsid);
341 security_class_t tclass, security_id_t * newsid);
374 security_id_t tsid, security_class_t tclass,
378 security_id_t tsid, security_class_t tclass,
/external/selinux/libsepol/src/
Dservices.c289 static char *get_class_info(sepol_security_class_t tclass, in get_class_info() argument
343 policydb->p_class_val_to_name[tclass - 1]); in get_class_info()
352 sepol_av_to_string(policydb, tclass, in get_class_info()
388 sepol_security_class_t tclass, in constraint_expr_eval_reason() argument
426 class_buf = get_class_info(tclass, constraint, xcontext); in constraint_expr_eval_reason()
833 sepol_security_class_t tclass, in context_struct_compute_av() argument
849 if (!tclass || tclass > policydb->p_classes.nprim) { in context_struct_compute_av()
850 ERR(NULL, "unrecognized class %d", tclass); in context_struct_compute_av()
853 tclass_datum = policydb->class_val_to_struct[tclass - 1]; in context_struct_compute_av()
869 avkey.target_class = tclass; in context_struct_compute_av()
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/
Dtemplate.rb145 Context.define( self, name, parameters ) do | tclass |
146 self::TEMPLATES[ name ] = tclass
147 ERB.new( source, nil, '%' ).def_method( tclass, 'to_s' )
149 define_template_methods( tclass )
161 context.define_alias( new_name ) do | tclass |
162 self::TEMPLATES[ new_name ] = tclass
163 define_template_methods( tclass )

123