Home
last modified time | relevance | path

Searched refs:tcontext (Results 1 – 15 of 15) sorted by relevance

/external/selinux/python/sepolgen/src/sepolgen/
Daudit.py174 self.tcontext = refpolicy.SecurityContext()
231 self.tcontext = refpolicy.SecurityContext(fields[1])
253 tcontext = self.tcontext.to_string()
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)
265 raise ValueError("Invalid Target Context %s\n" % tcontext)
277 if self.scontext.user != self.tcontext.user:
278 … self.data.append(("user (%s)" % self.scontext.user, 'user (%s)' % self.tcontext.user))
279 if self.scontext.role != self.tcontext.role and self.tcontext.role != "object_r":
[all …]
Dpolicygen.py289 (str(msg.scontext), str(msg.tcontext)))
/external/selinux/python/sepolgen/tests/test_data/
Dhttpd.log1 …reedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:s…
2 …reedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:s…
3 …reedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:s…
4 …reedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:s…
5 …reedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:s…
6 …reedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:s…
7 …reedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:s…
8 …reedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:s…
9 …reedesktop.DBus spid=6687 tpid=3866 scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:s…
10 ….NetworkManager spid=3866 tpid=6687 scontext=staff_u:staff_r:staff_t:s0 tcontext=staff_u:staff_r:s…
[all …]
Daudit.log1 …" name="[96391]" dev=pipefs ino=96391 scontext=staff_u:staff_r:pam_t:s0 tcontext=system_u:system_r…
4 …=".gdmDOM7HT" dev=dm-0 ino=14469552 scontext=staff_u:staff_r:staff_t:s0 tcontext=system_u:object_r…
6 …_instances" dev=proc ino=-268435218 scontext=staff_u:staff_r:staff_t:s0 tcontext=system_u:object_r…
8 …register.lock" dev=dm-0 ino=5434689 scontext=staff_u:staff_r:staff_t:s0 tcontext=user_u:object_r:u…
10 …register.lock" dev=dm-0 ino=5434689 scontext=staff_u:staff_r:staff_t:s0 tcontext=user_u:object_r:u…
15 …ame="root" dev=dm-0 ino=13127137 scontext=staff_u:staff_r:staff_su_t:s0 tcontext=root:object_r:use…
17 …DOM7HT" dev=dm-0 ino=14469552 scontext=staff_u:staff_r:staff_xauth_t:s0 tcontext=system_u:object_r…
19 …DOM7HT" dev=dm-0 ino=14469552 scontext=staff_u:staff_r:staff_xauth_t:s0 tcontext=system_u:object_r…
21 …DOM7HT" dev=dm-0 ino=14469552 scontext=staff_u:staff_r:staff_xauth_t:s0 tcontext=system_u:object_r…
24 …ame="root" dev=dm-0 ino=13127137 scontext=staff_u:staff_r:staff_su_t:s0 tcontext=root:object_r:use…
[all …]
Dshort.log1 …" name="[96391]" dev=pipefs ino=96391 scontext=staff_u:staff_r:pam_t:s0 tcontext=system_u:system_r…
4 …=".gdmDOM7HT" dev=dm-0 ino=14469552 scontext=staff_u:staff_r:staff_t:s0 tcontext=system_u:object_r…
6 …_instances" dev=proc ino=-268435218 scontext=staff_u:staff_r:staff_t:s0 tcontext=system_u:object_r…
8 …register.lock" dev=dm-0 ino=5434689 scontext=staff_u:staff_r:staff_t:s0 tcontext=user_u:object_r:u…
10 …register.lock" dev=dm-0 ino=5434689 scontext=staff_u:staff_r:staff_t:s0 tcontext=user_u:object_r:u…
15 …ame="root" dev=dm-0 ino=13127137 scontext=staff_u:staff_r:staff_su_t:s0 tcontext=root:object_r:use…
/external/selinux/python/sepolgen/tests/
Dtest_audit.py76 self.assertEqual(avc.tcontext, sc)
90 self.assertEqual(avc.tcontext.user, "user_u")
91 self.assertEqual(avc.tcontext.role, "object_r")
92 self.assertEqual(avc.tcontext.type, "user_home_t")
93 self.assertEqual(avc.tcontext.level, "s0")
136 self.assertEqual(avc.tcontext.user, "system_u")
137 self.assertEqual(avc.tcontext.role, "object_r")
138 self.assertEqual(avc.tcontext.type, "xdm_tmp_t")
139 self.assertEqual(avc.tcontext.level, "s0")
160 self.assertEqual(avc.tcontext.user, "user_u")
[all …]
Daudit.txt1 …for pid=8132 comm="sh" capability=2 scontext=user_u:system_r:vpnc_t:s0 tcontext=user_u:system_r:v…
3 …8133 comm="vpnc-script" capability=1 scontext=user_u:system_r:vpnc_t:s0 tcontext=user_u:system_r:v…
4 …8133 comm="vpnc-script" capability=2 scontext=user_u:system_r:vpnc_t:s0 tcontext=user_u:system_r:v…
6 …8134 comm="vpnc-script" capability=1 scontext=user_u:system_r:vpnc_t:s0 tcontext=user_u:system_r:v…
7 …8134 comm="vpnc-script" capability=2 scontext=user_u:system_r:vpnc_t:s0 tcontext=user_u:system_r:v…
9 …for pid=8144 comm="sh" capability=1 scontext=user_u:system_r:vpnc_t:s0 tcontext=user_u:system_r:v…
10 …for pid=8144 comm="sh" capability=2 scontext=user_u:system_r:vpnc_t:s0 tcontext=user_u:system_r:v…
12 …8145 comm="vpnc-script" capability=1 scontext=user_u:system_r:vpnc_t:s0 tcontext=user_u:system_r:v…
13 …8145 comm="vpnc-script" capability=2 scontext=user_u:system_r:vpnc_t:s0 tcontext=user_u:system_r:v…
15 …8146 comm="vpnc-script" capability=1 scontext=user_u:system_r:vpnc_t:s0 tcontext=user_u:system_r:v…
[all …]
/external/selinux/libsepol/src/
Dservices.c387 context_struct_t *tcontext, in constraint_expr_eval_reason() argument
498 val2 = tcontext->user; in constraint_expr_eval_reason()
504 val2 = tcontext->type; in constraint_expr_eval_reason()
510 val2 = tcontext->role; in constraint_expr_eval_reason()
539 l2 = &(tcontext->range.level[0]); in constraint_expr_eval_reason()
545 l2 = &(tcontext->range.level[1]); in constraint_expr_eval_reason()
551 l2 = &(tcontext->range.level[0]); in constraint_expr_eval_reason()
557 l2 = &(tcontext->range.level[1]); in constraint_expr_eval_reason()
568 l1 = &(tcontext->range.level[0]); in constraint_expr_eval_reason()
569 l2 = &(tcontext->range.level[1]); in constraint_expr_eval_reason()
[all …]
Dmls.c609 context_struct_t * tcontext, in mls_compute_sid() argument
625 rtr.target_type = tcontext->type; in mls_compute_sid()
645 return mls_context_cpy_low(newcontext, tcontext); in mls_compute_sid()
647 return mls_context_cpy_high(newcontext, tcontext); in mls_compute_sid()
649 return mls_context_cpy(newcontext, tcontext); in mls_compute_sid()
Dmls.h60 context_struct_t * tcontext,
/external/selinux/python/audit2allow/
Dtest.log2 …ock pid=10581 scontext=system_u:system_r:postfix_local_t:s0 tclass=file tcontext=system_u:object_r…
5 …to.net" dev=dm-0 ino=16483485 scontext=system_u:system_r:automount_t:s0 tcontext=system_u:object_r…
7 …or pid=21134 comm="httpd" src=81 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r…
9 … for pid=21134 comm="smbd" src=81 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r…
11 …" name="home" dev=dm-0 ino=9338881 scontext=system_u:system_r:ftpd_t:s0 tcontext=system_u:object_r…
13 …or pid=21134 comm="httpd" src=81 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r…
16 …"index.html" dev=dm-0 ino=7996439 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r…
18 …or pid=21134 comm="httpd" src=81 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r…
20 …or pid=21134 comm="httpd" src=81 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r…
23 …me="cgi-bin" dev=dm-0 ino=7995597 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r…
[all …]
/external/syzkaller/pkg/report/testdata/linux/report/
D1524 …8 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r…
13 …="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r…
17 …"sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:obje…
18 …vtmpfs" ino=1065 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r…
D2094 …syzkaller238030" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:syst…
12 …syzkaller238030" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:syst…
D13616 …="syz-executor6" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:syst…
/external/syzkaller/pkg/report/testdata/linux/guilty/
D334 …syzkaller238030" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:syst…
12 …syzkaller238030" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:syst…