Bug 682471

Summary: SELinux is preventing /usr/libexec/gconfd-2 from 'connectto' accesses on the unix_stream_socket /tmp/pulse-yar33MDQLoPm/native.
Product: [Fedora] Fedora Reporter: Miroslav Grepl <mgrepl>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:913adf61363a0a2ff6e51cb7bb1a48ed19619868cd9a2e12a4602dd529c237fe
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-05 20:35:30 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 Miroslav Grepl 2011-03-05 20:30:18 UTC
SELinux is preventing /usr/libexec/gconfd-2 from 'connectto' accesses on the unix_stream_socket /tmp/pulse-yar33MDQLoPm/native.

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

If you believe that gconfd-2 should be allowed connectto access on the native unix_stream_socket 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 gconfd-2 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                staff_u:staff_r:staff_t:s0-s0:c0.c1023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                /tmp/pulse-yar33MDQLoPm/native [
                              unix_stream_socket ]
Source                        gconfd-2
Source Path                   /usr/libexec/gconfd-2
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnome-settings-daemon-2.91.90-4.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.15-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38-0.rc5.git1.1.fc15.x86_64 #1
                              SMP Thu Feb 17 01:49:02 UTC 2011 x86_64 x86_64
Alert Count                   29
First Seen                    Sat 05 Mar 2011 08:43:19 PM CET
Last Seen                     Sat 05 Mar 2011 09:16:34 PM CET
Local ID                      5879f602-007e-48c8-afa1-b3f638825f2e

Raw Audit Messages
type=AVC msg=audit(1299356194.200:658): avc:  denied  { connectto } for  pid=32156 comm="gnome-settings-" path="/tmp/pulse-yar33MDQLoPm/native" scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_stream_socket


type=SYSCALL msg=audit(1299356194.200:658): arch=x86_64 syscall=connect success=yes exit=0 a0=22 a1=7fffdefc21b0 a2=6e a3=7fffdefc20fc items=1 ppid=27759 pid=32156 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=27 comm=gnome-settings- exe=/usr/libexec/gnome-settings-daemon subj=staff_u:staff_r:staff_t:s0-s0:c0.c1023 key=(null)

type=PATH msg=audit(1299356194.200:658): item=0 name=(null) inode=525603 dev=fd:01 mode=0140777 ouid=500 ogid=500 rdev=00:00 obj=unconfined_u:object_r:user_tmp_t:s0

Hash: gconfd-2,staff_t,unconfined_t,unix_stream_socket,connectto

audit2allow

#============= staff_t ==============
allow staff_t unconfined_t:unix_stream_socket connectto;

audit2allow -R

#============= staff_t ==============
allow staff_t unconfined_t:unix_stream_socket connectto;

Comment 1 Miroslav Grepl 2011-03-05 20:35:30 UTC
The note:

This happens during switching an user from unconfined to staff SELinux user.