Bug 749886

Summary: SELinux is preventing /bin/systemctl from 'getattr' accesses on the file /sys/fs/cgroup/systemd/system/chronyd.service/cgroup.procs.
Product: [Fedora] Fedora Reporter: François Kooman <fkooman>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:47312f600fbdd254952b24a83f12ea8b346a0d67948eaecc5094f3c8b9b5be50
Fixed In Version: selinux-policy-3.10.0-55.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-10 17:30:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description François Kooman 2011-10-28 19:17:30 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-1.fc16.x86_64
reason:         SELinux is preventing /bin/systemctl from 'getattr' accesses on the file /sys/fs/cgroup/systemd/system/chronyd.service/cgroup.procs.
time:           Fri Oct 28 21:17:16 2011

description:
:SELinux is preventing /bin/systemctl from 'getattr' accesses on the file /sys/fs/cgroup/systemd/system/chronyd.service/cgroup.procs.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that systemctl should be allowed getattr access on the cgroup.procs file by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep systemctl /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:gnomeclock_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:cgroup_t:s0
:Target Objects                /sys/fs/cgroup/systemd/system/chronyd.service/cgro
:                              up.procs [ file ]
:Source                        systemctl
:Source Path                   /bin/systemctl
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           systemd-units-37-2.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-46.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-1.fc16.x86_64 #1 SMP Mon Oct 24
:                              12:18:13 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Fri 28 Oct 2011 09:16:29 PM CEST
:Last Seen                     Fri 28 Oct 2011 09:16:29 PM CEST
:Local ID                      c3973901-7c0d-475b-b45f-56becb835a33
:
:Raw Audit Messages
:type=AVC msg=audit(1319829389.574:205): avc:  denied  { getattr } for  pid=10513 comm="systemctl" path="/sys/fs/cgroup/systemd/system/chronyd.service/cgroup.procs" dev=cgroup ino=15663 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cgroup_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1319829389.574:205): arch=x86_64 syscall=fstat success=yes exit=0 a0=5 a1=7ffff7b5fe50 a2=7ffff7b5fe50 a3=68632f6d65747379 items=0 ppid=10511 pid=10513 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemctl exe=/bin/systemctl subj=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 key=(null)
:
:Hash: systemctl,gnomeclock_t,cgroup_t,file,getattr
:
:audit2allow
:
:#============= gnomeclock_t ==============
:allow gnomeclock_t cgroup_t:file getattr;
:
:audit2allow -R
:
:#============= gnomeclock_t ==============
:allow gnomeclock_t cgroup_t:file getattr;
:

Comment 1 Daniel Walsh 2011-10-28 20:33:29 UTC
Fixed in selinux-policy-3.10.0-52.fc16.noarch

Comment 2 Fedora Update System 2011-11-08 14:05:47 UTC
selinux-policy-3.10.0-55.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-55.fc16

Comment 3 Fedora Update System 2011-11-10 17:30:23 UTC
selinux-policy-3.10.0-55.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.