Home
last modified time | relevance | path

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

/external/selinux/python/sepolgen/src/sepolgen/
Daudit.py173 self.tcontext = refpolicy.SecurityContext()
229 self.tcontext = refpolicy.SecurityContext(fields[1])
246 tcontext = self.tcontext.to_string()
251 if (scontext, tcontext, self.tclass, access_tuple) in avcdict.keys():
252 self.type, self.data = avcdict[(scontext, tcontext, self.tclass, access_tuple)]
254 … self.type, self.data = audit2why.analyze(scontext, tcontext, self.tclass, self.accesses);
258 raise ValueError("Invalid Target Context %s\n" % tcontext)
270 if self.scontext.user != self.tcontext.user:
271 … self.data.append(("user (%s)" % self.scontext.user, 'user (%s)' % self.tcontext.user))
272 if self.scontext.role != self.tcontext.role and self.tcontext.role != "object_r":
[all …]
Dpolicygen.py260 (str(msg.scontext), str(msg.tcontext)))
/external/selinux/python/sepolgen/tests/
Dtest_audit.py64 self.assertEqual(avc.tcontext, sc)
77 self.assertEqual(avc.tcontext.user, "user_u")
78 self.assertEqual(avc.tcontext.role, "object_r")
79 self.assertEqual(avc.tcontext.type, "user_home_t")
80 self.assertEqual(avc.tcontext.level, "s0")
100 self.assertEqual(avc.tcontext.user, "system_u")
101 self.assertEqual(avc.tcontext.role, "object_r")
102 self.assertEqual(avc.tcontext.type, "xdm_tmp_t")
103 self.assertEqual(avc.tcontext.level, "s0")
124 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/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/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 …]