Home
last modified time | relevance | path

Searched refs:scontext (Results 1 – 11 of 11) sorted by relevance

/third_party/selinux/libsepol/src/
Dcontext.c93 char *scontext = NULL; in context_to_string() local
109 scontext = malloc(scontext_len); in context_to_string()
110 if (!scontext) in context_to_string()
112 scontext[scontext_len - 1] = '\0'; in context_to_string()
117 ptr = scontext; in context_to_string()
130 *result = scontext; in context_to_string()
136 free(scontext); in context_to_string()
149 context_struct_t *scontext = NULL; in context_from_record() local
160 scontext = (context_struct_t *) malloc(sizeof(context_struct_t)); in context_from_record()
161 if (!user || !role || !type || !scontext) { in context_from_record()
[all …]
Dservices.c384 static int constraint_expr_eval_reason(context_struct_t *scontext, in constraint_expr_eval_reason() argument
513 val1 = scontext->user; in constraint_expr_eval_reason()
519 val1 = scontext->type; in constraint_expr_eval_reason()
525 val1 = scontext->role; in constraint_expr_eval_reason()
554 l1 = &(scontext->range.level[0]); in constraint_expr_eval_reason()
560 l1 = &(scontext->range.level[0]); in constraint_expr_eval_reason()
566 l1 = &(scontext->range.level[1]); in constraint_expr_eval_reason()
572 l1 = &(scontext->range.level[1]); in constraint_expr_eval_reason()
578 l1 = &(scontext->range.level[0]); in constraint_expr_eval_reason()
579 l2 = &(scontext->range.level[1]); in constraint_expr_eval_reason()
[all …]
Dmls.c168 const context_struct_t * context, char **scontext) in mls_sid_to_context() argument
178 scontextp = *scontext; in mls_sid_to_context()
250 *scontext = scontextp; in mls_sid_to_context()
330 char oldc, char **scontext, context_struct_t * context) in mls_context_to_sid() argument
347 scontextp = p = *scontext; in mls_context_to_sid()
442 *scontext = ++p; in mls_context_to_sid()
604 context_struct_t * scontext, in mls_compute_sid() argument
620 rtr.source_type = scontext->type; in mls_compute_sid()
635 return mls_context_cpy_low(newcontext, scontext); in mls_compute_sid()
637 return mls_context_cpy_high(newcontext, scontext); in mls_compute_sid()
[all …]
Dmls.h45 char **scontext);
50 char **scontext, context_struct_t * context);
59 context_struct_t * scontext,
/third_party/selinux/libselinux/src/
Dis_customizable_type.c64 int is_context_customizable(const char * scontext) in is_context_customizable() argument
75 c = context_new(scontext); in is_context_customizable()
Dmatchpathcon.c556 char * scontext = NULL; in selinux_lsetfilecon_default() local
565 if (selabel_lookup_raw(hnd, &scontext, path, st.st_mode)) { in selinux_lsetfilecon_default()
569 rc = lsetfilecon_raw(path, scontext); in selinux_lsetfilecon_default()
570 freecon(scontext); in selinux_lsetfilecon_default()
/third_party/selinux/libsepol/include/sepol/policydb/
Dservices.h142 sepol_security_context_t * scontext, /* OUT */
149 extern int sepol_context_to_sid(const sepol_security_context_t scontext, /* IN */
/third_party/selinux/checkpolicy/
Dcheckpolicy.c132 sepol_security_context_t scontext; in print_sid() local
136 rc = sepol_sid_to_context(sid, &scontext, &scontext_len); in print_sid()
140 printf("sid %d -> scontext %s\n", sid, scontext); in print_sid()
141 free(scontext); in print_sid()
387 sepol_security_context_t scontext; in main() local
830 &scontext, &scontext_len); in main()
833 printf("\nscontext %s\n", scontext); in main()
834 free(scontext); in main()
/third_party/selinux/libselinux/include/selinux/
Dselinux.h684 extern int is_context_customizable(const char * scontext);
/third_party/libinput/doc/user/
Dbuilding.rst142 …ome-shell" path="/usr/lib64/libinput.so.10.12.2" dev="dm-0" ino=1709093 scontext=system_u:system_r…
/third_party/gstreamer/gstplugins_good/gst/matroska/
Dmatroska-mux.c2223 GstMatroskaTrackSubtitleContext *scontext; in gst_matroska_mux_subtitle_pad_setcaps() local
2252 scontext = (GstMatroskaTrackSubtitleContext *) context; in gst_matroska_mux_subtitle_pad_setcaps()
2258 scontext->check_utf8 = 1; in gst_matroska_mux_subtitle_pad_setcaps()
2259 scontext->invalid_utf8 = 0; in gst_matroska_mux_subtitle_pad_setcaps()