1 |
commit: 539cc57f78a7663ec8bad0d7c6ace4ae42115144 |
2 |
Author: Antoine Tenart <antoine.tenart <AT> bootlin <DOT> com> |
3 |
AuthorDate: Fri Sep 25 07:30:38 2020 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 21:14:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=539cc57f |
7 |
|
8 |
systemd: allow systemd-getty-generator to read and write unallocated ttys |
9 |
|
10 |
Fixes: |
11 |
|
12 |
avc: denied { read write } for pid=40 comm="systemd-getty-g" |
13 |
name="ttyS0" dev="devtmpfs" ino=612 |
14 |
scontext=system_u:system_r:systemd_generator_t |
15 |
tcontext=system_u:object_r:tty_device_t tclass=chr_file permissive=1 |
16 |
|
17 |
avc: denied { open } for pid=40 comm="systemd-getty-g" |
18 |
path="/dev/ttyS0" dev="devtmpfs" ino=612 |
19 |
scontext=system_u:system_r:systemd_generator_t |
20 |
tcontext=system_u:object_r:tty_device_t tclass=chr_file permissive=1 |
21 |
|
22 |
avc: denied { ioctl } for pid=40 comm="systemd-getty-g" |
23 |
path="/dev/ttyS0" dev="devtmpfs" ino=612 ioctlcmd=0x5401 |
24 |
scontext=system_u:system_r:systemd_generator_t |
25 |
tcontext=system_u:object_r:tty_device_t tclass=chr_file permissive=1 |
26 |
|
27 |
Signed-off-by: Antoine Tenart <antoine.tenart <AT> bootlin.com> |
28 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
29 |
|
30 |
policy/modules/system/systemd.te | 2 ++ |
31 |
1 file changed, 2 insertions(+) |
32 |
|
33 |
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te |
34 |
index 495e9e08..e1fc8fd4 100644 |
35 |
--- a/policy/modules/system/systemd.te |
36 |
+++ b/policy/modules/system/systemd.te |
37 |
@@ -409,6 +409,8 @@ storage_raw_read_fixed_disk(systemd_generator_t) |
38 |
|
39 |
systemd_log_parse_environment(systemd_generator_t) |
40 |
|
41 |
+term_use_unallocated_ttys(systemd_generator_t) |
42 |
+ |
43 |
optional_policy(` |
44 |
fstools_exec(systemd_generator_t) |
45 |
') |