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 2079276

Summary: Update to selinux-3.4
Product: Red Hat Enterprise Linux 9 Reporter: Petr Lautrbach <plautrba>
Component: libsepolAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact: Jan Fiala <jafiala>
Priority: high    
Version: 9.1CC: gfialova, hubert.quarantel, lvrabec, mjahoda, mmalik, omosnace, pkis, plautrba, vmojzis, zpytela
Target Milestone: rcKeywords: Triaged
Target Release: 9.1Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libsepol-3.4-1.1.el9 Doc Type: Enhancement
Doc Text:
.SELinux user-space packages updated SELinux user-space packages `libsepol`, `libselinux`, `libsemanage`, `policycoreutils`, `checkpolicy`, and `mcstrans` were updated to the latest upstream release 3.4. The most notable changes are: * Added support for parallel relabeling through the `-T` option in the `setfiles`, `restorecon`, and `fixfiles` tools. ** You can either specify the number of process threads in this option or use `-T 0` for using the maximum of available processor cores. This reduces the time required for relabeling significantly. * Added the new `--checksum` option, which prints SHA-256 hashes of modules. * Added new policy utilities in the `libsepol-utils` package.
Story Points: ---
Clone Of:
: 2079283 2079290 (view as bug list) Environment:
Last Closed: 2022-11-15 11:19:08 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: 2079283, 2079285, 2079286, 2079287, 2079288, 2079290    

Description Petr Lautrbach 2022-04-27 10:17:49 UTC
Description of problem:

selinux-3.4-rc2 was released on 2022-04-20, 3.4-rc3 will be release on 2022-05-04   and if everything goes well, 3.4 will be release soon after that.

3.4 release contains improvements already shipped in RHEL 9 and also a lot of code quality improvements see https://github.com/SELinuxProject/selinux/releases

Comment 1 Petr Lautrbach 2022-04-27 11:08:08 UTC
libsepol in 3.4 contains new utilities - for details see https://github.com/SELinuxProject/selinux/commit/fed78faaa375297ed6ab2fa772e5a5f643d9553e

These utilitis will be part of new  libsepol-utils subpackage

Comment 5 Ondrej Mosnacek 2022-06-09 13:01:11 UTC
*** Bug 2069718 has been marked as a duplicate of this bug. ***

Comment 16 Hubert Quarantel-Colombani 2022-10-19 13:19:05 UTC
Beware !

Versions 3.4 of libsepol prior to commit https://github.com/SELinuxProject/selinux/commit/88a703399f3f44be2502fd4ecd22ac3d3c560694 of June 15th (2022) will have a serious problem with SELinux policy modules containing SEuser definitions.

Such policy modules will be rejected with error messages like:
  libsepol.validate_user_datum: Invalid user datum
  libsepol.validate_datum_array_entries: Invalid datum array entries
  libsepol.validate_policydb: Invalid policydb

The source code of such modules will compile successfully at the `checkmodule` stage but will fail at the `semodule_package` stage.

Comment 18 errata-xmlrpc 2022-11-15 11:19:08 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 (libsepol 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:8337