Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
# systemctl status setroubleshootd
● setroubleshootd.service - SETroubleshoot daemon for processing new SELinux denial logs
Loaded: loaded (/usr/lib/systemd/system/setroubleshootd.service; static; vendor preset: disabled)
Active: failed (Result: signal) since Wed 2022-08-17 11:42:59 CEST; 1min 22s ago
Process: 5693 ExecStart=/usr/sbin/setroubleshootd -f (code=killed, signal=ALRM)
Main PID: 5693 (code=killed, signal=ALRM)
Version-Release number of selected component (if applicable):
# rpm -q setroubleshoot-server
setroubleshoot-server-3.3.26-4.el8.x86_64
How reproducible:
yum update
reboot
systemctl status setroubleshootd
Actual results:
Aug 17 11:42:47 w.localdomain systemd[1]: Starting SETroubleshoot daemon for processing new SELinux denial logs...
Aug 17 11:42:48 w.localdomain systemd[1]: Started SETroubleshoot daemon for processing new SELinux denial logs.
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_record: type sandbox_t is not defined
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_record: could not create context structure
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_string: could not create context structure
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.sepol_context_to_sid: could not convert unconfined_u:unconfined_r:sandbox_t:s0:c166,c490 to sid
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_record: type sandbox_t is not defined
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_record: could not create context structure
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_string: could not create context structure
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.sepol_context_to_sid: could not convert unconfined_u:unconfined_r:sandbox_t:s0:c166,c490 to sid
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_record: type sandbox_t is not defined
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_record: could not create context structure
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_string: could not create context structure
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.sepol_context_to_sid: could not convert unconfined_u:unconfined_r:sandbox_t:s0:c102,c542 to sid
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_record: type sandbox_t is not defined
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_record: could not create context structure
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_string: could not create context structure
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.sepol_context_to_sid: could not convert unconfined_u:unconfined_r:sandbox_t:s0:c102,c542 to sid
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_record: type NetworkManager_dispatcher_t is not defined
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_record: could not create context structure
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.context_from_string: could not create context structure
Aug 17 11:42:49 w.localdomain setroubleshootd[5693]: libsepol.sepol_context_to_sid: could not convert system_u:system_r:NetworkManager_dispatcher_t:s0 to sid
Aug 17 11:42:59 w.localdomain systemd[1]: setroubleshootd.service: Main process exited, code=killed, status=14/ALRM
Aug 17 11:42:59 w.localdomain systemd[1]: setroubleshootd.service: Failed with result 'signal'.
Expected results:
Running process
Additional info:
# grep ^PR /etc/os-release
PRETTY_NAME="CentOS Stream 8"
# rpm -qa |grep policy
selinux-policy-3.14.3-106.el8.noarch
python3-policycoreutils-2.9-20.el8.noarch
policycoreutils-devel-2.9-20.el8.x86_64
policycoreutils-python-utils-2.9-20.el8.noarch
policycoreutils-2.9-20.el8.x86_64
selinux-policy-doc-3.14.3-106.el8.noarch
selinux-policy-targeted-3.14.3-106.el8.noarch
checkpolicy-2.9-1.el8.x86_64
selinux-policy-devel-3.14.3-106.el8.noarch
Thank you for reporting the issue, but this is actually the intended behavior. setroubleshootd is started when a new AVC appears, only runs as long as there are AVCs to be analyzed and shuts itself down after it is done processing (using SIGALRM). The only reason we introduced the service file is so that it is easier for users to configure resource limits.
Are you experiencing any issues with functionality of setroubleshoot?
For checking the health of systems I use "systemctl list-units --state=failed --no-legend --plain" and after the update the monitoring infra started alerting this morning because the mentioned service had failed ... So, I would expect a "clean" exit code when the intended behavior is to shut itself down?
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (setroubleshoot bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2022:7642