Home
last modified time | relevance | path

Searched refs:scon (Results 1 – 19 of 19) 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
41 snprintf(buf, len, "%s %s %hu %x", scon, tcon, in security_compute_av_flags_raw()
77 int security_compute_av_raw(const char * scon, in hidden_def()
86 ret = security_compute_av_flags_raw(scon, tcon, tclass, in hidden_def()
104 int security_compute_av_flags(const char * scon, in hidden_def()
114 if (selinux_trans_to_raw_context(scon, &rscon)) in hidden_def()
131 int security_compute_av(const char * scon, in hidden_def()
139 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()
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.c35 int selinux_check_access(const char *scon, const char *tcon, const char *class, const char *perm, v… in selinux_check_access() argument
47 rc = avc_context_to_sid(scon, &scon_id); in selinux_check_access()
Daudit2why.c311 char * scon; in analyze() local
326 …if (!PyArg_ParseTuple(args,(char *)"sssO!:audit2why",&scon,&tcon,&tclassstr,&PyList_Type, &listObj… in analyze()
338 rc = sepol_context_to_sid(scon, strlen(scon) + 1, &ssid); in analyze()
/external/selinux/policycoreutils/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/libselinux/include/selinux/
Dselinux.h164 extern int security_compute_av(const char * scon,
172 extern int security_compute_create(const char * scon,
179 extern int security_compute_relabel(const char * scon,
186 extern int security_compute_member(const char * scon,
193 extern int security_compute_user(const char * scon,
277 extern int selinux_check_access(const char * scon,
/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()
655 scon); in disp_con()
686 if (!(con = context_new(scon))) in disp_con()
687 errx(EXIT_FAILURE, "Couldn't create context from: %s", scon); in disp_con()
710 scon); in disp_con()
730 scon); in disp_con()
/external/libselinux/src/
Dcompute_create.c13 int security_compute_create(const char * scon, in security_compute_create() argument
39 snprintf(buf, size, "%s %s %hu", scon, tcon, unmap_class(tclass)); in security_compute_create()
DcheckAccess.c20 int selinux_check_access(const char * scon, const char * tcon, const char *class, const char *perm,… in selinux_check_access() argument
32 rc = avc_context_to_sid(scon, &scon_id); in selinux_check_access()
Dcompute_av.c13 int security_compute_av(const char * scon, in security_compute_av() argument
41 snprintf(buf, len, "%s %s %hu %x", scon, tcon, in security_compute_av()
/external/selinux/policycoreutils/gui/
DfcontextPage.py155 scon = context(scontext)
156 self.fcontextTypeEntry.set_text(scon.type)
157 self.fcontextMLSEntry.set_text(scon.mls)
/external/mesa3d/
D.gitignore34 .scon*
/external/selinux/policycoreutils/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`