Bug 610852

Summary: SELinux is preventing /usr/bin/mpd "write" access on (null).
Product: [Fedora] Fedora Reporter: Miroslav Grepl <mgrepl>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:773d37ef2218caaadd5b4e04bd54d214882d9cdb580bb181bfdd56d5420f7983
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-02 17:28:54 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 Miroslav Grepl 2010-07-02 15:30:14 UTC
Summary:

SELinux is preventing /usr/bin/mpd "write" access on (null).

Detailed Description:

[mpd has a permissive type (mpd_t). This access was not denied.]

SELinux denied access requested by mpd. It is not expected that this access is
required by mpd and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:mpd_t:s0
Target Context                unconfined_u:object_r:user_tmp_t:s0
Target Objects                (null) [ sock_file ]
Source                        mpd
Source Path                   /usr/bin/mpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mpd-0.15.8-1.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-33.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.5-112.fc13.x86_64 #1 SMP
                              Thu May 27 02:28:31 UTC 2010 x86_64 x86_64
Alert Count                   6
First Seen                    Thu 01 Jul 2010 07:29:10 PM CEST
Last Seen                     Thu 01 Jul 2010 08:55:48 PM CEST
Local ID                      c14c9eb7-9ac8-4662-a83a-c6965d2f79d4
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1278010548.361:44532): avc:  denied  { write } for  pid=14861 comm="mpd" name="native" dev=dm-0 ino=2097418 scontext=unconfined_u:system_r:mpd_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=sock_file

node=(removed) type=AVC msg=audit(1278010548.361:44532): avc:  denied  { connectto } for  pid=14861 comm="mpd" path="/tmp/pulse-ewjtwijpmiph/native" scontext=unconfined_u:system_r:mpd_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_stream_socket

node=(removed) type=SYSCALL msg=audit(1278010548.361:44532): arch=c000003e syscall=42 success=yes exit=68719476864 a0=c a1=7f5b77ffea10 a2=6e a3=7f5b77ffe95c items=1 ppid=1 pid=14861 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="mpd" exe="/usr/bin/mpd" subj=unconfined_u:system_r:mpd_t:s0 key=(null)

node=(removed) type=PATH msg=audit(1278010548.361:44532): item=0 name=(null) inode=2097418 dev=fd:00 mode=0140777 ouid=500 ogid=500 rdev=00:00 obj=unconfined_u:object_r:user_tmp_t:s0



Hash String generated from  catchall,mpd,mpd_t,user_tmp_t,sock_file,write
audit2allow suggests:

#============= mpd_t ==============
allow mpd_t unconfined_t:unix_stream_socket connectto;
allow mpd_t user_tmp_t:sock_file write;

Comment 1 Miroslav Grepl 2010-07-02 17:28:54 UTC

*** This bug has been marked as a duplicate of bug 604952 ***