Description of problem: Trying to run serial console via ttyUSB0 /proc/cmdline contains console=tty0 console=ttyUSB0,115200n8 but I don't get a login prompt on the serial console. If I manually start agetty with "agetty ttyUSB0 115200 vt220" it works, but not when started by systemd with "systemctl start serial-getty" journal shows feb 13 22:12:54 bender audit[22963]: AVC avc: denied { read write } for pid=22963 comm="agetty" name="ttyUSB0" dev="devtmpfs" ino=15513 scontext=system_u:system_r:getty_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usbtty_device_t:s0 tclass=chr_file permissive=0 Using setenforce 0 make it all work. Version-Release number of selected component (if applicable): selinux-policy-targeted-3.13.1-158.4.fc23.noarch How reproducible: Always. Steps to Reproduce: 1. systemctl start serial-getty Actual results: AVC denial and non-working serial console. Expected results: Working console, i.e. login prompt. Additional info: It seems to be similar to bug #870659.
This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Same problem in Fedora 25. dec 04 20:38:37 bender audit[1]: AVC avc: denied { read write } for pid=1 comm="systemd" name="ttyUSB0" dev="devtmpfs" ino=2626 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:usbtty_device_t:s0 tclass=chr_file permissive=0 dec 04 20:38:37 bender audit[1]: AVC avc: denied { read write } for pid=1 comm="systemd" name="ttyUSB0" dev="devtmpfs" ino=2626 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:usbtty_device_t:s0 tclass=chr_file permissive=0 dec 04 20:38:37 bender audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=serial-getty@ttyUSB0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' dec 04 20:38:37 bender systemd[1]: serial-getty: Service hold-off time over, scheduling restart. dec 04 20:38:37 bender audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=serial-getty@ttyUSB0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' dec 04 20:38:37 bender audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=serial-getty@ttyUSB0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' dec 04 20:38:37 bender systemd[1]: Stopped Serial Getty on ttyUSB0. dec 04 20:38:37 bender audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=serial-getty@ttyUSB0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' dec 04 20:38:37 bender systemd[1]: Started Serial Getty on ttyUSB0. dec 04 20:38:37 bender audit[5788]: AVC avc: denied { read write } for pid=5788 comm="(agetty)" name="ttyUSB0" dev="devtmpfs" ino=2626 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:usbtty_device_t:s0 tclass=chr_file permissive=0 dec 04 20:38:37 bender audit[5788]: AVC avc: denied { read write } for pid=5788 comm="(agetty)" name="ttyUSB0" dev="devtmpfs" ino=2626 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:usbtty_device_t:s0 tclass=chr_file permissive=0 dec 04 20:38:37 bender audit[5788]: AVC avc: denied { open } for pid=5788 comm="agetty" path="/dev/ttyUSB0" dev="devtmpfs" ino=2626 scontext=system_u:system_r:getty_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usbtty_device_t:s0 tclass=chr_file permissive=0
This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
Same problem still occurring in Fedora 29: Mar 19 22:01:21 rex audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=serial-getty@ttyUSB0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Mar 19 22:01:22 rex audit[1771]: AVC avc: denied { setattr } for pid=1771 comm="agetty" name="ttyUSB0" dev="devtmpfs" ino=24592 scontext=system_u:system_r:getty_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usbtty_device_t:s0 tclass=chr_file permissive=0 Mar 19 22:01:22 rex agetty[1771]: /dev/ttyUSB0: Permission denied