Bug 1648864
Summary: | SELinux is preventing (vnstatd) from 'mounton' accesses on the directory /run/systemd/unit-root/var/lib/vnstat. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Christian Kujau <redhat> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 29 | CC: | carl, daniel.arena, dwalsh, fedora, gustavo, lvrabec, mmalik, plautrba |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | abrt_hash:be2798cce8a0430045b1e55e5c43d151bc0c5a8388b61cef2044265ce739181d;VARIANT_ID=workstation; | ||
Fixed In Version: | selinux-policy-3.14.2-44.fc29 selinux-policy-3.14.2-64.fc29 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-18 01:56:34 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Christian Kujau
2018-11-12 10:34:26 UTC
---- type=PROCTITLE msg=audit(11/13/2018 11:37:38.153:766) : proctitle=(vnstatd) type=PATH msg=audit(11/13/2018 11:37:38.153:766) : item=0 name=/run/systemd/unit-root/var/lib/vnstat inode=18618693 dev=fc:02 mode=dir,755 ouid=vnstat ogid=vnstat rdev=00:00 obj=system_u:object_r:vnstatd_var_lib_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 type=CWD msg=audit(11/13/2018 11:37:38.153:766) : cwd=/ type=SYSCALL msg=audit(11/13/2018 11:37:38.153:766) : arch=x86_64 syscall=mount success=no exit=EACCES(Permission denied) a0=0x56112d8797f0 a1=0x56112d8401d0 a2=0x0 a3=MS_BIND|MS_REC items=1 ppid=1 pid=1874 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=(vnstatd) exe=/usr/lib/systemd/systemd subj=system_u:system_r:init_t:s0 key=(null) type=AVC msg=audit(11/13/2018 11:37:38.153:766) : avc: denied { mounton } for pid=1874 comm=(vnstatd) path=/run/systemd/unit-root/var/lib/vnstat dev="vda2" ino=18618693 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:vnstatd_var_lib_t:s0 tclass=dir permissive=0 ---- This is still present with selinux-policy-3.14.2-44.fc29 installed. Forced a SELinux relabel run and subsequent reboot, but upon login to Gnome, the SE alert pops up again. vnstatd is running though and appears to be counting packets, only this SE alert keeps popping up (once after a reboot). SELinux is preventing (vnstatd) from mounton access on the directory /run/systemd/unit-root/var/lib/vnstat. .... Additional Information: Source Context system_u:system_r:init_t:s0 Target Context system_u:object_r:vnstatd_var_lib_t:s0 Target Objects /run/systemd/unit-root/var/lib/vnstat [ dir ] Source (vnstatd) Source Path (vnstatd) Port <Unknown> Host horus Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.14.2-44.fc29.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name horus Platform Linux horus 4.19.10-300.fc29.x86_64 #1 SMP Mon Dec 17 15:34:44 UTC 2018 x86_64 x86_64 Alert Count 3 First Seen 2018-12-14 15:04:34 PST Last Seen 2019-01-01 13:07:34 PST Local ID 81f91594-c286-432f-bbb6-713a54087c75 Raw Audit Messages type=AVC msg=audit(1546376854.213:137): avc: denied { mounton } for pid=1004 comm="(vnstatd)" path="/run/systemd/unit-root/var/lib/vnstat" dev="nvme0n1p6" ino=537650597 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:vnstatd_var_lib_t:s0 tclass=dir permissive=0 Hash: (vnstatd),init_t,vnstatd_var_lib_t,dir,mounton *** Bug 1705474 has been marked as a duplicate of this bug. *** This is now preventing vnstat.service from starting in Fedora 30. some more logs: Jun 14 11:06:13 localhost.localdomain systemd[1]: Started vnStat network traffic monitor. Jun 14 11:06:13 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=vnstat comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=suc> Jun 14 11:06:13 localhost.localdomain audit[20092]: AVC avc: denied { mounton } for pid=20092 comm="(vnstatd)" path="/run/systemd/unit-root/var/lib/vnstat" dev="dm-0" ino=124196 scontext=system_u:system_r:init_t:s0 tcontext=system_u:o> Jun 14 11:06:13 localhost.localdomain audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=vnstat comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=fail> Jun 14 11:06:13 localhost.localdomain systemd[20092]: vnstat.service: Failed to set up mount namespacing: Permission denied Jun 14 11:06:13 localhost.localdomain systemd[20092]: vnstat.service: Failed at step NAMESPACE spawning /usr/sbin/vnstatd: Permission denied Jun 14 11:06:13 localhost.localdomain systemd[1]: vnstat.service: Main process exited, code=exited, status=226/NAMESPACE Jun 14 11:06:13 localhost.localdomain systemd[1]: vnstat.service: Failed with result 'exit-code'. Jun 14 11:06:13 localhost.localdomain systemd[1]: vnstat.service: Service RestartSec=100ms expired, scheduling restart. Jun 14 11:06:13 localhost.localdomain systemd[1]: vnstat.service: Scheduled restart job, restart counter is at 1. Jun 14 11:06:13 localhost.localdomain systemd[1]: Stopped vnStat network traffic monitor. commit 2f9692d829113985c576641ec0dd5192340e5645 (HEAD -> rawhide) Author: Lukas Vrabec <lvrabec> Date: Mon Jun 17 22:32:16 2019 +0200 Add vnstatd_var_lib_t to mountpoint attribute BZ(1648864) FEDORA-2019-096a80ef39 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-096a80ef39 selinux-policy-3.14.3-39.fc30 fixes it for Fedora 30. selinux-policy-3.14.2-61.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-096a80ef39 FEDORA-2019-2eec328cc1 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-2eec328cc1 selinux-policy-3.14.2-62.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-2eec328cc1 FEDORA-2019-8071724c9b has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-8071724c9b selinux-policy-3.14.2-63.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-8071724c9b FEDORA-2019-b51794f502 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b51794f502 selinux-policy-3.14.2-64.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b51794f502 selinux-policy-3.14.2-64.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report. |