Bug 953882 - SELinux is preventing /usr/bin/pulseaudio from 'getattr' accesses on the directory /sys/fs/cgroup.
Summary: SELinux is preventing /usr/bin/pulseaudio from 'getattr' accesses on the dire...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cb36e0d072c0c6a71c61862c1e7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-19 12:18 UTC by Tim Wegener
Modified: 2013-04-27 23:53 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-27 23:53:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim Wegener 2013-04-19 12:18:34 UTC
Description of problem:
systemctl start mpd
SELinux is preventing /usr/bin/pulseaudio from 'getattr' accesses on the directory /sys/fs/cgroup.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that pulseaudio 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 pulseaudio /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:mpd_t:s0
Target Context                system_u:object_r:cgroup_t:s0
Target Objects                /sys/fs/cgroup [ dir ]
Source                        pulseaudio
Source Path                   /usr/bin/pulseaudio
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           pulseaudio-2.1-6.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-86.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.5-201.fc18.x86_64 #1 SMP Thu
                              Mar 28 21:01:19 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-04-19 21:45:56 CST
Last Seen                     2013-04-19 21:45:56 CST
Local ID                      1711d086-40d4-4078-9d75-5c0c3e464c01

Raw Audit Messages
type=AVC msg=audit(1366373756.575:6356): avc:  denied  { getattr } for  pid=12718 comm="pulseaudio" path="/sys/fs/cgroup" dev="tmpfs" ino=8772 scontext=system_u:system_r:mpd_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=dir


type=SYSCALL msg=audit(1366373756.575:6356): arch=x86_64 syscall=lstat success=no exit=EACCES a0=7f671d86cc29 a1=7fff5953ad10 a2=7fff5953ad10 a3=646f6d2f73656c75 items=0 ppid=12717 pid=12718 auid=4294967295 uid=992 gid=990 euid=992 suid=992 fsuid=992 egid=990 sgid=990 fsgid=990 ses=4294967295 tty=(none) comm=pulseaudio exe=/usr/bin/pulseaudio subj=system_u:system_r:mpd_t:s0 key=(null)

Hash: pulseaudio,mpd_t,cgroup_t,dir,getattr

audit2allow

#============= mpd_t ==============
allow mpd_t cgroup_t:dir getattr;

audit2allow -R
require {
	type mpd_t;
}

#============= mpd_t ==============
fs_search_cgroup_dirs(mpd_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.5-201.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-04-19 15:06:01 UTC
d8b18a9446d62e0a009934a45e852656f5611496 allows this in git.

You can safely ignore this for now.

Comment 2 Miroslav Grepl 2013-04-23 06:48:52 UTC
Back ported.

commit 886c621a7e60b8ce23bfcbb2969e3a1224ea51af
Author: Dan Walsh <dwalsh>
Date:   Fri Apr 19 11:05:28 2013 -0400

    Allow mpd getattr on file system directories

Comment 3 Fedora Update System 2013-04-26 13:05:44 UTC
selinux-policy-3.11.1-92.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-92.fc18

Comment 4 Fedora Update System 2013-04-27 00:16:17 UTC
Package selinux-policy-3.11.1-92.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-92.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-6769/selinux-policy-3.11.1-92.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-04-27 23:53:07 UTC
selinux-policy-3.11.1-92.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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