Home
last modified time | relevance | path

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

123

/external/selinux/libselinux/src/
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 …]
Dmapping.c125 unmap_class(security_class_t tclass) in unmap_class() argument
127 if (tclass < current_mapping_size) in unmap_class()
128 return current_mapping[tclass].value; in unmap_class()
136 return tclass; in unmap_class()
140 unmap_perm(security_class_t tclass, access_vector_t tperm) in unmap_perm() argument
142 if (tclass < current_mapping_size) { in unmap_perm()
146 for (i=0; i<current_mapping[tclass].num_perms; i++) in unmap_perm()
148 kperm |= current_mapping[tclass].perms[i]; in unmap_perm()
186 map_perm(security_class_t tclass, access_vector_t kperm) in map_perm() argument
188 if (tclass < current_mapping_size) { in map_perm()
[all …]
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_av.c15 security_class_t tclass, in security_compute_av_flags_raw() argument
42 kclass = unmap_class(tclass); in security_compute_av_flags_raw()
44 kclass, unmap_perm(tclass, requested)); in security_compute_av_flags_raw()
73 map_decision(tclass, avd); in security_compute_av_flags_raw()
87 security_class_t tclass, in hidden_def()
94 ret = security_compute_av_flags_raw(scon, tcon, tclass, in hidden_def()
114 security_class_t tclass, in hidden_def()
128 ret = security_compute_av_flags_raw(rscon, rtcon, tclass, in hidden_def()
141 security_class_t tclass, in hidden_def()
147 ret = security_compute_av_flags(scon, tcon, tclass, in hidden_def()
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);
Dcompute_relabel.c15 security_class_t tclass, in security_compute_relabel_raw() argument
39 snprintf(buf, size, "%s %s %hu", scon, tcon, unmap_class(tclass)); in security_compute_relabel_raw()
67 security_class_t tclass, in hidden_def()
82 ret = security_compute_relabel_raw(rscon, rtcon, tclass, &rnewcon); in hidden_def()
Dcompute_member.c15 security_class_t tclass, in security_compute_member_raw() argument
39 snprintf(buf, size, "%s %s %hu", scon, tcon, unmap_class(tclass)); in security_compute_member_raw()
67 security_class_t tclass, in hidden_def()
82 ret = security_compute_member_raw(rscon, rtcon, tclass, &rnewcon); in hidden_def()
Davc_internal.h157 security_class_t tclass, access_vector_t perms,
160 security_class_t tclass,
164 security_class_t tclass, access_vector_t perms,
168 security_class_t tclass, access_vector_t perms,
171 security_class_t tclass, access_vector_t perms,
/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/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/prebuilts/bin/
Dsesearch.py163 if args.tclass:
165 q.tclass = args.tclass
167 q.tclass = args.tclass.split(",")
210 if args.tclass:
212 q.tclass = args.tclass
214 q.tclass = args.tclass.split(",")
233 if args.tclass:
235 q.tclass = args.tclass
237 q.tclass = args.tclass.split(",")
/external/selinux/libsepol/include/sepol/policydb/
Dservices.h49 sepol_security_class_t tclass, /* IN */
61 sepol_security_class_t tclass,
77 sepol_security_class_t tclass,
93 sepol_security_class_t tclass,
102 sepol_security_class_t *tclass);
108 extern int sepol_string_to_av_perm(sepol_security_class_t tclass,
118 sepol_security_class_t tclass, /* IN */
128 sepol_security_class_t tclass, /* IN */
137 sepol_security_class_t tclass, /* IN */
/external/selinux/python/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/selinux/checkpolicy/
Dcheckpolicy.c297 extern char *av_to_string(uint32_t tclass, sepol_access_vector_t av);
387 sepol_security_class_t tclass; in main() local
732 tclass = atoi(ans); in main()
733 if (!tclass in main()
734 || tclass > policydb.p_classes.nprim) { in main()
739 policydb.class_val_to_struct[tclass - 1]; in main()
751 tclass = cladatum->s.value; in main()
759 ret = sepol_compute_av(ssid, tsid, tclass, 0, &avd); in main()
848 tclass = atoi(ans); in main()
849 if (!tclass in main()
[all …]
/external/selinux/libsepol/src/
Dservices.c290 static char *get_class_info(sepol_security_class_t tclass, in get_class_info() argument
344 policydb->p_class_val_to_name[tclass - 1]); in get_class_info()
353 sepol_av_to_string(policydb, tclass, in get_class_info()
389 sepol_security_class_t tclass, in constraint_expr_eval_reason() argument
427 class_buf = get_class_info(tclass, constraint, xcontext); in constraint_expr_eval_reason()
831 sepol_security_class_t tclass,
840 sepol_security_class_t tclass, in type_attribute_bounds_av() argument
871 tclass, in type_attribute_bounds_av()
895 sepol_security_class_t tclass, in context_struct_compute_av() argument
911 if (!tclass || tclass > policydb->p_classes.nprim) { in context_struct_compute_av()
[all …]
Dassertion.c48 p->p_class_val_to_name[curperm->tclass - 1], in report_failure()
49 sepol_av_to_string(p, curperm->tclass, perms)); in report_failure()
54 p->p_class_val_to_name[curperm->tclass - 1], in report_failure()
55 sepol_av_to_string(p, curperm->tclass, perms)); in report_failure()
60 p->p_class_val_to_name[curperm->tclass - 1], in report_failure()
61 sepol_av_to_string(p, curperm->tclass, perms)); in report_failure()
68 if ((cp->tclass == class) && (cp->data & data)) { in match_any_class_permissions()
185 p->p_class_val_to_name[curperm->tclass - 1], in report_assertion_extended_permissions()
202 p->p_class_val_to_name[curperm->tclass - 1], in report_assertion_extended_permissions()
203 sepol_av_to_string(p, curperm->tclass, perms)); in report_assertion_extended_permissions()
[all …]
/external/antlr/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 )
/external/selinux/python/audit2allow/
Dtest.log2 …0 name=root.lock pid=10581 scontext=system_u:system_r:postfix_local_t:s0 tclass=file tcontext=syst…
5 …context=system_u:system_r:automount_t:s0 tcontext=system_u:object_r:automount_lock_t:s0 tclass=file
7 …ontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:reserved_port_t:s0 tclass=tcp_socket
9 …context=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:reserved_port_t:s0 tclass=tcp_socket
11 …o=9338881 scontext=system_u:system_r:ftpd_t:s0 tcontext=system_u:object_r:home_root_t:s0 tclass=dir
13 …ontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:reserved_port_t:s0 tclass=tcp_socket
16 …0 ino=7996439 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=file
18 …scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:mysqld_port_t:s0 tclass=tcp_socket
20 …ontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:reserved_port_t:s0 tclass=tcp_socket
23 …text=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_script_exec_t:s0 tclass=file
[all …]
/external/selinux/python/sepolgen/src/sepolgen/
Daudit.py175 self.tclass = ""
234 self.tclass = fields[1]
258 if (scontext, tcontext, self.tclass, access_tuple) in avcdict.keys():
259 self.type, self.data = avcdict[(scontext, tcontext, self.tclass, access_tuple)]
261 self.type, self.data = audit2why.analyze(scontext, tcontext, self.tclass, self.accesses)
269 raise ValueError("Invalid Type Class %s\n" % self.tclass)
284 avcdict[(scontext, tcontext, self.tclass, access_tuple)] = (self.type, self.data)
318 self.tclass = ""
329 self.tclass = recs[9].split("=")[1]
535 avc.tclass] + avc.accesses)

123