|
Bugzilla – Full Text Bug Listing |
| Summary: | [Build 20240622] SELinux breaks systemd-getty-generator | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Martin Loviska <mloviska> |
| Component: | Security | Assignee: | Cathy Hu <cathy.hu> |
| Status: | VERIFIED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | cathy.hu, felix.niederwanger, fvogt, jsegitz |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| URL: | https://openqa.opensuse.org/tests/4292687/modules/firstrun/steps/13 | ||
| Whiteboard: | |||
| Found By: | openQA | Services Priority: | |
| Business Priority: | Blocker: | Yes | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | journal + list of avcs | ||
|
Description
Martin Loviska
2024-06-24 11:46:54 UTC
Created attachment 875831 [details]
journal + list of avcs
Suspicious log entries regarding getty generator
> Jul 02 11:53:49 localhost.localdomain systemd-getty-generator[1546]: Failed to parse $SYSTEMD_GETTY_AUTO environment variable, ignoring: Permission denied
> Jul 02 11:54:44 localhost.localdomain systemd-getty-generator[1575]: Failed to parse $SYSTEMD_GETTY_AUTO environment variable, ignoring: Permission denied
> Jul 02 11:57:39 localhost.localdomain systemd-getty-generator[1617]: Failed to parse $SYSTEMD_GETTY_AUTO environment variable, ignoring: Permission denied
> Jul 02 11:57:43 localhost.localdomain systemd-getty-generator[1645]: Failed to parse $SYSTEMD_GETTY_AUTO environment variable, ignoring: Permission denied
getty-generator does:
> r = getenv_for_pid(1, "SYSTEMD_GETTY_AUTO", &getty_auto);
Opening /proc/1/environ fails with EACCESS. According to the code it should effectively treat that as "true", but apparently that's not the case?
(In reply to Fabian Vogt from comment #3) > getty-generator does: > > r = getenv_for_pid(1, "SYSTEMD_GETTY_AUTO", &getty_auto); > > Opening /proc/1/environ fails with EACCESS. According to the code it should > effectively treat that as "true", but apparently that's not the case? ^ is a bug as well, but a red herring. With strace it's visible that it tries to open /dev/ttyS0 but fails with -EACCES. No denial in audit.log though. please try again with dontaudit rules disabled semodule -DB that sounds very much like a candidate fabian found the solution, i will queue up an update (In reply to Cathy Hu from comment #7) > https://build.opensuse.org/request/show/1187549 Works! (In reply to Cathy Hu from comment #7) > https://build.opensuse.org/request/show/1187549 Nice, thank you, Cathy! VRs: - https://openqa.opensuse.org/tests/4348136/logfile?filename=serial_terminal.txt - https://openqa.opensuse.org/tests/4347013#step/firstrun/11 |