systemd: allow systemd-getty-generator to read and write unallocated ttys
Fixes: avc: denied { read write } for pid=40 comm="systemd-getty-g" name="ttyS0" dev="devtmpfs" ino=612 scontext=system_u:system_r:systemd_generator_t tcontext=system_u:object_r:tty_device_t tclass=chr_file permissive=1 avc: denied { open } for pid=40 comm="systemd-getty-g" path="/dev/ttyS0" dev="devtmpfs" ino=612 scontext=system_u:system_r:systemd_generator_t tcontext=system_u:object_r:tty_device_t tclass=chr_file permissive=1 avc: denied { ioctl } for pid=40 comm="systemd-getty-g" path="/dev/ttyS0" dev="devtmpfs" ino=612 ioctlcmd=0x5401 scontext=system_u:system_r:systemd_generator_t tcontext=system_u:object_r:tty_device_t tclass=chr_file permissive=1 Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
This commit is contained in:
parent
bc7a84d643
commit
49a0771dd3
|
@ -402,6 +402,8 @@ storage_raw_read_fixed_disk(systemd_generator_t)
|
|||
|
||||
systemd_log_parse_environment(systemd_generator_t)
|
||||
|
||||
term_use_unallocated_ttys(systemd_generator_t)
|
||||
|
||||
optional_policy(`
|
||||
fstools_exec(systemd_generator_t)
|
||||
')
|
||||
|
|
Loading…
Reference in New Issue