Bug 999293 - PCP mislabels newly created log files
Summary: PCP mislabels newly created log files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: pcp
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nathan Scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1065327
TreeView+ depends on / blocked
 
Reported: 2013-08-21 06:05 UTC by Marko Myllynen
Modified: 2015-10-09 09:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1065327 (view as bug list)
Environment:
Last Closed: 2015-10-09 09:21:48 UTC
Type: Bug


Attachments (Terms of Use)

Description Marko Myllynen 2013-08-21 06:05:53 UTC
Description of problem:
After installing PCP on a new system, enabling all PCP services, and letting them run a while, the newly created log files have been mislabeled:

localhost:~# restorecon -v -R /var
restorecon reset /var/log/pcp/pmlogger/localhost/20130821.00.10.meta context system_u:object_r:cron_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/pcp/pmlogger/localhost/20130821.00.10.index context system_u:object_r:cron_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/pcp/pmlogger/localhost/20130820.index context system_u:object_r:cron_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/pcp/pmlogger/localhost/20130820.0 context system_u:object_r:cron_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/pcp/pmlogger/localhost/20130821.00.10.0 context system_u:object_r:cron_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/pcp/pmlogger/localhost/pmlogger.log.prior context system_u:object_r:cron_log_t:s0->system_u:object_r:var_log_t:s0
restorecon reset /var/log/pcp/pmlogger/localhost/20130820.meta context system_u:object_r:cron_log_t:s0->system_u:object_r:var_log_t:s0
localhost:~# 

Version-Release number of selected component (if applicable):
pcp-3.8.2-1.el6.x86_64
selinux-policy-targeted-3.7.19-195.el6_4.12.noarch

Comment 1 Marko Myllynen 2013-09-10 08:15:23 UTC
Also

restorecon reset /etc/pcp/pmlogger/config.default context system_u:object_r:etc_runtime_t:s0->system_u:object_r:etc_t:s0

Comment 2 Marko Myllynen 2015-10-09 09:21:48 UTC
This seems to be fixed in latest RHEL 6 packages.


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