Bug 1812051

Summary: RFE: collect content of /var/lib/selinux on RHEL 8
Product: Red Hat Enterprise Linux 8 Reporter: Renaud Métrich <rmetrich>
Component: sosAssignee: Pavel Moravec <pmoravec>
Status: CLOSED ERRATA QA Contact: Miroslav Hradílek <mhradile>
Severity: high Docs Contact:
Priority: high    
Version: 8.1CC: agk, bmr, mhradile, plambri, sbradley
Target Milestone: rcKeywords: FutureFeature, OtherQA, ZStream
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sos-3.9.1-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1861710 1903159 (view as bug list) Environment:
Last Closed: 2020-11-04 01:57:52 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:
Bug Depends On:    
Bug Blocks: 1861710, 1903159    

Description Renaud Métrich 2020-03-10 12:44:20 UTC
Description of problem:

On RHEL 8, modules and contexts are not in /etc/selinux/ directory anymore, but in /var/lib/selinux/ directory.


Version-Release number of selected component (if applicable):

sos-3.7-5.el8.noarch and Upstream


Additional info:

See PR https://github.com/sosreport/sos/pull/1976

Comment 1 Pavel Moravec 2020-04-19 14:18:58 UTC
Thanks for the PR, should be in 8.3.

Comment 3 Pavel Moravec 2020-05-27 09:04:59 UTC
(fyi currently just 25M is being collected, which might be insufficient in some cases; upstream PR 2090 opened for the request to increase it - this wont be quite probably backported to 3.9 - let me know if this is a big concern)

Comment 11 Pavel Moravec 2020-07-29 10:53:28 UTC
Hello,
could you please verify the fix for 8.3 GA candidate, against below build? Thanks in advance.


A yum repository for the build of sos-3.9.1-5.el8 (task 30304452) is available at:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/5.el8/

You can install the rpms locally by putting this .repo file in your /etc/yum.repos.d/ directory:

http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/5.el8/sos-3.9.1-5.el8.repo

RPMs and build logs can be found in the following locations:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/5.el8/noarch/

The full list of available rpms is:
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/5.el8/noarch/sos-3.9.1-5.el8.src.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/5.el8/noarch/sos-audit-3.9.1-5.el8.noarch.rpm
http://brew-task-repos.usersys.redhat.com/repos/official/sos/3.9.1/5.el8/noarch/sos-3.9.1-5.el8.noarch.rpm

The repository will be available for the next 60 days. Scratch build output will be deleted
earlier, based on the Brew scratch build retention policy.

Comment 13 Renaud Métrich 2020-07-29 11:24:17 UTC
I can confirm the new sosreport contains all we need:
- /etc/selinux/<policy>
- /var/lib/selinux/<policy>

Thanks!

Comment 18 errata-xmlrpc 2020-11-04 01:57:52 UTC
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 (sos 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/RHEA-2020:4534