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.

Bug 2121127

Summary: setroubleshoot Service does not start after OS update
Product: Red Hat Enterprise Linux 8 Reporter: thomas.herz
Component: setroubleshootAssignee: Vit Mojzis <vmojzis>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, jwboyer, lvrabec, mmalik, plautrba, vmojzis
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-26 09:56:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description thomas.herz 2022-08-24 14:33:39 UTC
Description of problem:
Service does not start after OS update

Version-Release number of selected component (if applicable):
Name         : setroubleshoot
Version      : 3.3.26
Release      : 4.el8
Architecture : x86_64


How reproducible:



Steps to Reproduce:
1. systemctl start setroubleshootd
2. systemctl status setroubleshootd
3.

Actual results:
Aug 24 16:16:33 localhost.localdomain systemd[1]: Starting SETroubleshoot daemon for processing new SELinux denial logs...
Aug 24 16:16:33 localhost.localdomain systemd[1]: Started SETroubleshoot daemon for processing new SELinux denial logs.
Aug 24 16:16:34 localhost.localdomain setroubleshootd[32391]: libsepol.context_from_record: type NetworkManager_dispatcher_t is not defined
Aug 24 16:16:34 localhost.localdomain setroubleshootd[32391]: libsepol.context_from_record: could not create context structure
Aug 24 16:16:34 localhost.localdomain setroubleshootd[32391]: libsepol.context_from_string: could not create context structure
Aug 24 16:16:34 localhost.localdomain setroubleshootd[32391]: libsepol.sepol_context_to_sid: could not convert system_u:system_r:NetworkManager_dispatcher_t:s0 to sid
Aug 24 16:16:44 localhost.localdomain systemd[1]: setroubleshootd.service: Main process exited, code=killed, status=14/ALRM
Aug 24 16:16:44 localhost.localdomain systemd[1]: setroubleshootd.service: Failed with result 'signal'.

And Service is not running

Expected results:

Service is running without errors

Additional info:

Comment 1 Milos Malik 2022-08-24 15:52:25 UTC
I believe this BZ is a duplicate of BZ#2119001.

I also believe that the libsepol.* error messages are not the cause of setroubleshootd service end state.

The setroubleshootd service ends 10 seconds after the last SELinux denial appeared which matches the 10 second timeout implemented in the setroubleshootd code.

Comment 2 thomas.herz 2022-08-24 16:43:04 UTC
you right, it is as duplicate of BZ#2119001.

Comment 3 Vit Mojzis 2022-08-26 09:56:35 UTC

*** This bug has been marked as a duplicate of bug 2119001 ***