Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1355644 - SELinux is denying pmlogger open access to config.default
Summary: SELinux is denying pmlogger open access to config.default
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 1420851
TreeView+ depends on / blocked
 
Reported: 2016-07-12 07:16 UTC by Steeve Goveas
Modified: 2017-03-22 22:20 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-22 22:20:10 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Steeve Goveas 2016-07-12 07:16:36 UTC
Description of problem:
SELinux is denying pmlogger open access to config.default

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-83

Actual results:
Observed this in TPS srpmtests

time->Fri Jul  8 09:55:31 2016
type=SYSCALL msg=audit(1467986131.485:201347): arch=c0000015 syscall=5 success=no exit=-13 a0=1000edf0010 a1=0 a2=1b6 a3=0 items=0 ppid=2060 pid=9569 auid=985 uid=985 gid=981 euid=985 suid=985 fsuid=985 egid=981 sgid=981 fsgid=981 tty=(none) ses=8382 comm="pmlogger" exe="/usr/bin/pmlogger" subj=system_u:system_r:pcp_pmlogger_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1467986131.485:201347): avc:  denied  { open } for  pid=9569 comm="pmlogger" path="/var/lib/pcp/config/pmlogger/config.default" dev="dm-1" ino=203360709 scontext=system_u:system_r:pcp_pmlogger_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=file

Expected results:
No avc errors

Comment 1 Milos Malik 2016-07-12 07:22:04 UTC
It's strange that the config.default file is labeled tmp_t, it should have a different label:

# matchpathcon /var/lib/pcp/config/pmlogger/config.default
/var/lib/pcp/config/pmlogger/config.default	system_u:object_r:pcp_var_lib_t:s0
#


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