Bug 665428 - SELinux is preventing /usr/bin/mpd from 'read' accesses on the lnk_file swen.
Summary: SELinux is preventing /usr/bin/mpd from 'read' accesses on the lnk_file swen.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:fa5156ea09c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-23 18:48 UTC by swen.weinhold
Modified: 2011-01-17 20:51 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.7-20.fc14
Clone Of:
Environment:
Last Closed: 2011-01-17 20:51:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description swen.weinhold 2010-12-23 18:48:20 UTC
SELinux is preventing /usr/bin/mpd from 'read' accesses on the lnk_file swen.

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

If you believe that mpd should be allowed read access on the swen lnk_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 /usr/bin/mpd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:mpd_t:s0
Target Context                unconfined_u:object_r:mpd_data_t:s0
Target Objects                swen [ lnk_file ]
Source                        mpd
Source Path                   /usr/bin/mpd
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           mpd-0.15.12-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-18.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-72.fc14.x86_64 #1 SMP Mon
                              Dec 20 21:14:22 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Do 23 Dez 2010 17:44:53 CET
Last Seen                     Do 23 Dez 2010 17:44:53 CET
Local ID                      ab366022-2e39-4dee-aaa3-a066a404ea02

Raw Audit Messages
type=AVC msg=audit(1293122693.309:29185): avc:  denied  { read } for  pid=4970 comm="mpd" name="swen" dev=sda2 ino=263435 scontext=unconfined_u:system_r:mpd_t:s0 tcontext=unconfined_u:object_r:mpd_data_t:s0 tclass=lnk_file

mpd,mpd_t,mpd_data_t,lnk_file,read
type=SYSCALL msg=audit(1293122693.309:29185): arch=x86_64 syscall=readlink success=yes exit=EEXIST a0=7f4a64009130 a1=7f4a70fe1af0 a2=1000 a3=7f4a70fe1860 items=0 ppid=1 pid=4970 auid=500 uid=492 gid=488 euid=492 suid=492 fsuid=492 egid=488 sgid=488 fsgid=488 tty=(none) ses=2 comm=mpd exe=/usr/bin/mpd subj=unconfined_u:system_r:mpd_t:s0 key=(null)
mpd,mpd_t,mpd_data_t,lnk_file,read

#============= mpd_t ==============
allow mpd_t mpd_data_t:lnk_file read;

Comment 1 Daniel Walsh 2010-12-23 19:21:57 UTC
Miroslav, just add

manage_lnk_files_pattern(mpd_t, mpd_data_t, mpd_data_t)

Comment 2 Miroslav Grepl 2011-01-03 08:01:47 UTC
Fixed in selinux-policy-3.9.7-20.fc14

Comment 3 Fedora Update System 2011-01-04 18:00:40 UTC
selinux-policy-3.9.7-20.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-20.fc14

Comment 4 Fedora Update System 2011-01-05 21:21:23 UTC
selinux-policy-3.9.7-20.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-20.fc14

Comment 5 Fedora Update System 2011-01-17 20:50:53 UTC
selinux-policy-3.9.7-20.fc14 has been pushed to the Fedora 14 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.