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 1278777 - invalid filename is used in file context pattern for pegasus configuration file
Summary: invalid filename is used in file context pattern for pegasus configuration file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.2
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-06 11:49 UTC by Milos Malik
Modified: 2016-11-04 02:24 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-68.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1278771
Environment:
Last Closed: 2016-11-04 02:24:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2283 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2016-11-03 13:36:25 UTC

Description Milos Malik 2015-11-06 11:49:34 UTC
+++ This bug was initially created as a clone of Bug #1278771 +++

Description of problem:
# semanage fcontext -l | grep /etc/Pegasus
/etc/Pegasus(/.*)?                                 all files          system_u:object_r:pegasus_conf_t:s0 
/etc/Pegasus/pegasus_current\.conf                 all files          system_u:object_r:pegasus_data_t:s0 
#

But the service does not create / use any file called pegasus_current.conf. The service creates / uses a file called cimserver_current.conf.

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-60.el7.noarch
selinux-policy-devel-3.13.1-60.el7.noarch
selinux-policy-doc-3.13.1-60.el7.noarch
selinux-policy-minimum-3.13.1-60.el7.noarch
selinux-policy-mls-3.13.1-60.el7.noarch
selinux-policy-sandbox-3.13.1-60.el7.noarch
selinux-policy-targeted-3.13.1-60.el7.noarch
tog-pegasus-2.14.1-3.el7.x86_64
tog-pegasus-devel-2.14.1-3.el7.x86_64
tog-pegasus-libs-2.14.1-3.el7.x86_64

How reproducible:
always

Steps to Reproduce:
# service tog-pegasus start
Redirecting to /bin/systemctl start  tog-pegasus.service
# service tog-pegasus status
Redirecting to /bin/systemctl status  tog-pegasus.service
● tog-pegasus.service - OpenPegasus CIM Server
   Loaded: loaded (/usr/lib/systemd/system/tog-pegasus.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2015-11-06 12:03:10 CET; 3s ago
  Process: 21133 ExecStart=/usr/sbin/cimserver (code=exited, status=0/SUCCESS)
  Process: 21128 ExecStartPre=/usr/share/Pegasus/scripts/generate-certs (code=exited, status=0/SUCCESS)
 Main PID: 21137 (cimserver)
   CGroup: /system.slice/tog-pegasus.service
           └─21137 /usr/sbin/cimserver

Nov 06 12:03:10 rhel72.localdomain systemd[1]: Starting OpenPegasus CIM Serv....
Nov 06 12:03:10 rhel72.localdomain systemd[1]: Started OpenPegasus CIM Server.
Hint: Some lines were ellipsized, use -l to show in full.
# service tog-pegasus stop
Redirecting to /bin/systemctl stop  tog-pegasus.service
# restorecon -Rv /etc/Pegasus/
restorecon reset /etc/Pegasus/cimserver_current.conf context system_u:object_r:pegasus_data_t:s0->system_u:object_r:pegasus_conf_t:s0
# restorecon -Rv /etc/Pegasus/
#

Actual results:
 * the file context pattern contains an invalid filename

Expected results:
 * the file context pattern contains a correct filename

Comment 2 Mike McCune 2016-03-28 22:59:28 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 6 errata-xmlrpc 2016-11-04 02:24:23 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, 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://rhn.redhat.com/errata/RHBA-2016-2283.html


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