Bug 1379371
| Summary: | AVCs when restarting pmlogger | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jan Zarsky <jzarsky> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED ERRATA | QA Contact: | Jan Zarsky <jzarsky> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.4 | CC: | ccheney, lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.13.1-137 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-01 15:15:11 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1420851 | ||
# rpm -qa selinux\*
selinux-policy-targeted-3.13.1-101.el7.noarch
selinux-policy-3.13.1-101.el7.noarch
#
----
type=USER_AVC msg=audit(09/27/2016 13:57:43.245:271) : pid=1 uid=root auid=unset ses=unset subj=system_u:system_r:init_t:s0 msg='avc: denied { status } for auid=root uid=root gid=root cmdline="systemctl is-enabled pmlogger.service" scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=system exe=/usr/lib/systemd/systemd sauid=root hostname=? addr=? terminal=?'
----
type=USER_AVC msg=audit(09/27/2016 13:57:43.247:272) : pid=1 uid=root auid=unset ses=unset subj=system_u:system_r:init_t:s0 msg='avc: denied { status } for auid=root uid=root gid=root cmdline="systemctl -q is-enabled pmlogger.service" scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=system exe=/usr/lib/systemd/systemd sauid=root hostname=? addr=? terminal=?'
----
type=SYSCALL msg=audit(09/27/2016 13:57:52.902:277) : arch=x86_64 syscall=connect success=no exit=EACCES(Permission denied) a0=0x3 a1=0x7f05a7786740 a2=0x6e a3=0x44 items=0 ppid=1632 pid=5682 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=logger exe=/usr/bin/logger subj=system_u:system_r:pcp_pmlogger_t:s0 key=(null)
type=AVC msg=audit(09/27/2016 13:57:52.902:277) : avc: denied { write } for pid=5682 comm=logger name=log dev="devtmpfs" ino=6846 scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:object_r:devlog_t:s0 tclass=sock_file
----
type=SYSCALL msg=audit(09/27/2016 14:02:11.458:301) : arch=x86_64 syscall=kill success=no exit=EACCES(Permission denied) a0=0x29d3 a1=SIGTERM a2=0x0 a3=0x7ffe74ef3d90 items=0 ppid=10784 pid=10832 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=pmsignal exe=/usr/bin/bash subj=system_u:system_r:pcp_pmlogger_t:s0 key=(null)
type=AVC msg=audit(09/27/2016 14:02:11.458:301) : avc: denied { signal } for pid=10832 comm=pmsignal scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process
----
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/RHBA-2017:1861 |
Description of problem: When restarting pmlogger service, there are AVCs, but everything seems to work. Version-Release number of selected component (if applicable): selinux-policy-3.13.1-100.el7.noarch pcp-3.11.3-4.el7.x86_64 Steps to Reproduce: 1. # yum install pcp 2. # systemctl start pmcd pmlogger 3. # systemctl restart pmlogger Actual results: # ausearch -m avc ---- time->Mon Sep 26 09:34:55 2016 type=SYSCALL msg=audit(1474896895.884:307): arch=c000003e syscall=62 success=no exit=-1 a0=69ab a1=f a2=0 a3=7ffe6cba8b50 items=0 ppid=27103 pid=27126 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="pmsignal" exe="/usr/bin/bash" subj=system_u:system_r:pcp_pmlogger_t:s0 key=(null) type=AVC msg=audit(1474896895.884:307): avc: denied { kill } for pid=27126 comm="pmsignal" capability=5 scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:system_r:pcp_pmlogger_t:s0 tclass=capability Expected results: no AVCs Additional info: When I run '/usr/share/pcp/lib/pmlogger' manually, there are no AVCs: # cat /usr/lib/systemd/system/pmlogger.service ... [Service] Type=oneshot ExecStart=/usr/share/pcp/lib/pmlogger start ExecStop=/usr/share/pcp/lib/pmlogger stop RemainAfterExit=yes ... # /usr/share/pcp/lib/pmlogger start # /usr/share/pcp/lib/pmlogger stop # ausearch -m avc <no matches>