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 1911962 - Invalid context in database for init scripts "cpuplugd" and "svnserve" and some more
Summary: Invalid context in database for init scripts "cpuplugd" and "svnserve" and so...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.3
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: 8.0
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-02 08:41 UTC by Renaud Métrich
Modified: 2024-03-25 17:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-02 21:08:03 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Renaud Métrich 2021-01-02 08:41:47 UTC
Description of problem:

The context database contains the following entries:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
/etc/rc.d/init.d/cpuplugd                          regular file       system_u:object_r:cpuplug_initrc_exec_t:s0 
/etc/rc.d/init.d/svnserve                          regular file       system_u:object_r:svnserve_initrc_exec_t:s0 
/opt/nfast/sbin/init.d-ncipher                     all files          system_u:object_r:initrc_exec_t:s0 
/opt/nfast/scripts/init.d/(.*)                     all files          system_u:object_r:initrc_exec_t:s0 
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

These are invalid, the dots "." should be espaced by backslash to only match /etc/rc.d/init.d directory.
Additionally for "opt/nfast/scripts", there is no need for the parenthesis.
As shown below:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
/etc/rc\.d/init\.d/cpuplugd                          regular file       system_u:object_r:cpuplug_initrc_exec_t:s0 
/etc/rc\.d/init\.d/svnserve                          regular file       system_u:object_r:svnserve_initrc_exec_t:s0 
/opt/nfast/sbin/init\.d-ncipher                      all files          system_u:object_r:initrc_exec_t:s0 
/opt/nfast/scripts/init\.d/.*                        all files          system_u:object_r:initrc_exec_t:s0 
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------


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

selinux-policy including Upstream

How reproducible:

N/A

Additional info:

I know it's quite cosmetic but it's important to educate customers to write proper context lines when they make customizations, hence it's necessary for us to provide a sane policy database as reference.
Please take the time to verify that no other such "typos" are shipped for other paths as well.

Comment 3 Zdenek Pytela 2021-06-02 21:08:03 UTC
This issue was not selected to be included in Red Hat Enterprise Linux 8 because it is seen either as low or moderate impact to a small number of use cases.

If you want to pursue this issue further, feel free to reopen this bug and attach information regarding severity of the bugzilla.


Note You need to log in before you can comment on or make changes to this bug.