Bug 824224 - SELinux is preventing /sbin/rsyslogd from 'getattr' accesses on the directory /sys/fs/cgroup.
Summary: SELinux is preventing /sbin/rsyslogd from 'getattr' accesses on the directory...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f8b9af83e1d672c06ef077c77b7...
: 824221 824223 824225 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-23 02:56 UTC by al morris
Modified: 2012-06-15 05:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-23 08:54:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description al morris 2012-05-23 02:56:57 UTC
libreport version: 2.0.8
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.6-3.fc16.x86_64
reason:         SELinux is preventing /sbin/rsyslogd from 'getattr' accesses on the directory /sys/fs/cgroup.
time:           Tue 22 May 2012 09:56:41 PM CDT

description:
:SELinux is preventing /sbin/rsyslogd from 'getattr' accesses on the directory /sys/fs/cgroup.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that rsyslogd should be allowed getattr access on the cgroup directory 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 rsyslogd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:syslogd_t:s0
:Target Context                system_u:object_r:cgroup_t:s0
:Target Objects                /sys/fs/cgroup [ dir ]
:Source                        rsyslogd
:Source Path                   /sbin/rsyslogd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           rsyslog-5.8.10-1.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-86.fc16.noarch
:Selinux Enabled               True
:Policy Type                   minimum
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.6-3.fc16.x86_64 #1 SMP Wed May 16
:                              21:43:01 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Wed 23 May 2012 02:20:26 AM CDT
:Last Seen                     Wed 23 May 2012 02:20:26 AM CDT
:Local ID                      b4d70758-2f2c-4603-82a0-1e49c00c1f08
:
:Raw Audit Messages
:type=AVC msg=audit(1337757626.481:40): avc:  denied  { getattr } for  pid=1202 comm="rsyslogd" path="/sys/fs/cgroup" dev="tmpfs" ino=14389 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1337757626.481:40): arch=x86_64 syscall=lstat success=yes exit=0 a0=7f2223de36ad a1=7fffeebc7460 a2=7fffeebc7460 a3=9 items=0 ppid=1 pid=1202 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rsyslogd exe=/sbin/rsyslogd subj=system_u:system_r:syslogd_t:s0 key=(null)
:
:Hash: rsyslogd,syslogd_t,cgroup_t,dir,getattr
:
:audit2allow
:
:#============= syslogd_t ==============
:#!!!! This avc can be allowed using the boolean 'init_systemd'
:
:allow syslogd_t cgroup_t:dir getattr;
:
:audit2allow -R
:
:#============= syslogd_t ==============
:#!!!! This avc can be allowed using the boolean 'init_systemd'
:
:allow syslogd_t cgroup_t:dir getattr;
:

Comment 1 Miroslav Grepl 2012-05-23 08:52:49 UTC
*** Bug 824225 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2012-05-23 08:52:53 UTC
*** Bug 824223 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2012-05-23 08:54:59 UTC
Did you turn off the 'init_systemd' boolean?

setsebool -P init_systemd 1

Comment 4 Miroslav Grepl 2012-05-23 14:29:35 UTC
*** Bug 824221 has been marked as a duplicate of this bug. ***

Comment 5 al morris 2012-06-15 05:07:35 UTC
Sorry about my lack of understanding of selinux.

It comes down to:
When it really was acting up in past versions I just cut it off 
When selinux runs smoothly I don't get too much practice figuring it out.

Fedora 16 selinux got by well enough that I let it run and started trying
to figure it out. 

Now on Fedora 17 and it hasn't really acted up at all as far as I can tell.
Maybe killed a couple of programs but not like it used to.

Thanks for you attention, I really like Fedora 17...

adios,
@


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