Searched refs:scontext (Results 1 – 23 of 23) sorted by relevance
93 char *scontext = NULL; in context_to_string() local109 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() local160 scontext = (context_struct_t *) malloc(sizeof(context_struct_t)); in context_from_record()161 if (!user || !role || !type || !scontext) { in context_from_record()[all …]
187 char *scontext, *r, *s; local210 scontext = malloc(p - q);211 if (!scontext) {217 r = scontext;225 r = scontext;230 ERR(NULL, "invalid level %s (%s:%u)", scontext,232 free(scontext);236 free(scontext);256 scontext = malloc(p - q);257 if (!scontext) {[all …]
385 static int constraint_expr_eval_reason(context_struct_t *scontext, in constraint_expr_eval_reason() argument496 val1 = scontext->user; in constraint_expr_eval_reason()502 val1 = scontext->type; in constraint_expr_eval_reason()508 val1 = scontext->role; in constraint_expr_eval_reason()537 l1 = &(scontext->range.level[0]); in constraint_expr_eval_reason()543 l1 = &(scontext->range.level[0]); in constraint_expr_eval_reason()549 l1 = &(scontext->range.level[1]); in constraint_expr_eval_reason()555 l1 = &(scontext->range.level[1]); in constraint_expr_eval_reason()561 l1 = &(scontext->range.level[0]); in constraint_expr_eval_reason()562 l2 = &(scontext->range.level[1]); in constraint_expr_eval_reason()[all …]
45 char **scontext);50 char **scontext, context_struct_t * context);59 context_struct_t * scontext,
168 const context_struct_t * context, char **scontext) in mls_sid_to_context() argument178 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() argument347 scontextp = p = *scontext; in mls_context_to_sid()442 *scontext = ++p; in mls_context_to_sid()606 context_struct_t * scontext, in mls_compute_sid() argument619 if (rtr->source_type == scontext->type && in mls_compute_sid()631 return mls_copy_context(newcontext, scontext); in mls_compute_sid()634 return mls_scopy_context(newcontext, scontext); in mls_compute_sid()[all …]
63 self.assertEquals(avc.scontext, sc)72 self.assertEquals(avc.scontext.user, "user_u")73 self.assertEquals(avc.scontext.role, "system_r")74 self.assertEquals(avc.scontext.type, "unconfined_t")75 self.assertEquals(avc.scontext.level, "s0")95 self.assertEquals(avc.scontext.user, "user_u")96 self.assertEquals(avc.scontext.role, "system_r")97 self.assertEquals(avc.scontext.type, "bluetooth_helper_t")98 self.assertEquals(avc.scontext.level, "s0-s0:c0")119 self.assertEquals(avc.scontext.user, "user_u")[all …]
1 … avc: denied { dac_read_search } for pid=8132 comm="sh" capability=2 scontext=user_u:system_r:v…3 … denied { dac_override } for pid=8133 comm="vpnc-script" capability=1 scontext=user_u:system_r:v…4 …nied { dac_read_search } for pid=8133 comm="vpnc-script" capability=2 scontext=user_u:system_r:v…6 … denied { dac_override } for pid=8134 comm="vpnc-script" capability=1 scontext=user_u:system_r:v…7 …nied { dac_read_search } for pid=8134 comm="vpnc-script" capability=2 scontext=user_u:system_r:v…9 …1): avc: denied { dac_override } for pid=8144 comm="sh" capability=1 scontext=user_u:system_r:v…10 … avc: denied { dac_read_search } for pid=8144 comm="sh" capability=2 scontext=user_u:system_r:v…12 … denied { dac_override } for pid=8145 comm="vpnc-script" capability=1 scontext=user_u:system_r:v…13 …nied { dac_read_search } for pid=8145 comm="vpnc-script" capability=2 scontext=user_u:system_r:v…15 … denied { dac_override } for pid=8146 comm="vpnc-script" capability=1 scontext=user_u:system_r:v…[all …]
165 self.scontext = refpolicy.SecurityContext()219 self.scontext = refpolicy.SecurityContext(fields[1])240 scontext = self.scontext.to_string()244 if (scontext, tcontext, self.tclass, access_tuple) in avcdict.keys():245 self.type, self.data = avcdict[(scontext, tcontext, self.tclass, access_tuple)]247 … self.type, self.data = audit2why.analyze(scontext, tcontext, self.tclass, self.accesses);253 raise ValueError("Invalid Source Context %s\n" % scontext)263 if self.scontext.user != self.tcontext.user:264 … self.data.append(("user (%s)" % self.scontext.user, 'user (%s)' % self.tcontext.user))265 if self.scontext.role != self.tcontext.role and self.tcontext.role != "object_r":[all …]
259 (str(msg.scontext), str(msg.tcontext)))
1 …ber=DeviceActivationStage dest=org.freedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:s…2 …ber=DeviceActivationStage dest=org.freedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:s…3 …anager member=StateChange dest=org.freedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:s…4 …anager member=StateChange dest=org.freedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:s…5 …er=DeviceActivationFailed dest=org.freedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:s…6 …ber=DeviceActivationStage dest=org.freedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:s…7 …ber=DeviceActivationStage dest=org.freedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:s…8 …anager member=StateChange dest=org.freedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:s…9 …r member=DeviceActivating dest=org.freedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:s…10 …r=getProperties dest=org.freedesktop.NetworkManager spid=3866 tpid=6687 scontext=staff_u:staff_r:s…[all …]
1 …or pid=6314 comm="pam_timestamp_c" name="[96391]" dev=pipefs ino=96391 scontext=staff_u:staff_r:p…4 … } for pid=6306 comm="beagled" name=".gdmDOM7HT" dev=dm-0 ino=14469552 scontext=staff_u:staff_r:s…6 …d=6306 comm="beagled" name="max_user_instances" dev=proc ino=-268435218 scontext=staff_u:staff_r:s…8 …ock-applet" name="bonobo-activation-register.lock" dev=dm-0 ino=5434689 scontext=staff_u:staff_r:s…10 …ock-applet" name="bonobo-activation-register.lock" dev=dm-0 ino=5434689 scontext=staff_u:staff_r:s…15 …d { search } for pid=6377 comm="su" name="root" dev=dm-0 ino=13127137 scontext=staff_u:staff_r:s…17 …te } for pid=6378 comm="xauth" name=".gdmDOM7HT" dev=dm-0 ino=14469552 scontext=staff_u:staff_r:s…19 …ad } for pid=6378 comm="xauth" name=".gdmDOM7HT" dev=dm-0 ino=14469552 scontext=staff_u:staff_r:s…21 …tr } for pid=6378 comm="xauth" name=".gdmDOM7HT" dev=dm-0 ino=14469552 scontext=staff_u:staff_r:s…24 …ed { write } for pid=6377 comm="su" name="root" dev=dm-0 ino=13127137 scontext=staff_u:staff_r:s…[all …]
1 …or pid=6314 comm="pam_timestamp_c" name="[96391]" dev=pipefs ino=96391 scontext=staff_u:staff_r:p…4 … } for pid=6306 comm="beagled" name=".gdmDOM7HT" dev=dm-0 ino=14469552 scontext=staff_u:staff_r:s…6 …d=6306 comm="beagled" name="max_user_instances" dev=proc ino=-268435218 scontext=staff_u:staff_r:s…8 …ock-applet" name="bonobo-activation-register.lock" dev=dm-0 ino=5434689 scontext=staff_u:staff_r:s…10 …ock-applet" name="bonobo-activation-register.lock" dev=dm-0 ino=5434689 scontext=staff_u:staff_r:s…15 …d { search } for pid=6377 comm="su" name="root" dev=dm-0 ino=13127137 scontext=staff_u:staff_r:s…
2 … avc: denied { write } for comm=local dev=dm-0 name=root.lock pid=10581 scontext=system_u:system_r…5 …} for pid=13944 comm="automount" name="auto.net" dev=dm-0 ino=16483485 scontext=system_u:system_r…7 …44:851): avc: denied { name_bind } for pid=21134 comm="httpd" src=81 scontext=system_u:system_r…9 …:852): avc: denied { name_connect } for pid=21134 comm="smbd" src=81 scontext=system_u:system_r…11 … search } for pid=24427 comm="vsftpd" name="home" dev=dm-0 ino=9338881 scontext=system_u:system_r…13 …852): avc: denied { name_connect } for pid=21134 comm="httpd" src=81 scontext=system_u:system_r…16 …ns } for pid=23768 comm="httpd" name="index.html" dev=dm-0 ino=7996439 scontext=system_u:system_r…18 …853): avc: denied { name_connect } for pid=21134 comm="httpd" src=81 scontext=system_u:system_r…20 …853): avc: denied { name_connect } for pid=21134 comm="httpd" src=81 scontext=system_u:system_r…23 …ecute } for pid=23770 comm="httpd" name="cgi-bin" dev=dm-0 ino=7995597 scontext=system_u:system_r…[all …]
32 def __init__(self, scontext): argument33 self.scontext = scontext34 con=scontext.split(":")42 return self.scontext151 scontext = store.get_value(iter, TYPE_COL)152 scon=context(scontext)
64 int is_context_customizable(const char * scontext) in is_context_customizable() argument75 c = context_new(scontext); in is_context_customizable()
509 char * scontext = NULL; in selinux_lsetfilecon_default() local518 if (selabel_lookup_raw(hnd, &scontext, path, st.st_mode)) { in selinux_lsetfilecon_default()522 rc = lsetfilecon_raw(path, scontext); in selinux_lsetfilecon_default()523 freecon(scontext); in selinux_lsetfilecon_default()
146 sepol_security_context_t * scontext, /* OUT */153 extern int sepol_context_to_sid(const sepol_security_context_t scontext, /* IN */
126 sepol_security_context_t scontext; in print_sid() local130 rc = sepol_sid_to_context(sid, &scontext, &scontext_len); in print_sid()134 printf("sid %d -> scontext %s\n", sid, scontext); in print_sid()135 free(scontext); in print_sid()383 sepol_security_context_t scontext; in main() local768 &scontext, &scontext_len); in main()771 printf("\nscontext %s\n", scontext); in main()772 free(scontext); in main()
155 Context scontext = ContextHandler.getCurrentContext(); in doStart() local156 _context = (scontext==null?null:scontext.getContextHandler()); in doStart()
54 ContextHandler.Context scontext = (ContextHandler.Context) context; in init() local55 Server _server = scontext.getContextHandler().getServer(); in init()
311 ContextHandler.Context scontext=ContextHandler.getCurrentContext(); in initContextHandler() local312 if (scontext==null) in initContextHandler()
610 extern int is_context_customizable(const char * scontext);
META-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...