Bug 1381301
Summary: | /var/run/pcp should be owned by the component | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Milos Malik <mmalik> |
Component: | pcp | Assignee: | Nathan Scott <nathans> |
Status: | CLOSED ERRATA | QA Contact: | Michal Kolar <mkolar> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | brolley, fche, jzarsky, lberk, mbenitez, mgoodwin, mkolar, mprchlik, nathans, qe-baseos-tools-bugs |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | pcp-3.11.8-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1381296 | Environment: | |
Last Closed: | 2017-08-01 18:29:33 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
Milos Malik
2016-10-03 15:49:20 UTC
The situation changed a bit since the bug was filed: # rpm -qa pcp\* pcp-3.11.8-3.el7.x86_64 pcp-conf-3.11.8-3.el7.x86_64 pcp-libs-3.11.8-3.el7.x86_64 pcp-selinux-3.11.8-3.el7.x86_64 # rpm -qf /var/run/pcp pcp-3.11.8-3.el7.x86_64 # The /var/run/pcp directory does not exist after installation of above-mentioned packages. After the start of pmcd or pmproxy or pmwebd service the /var/run/pcp directory is present, but it is labeled incorrectly: # ls -dZ /var/run/pcp drwxrwxr-x. pcp pcp system_u:object_r:var_run_t:s0 /var/run/pcp # If the directory was created during the pcp* packages installation, it would be labeled correctly by yum or rpm. | The /var/run/pcp directory does not exist after installation of | above-mentioned packages. FWLIW, I just did a rpm erase, rm -fr /var/run/pcp, and fresh rpm install and that directory *does* exist. Bizarre. It must be tempfs related somehow. No matter - Lukas has come up with another way to fix this ... we'll want to backport his recent commit: commit fb56481639ff5b73792a20d34dff3ac4e191a907 Author: Lukas Berk <lberk> Date: Thu Apr 6 15:36:18 2017 -0400 RHBZ: 1381301 restore context to pcp_var_run_t after pmcd start pmcd makes /var/run/pcp on the fly, which, gives /var/run/pcp var_run_t context (despite the default policy being pcp_var_rum_t). If the command exists, just run restorecon on the directory after we make it. Reproduced against pcp-3.11.3-4.el7 and verified against pcp-3.11.8-4.el7. 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://access.redhat.com/errata/RHEA-2017:1968 |