Home
last modified time | relevance | path

Searched refs:scon (Results 1 – 17 of 17) sorted by relevance

/external/selinux/libselinux/include/selinux/
Dselinux.h184 extern int security_compute_av(const char * scon,
189 extern int security_compute_av_raw(const char * scon,
195 extern int security_compute_av_flags(const char * scon,
200 extern int security_compute_av_flags_raw(const char * scon,
208 extern int security_compute_create(const char * scon,
212 extern int security_compute_create_raw(const char * scon,
216 extern int security_compute_create_name(const char * scon,
221 extern int security_compute_create_name_raw(const char * scon,
229 extern int security_compute_relabel(const char * scon,
233 extern int security_compute_relabel_raw(const char * scon,
[all …]
/external/selinux/libselinux/src/
Dcompute_create.c51 int security_compute_create_name_raw(const char * scon, in security_compute_create_name_raw() argument
79 scon, tcon, unmap_class(tclass)); in security_compute_create_name_raw()
110 int security_compute_create_raw(const char * scon, in hidden_def()
115 return security_compute_create_name_raw(scon, tcon, tclass, in hidden_def()
120 int security_compute_create_name(const char * scon, in hidden_def()
131 if (selinux_trans_to_raw_context(scon, &rscon)) in hidden_def()
151 int security_compute_create(const char * scon, in hidden_def()
156 return security_compute_create_name(scon, tcon, tclass, NULL, newcon); in hidden_def()
Dcompute_av.c13 int security_compute_av_flags_raw(const char * scon, in security_compute_av_flags_raw() argument
43 snprintf(buf, len, "%s %s %hu %x", scon, tcon, in security_compute_av_flags_raw()
85 int security_compute_av_raw(const char * scon, in hidden_def()
94 ret = security_compute_av_flags_raw(scon, tcon, tclass, in hidden_def()
112 int security_compute_av_flags(const char * scon, in hidden_def()
122 if (selinux_trans_to_raw_context(scon, &rscon)) in hidden_def()
139 int security_compute_av(const char * scon, in hidden_def()
147 ret = security_compute_av_flags(scon, tcon, tclass, in hidden_def()
Dcompute_relabel.c13 int security_compute_relabel_raw(const char * scon, in security_compute_relabel_raw() argument
39 snprintf(buf, size, "%s %s %hu", scon, tcon, unmap_class(tclass)); in security_compute_relabel_raw()
65 int security_compute_relabel(const char * scon, in hidden_def()
75 if (selinux_trans_to_raw_context(scon, &rscon)) in hidden_def()
Dvalidatetrans.c13 int security_validatetrans_raw(const char *scon, in security_validatetrans_raw() argument
41 bufsz = snprintf(buf, size, "%s %s %hu %s", scon, tcon, unmap_class(tclass), newcon); in security_validatetrans_raw()
62 int security_validatetrans(const char *scon, in hidden_def()
72 if (selinux_trans_to_raw_context(scon, &rscon)) { in hidden_def()
Dcompute_member.c13 int security_compute_member_raw(const char * scon, in security_compute_member_raw() argument
39 snprintf(buf, size, "%s %s %hu", scon, tcon, unmap_class(tclass)); in security_compute_member_raw()
65 int security_compute_member(const char * scon, in hidden_def()
75 if (selinux_trans_to_raw_context(scon, &rscon)) in hidden_def()
Dcompute_user.c12 int security_compute_user_raw(const char * scon, in security_compute_user_raw() argument
38 snprintf(buf, size, "%s %s", scon, user); in security_compute_user_raw()
82 int security_compute_user(const char * scon, in hidden_def()
88 if (selinux_trans_to_raw_context(scon, &rscon)) in hidden_def()
DcheckAccess.c22 int selinux_check_access(const char *scon, const char *tcon, const char *class, const char *perm, v… in selinux_check_access() argument
34 rc = avc_context_to_sid(scon, &scon_id); in selinux_check_access()
Daudit2why.c312 char * scon; in analyze() local
327 …if (!PyArg_ParseTuple(args,(char *)"sssO!:audit2why",&scon,&tcon,&tclassstr,&PyList_Type, &listObj… in analyze()
339 rc = sepol_context_to_sid(scon, strlen(scon) + 1, &ssid); in analyze()
/external/selinux/mcstrans/utils/
Duntranscon.c16 security_context_t scon; in main() local
19 if(untrans_context(argv[1],&scon) == 0) { in main()
20 printf("%s\n", scon); in main()
21 freecon(scon); in main()
Dtranscon.c17 security_context_t scon; in main() local
20 if(trans_context(argv[1],&scon) == 0) { in main()
21 printf("%s\n", scon); in main()
22 freecon(scon); in main()
/external/selinux/policycoreutils/secon/
Dsecon.c625 security_context_t scon_trans, scon; in disp_con() local
632 scon = scon_raw; in disp_con()
634 scon = scon_trans; in disp_con()
636 if (!*scon) { /* --self-exec and --self-fs etc. */ in disp_con()
656 scon); in disp_con()
687 if (!(con = context_new(scon))) in disp_con()
688 errx(EXIT_FAILURE, "Couldn't create context from: %s", scon); in disp_con()
711 scon); in disp_con()
731 scon); in disp_con()
/external/selinux/libselinux/fuzzers/
Dselinux_check_access_fuzzer.cpp58 std::string scon = fdp.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput() local
61 selinux_check_access(scon.data(), tcon.data(), tclass.data(), perm.data(), NULL); in LLVMFuzzerTestOneInput()
Dselinux_check_access_fuzzer.dict1 scon="u:r:shell:s0"
/external/selinux/gui/
DfcontextPage.py151 scon = context(scontext)
152 self.fcontextTypeEntry.set_text(scon.type)
153 self.fcontextMLSEntry.set_text(scon.mls)
/external/selinux/sandbox/
Dseunshare.c555 security_context_t scon; in killall() local
598 if (getpidcon(id, &scon) == 0) { in killall()
600 context_t pidcon = context_new(scon); in killall()
606 freecon(scon); in killall()
/external/selinux/secilc/docs/
Dcil_type_statements.md317 ` scon=unconfined.object tcon=unconfined.object class=file`
377 ` scon=unconfined.object tcon=unconfined.object class=file`