Bug 703444

Summary: SELinux is preventing /usr/bin/gedit from 'create' accesses on the udp_socket port None.
Product: [Fedora] Fedora Reporter: Hicham HAOUARI <hicham.haouari>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, hicham.haouari, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:10f48020fe4910b03eb995eb34bd95888956bc61b6db51c6329aca3dbb19e992
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-10 11:44: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:

Description Hicham HAOUARI 2011-05-10 10:51:54 UTC
SELinux is preventing /usr/bin/gedit from 'create' accesses on the udp_socket port None.

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

If you believe that gedit should be allowed create access on the port None udp_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 gedit /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:sandbox_t:s0:c729,c816
Target Context                unconfined_u:unconfined_r:sandbox_t:s0:c729,c816
Target Objects                port None [ udp_socket ]
Source                        gedit
Source Path                   /usr/bin/gedit
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gedit-2.30.4-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-31.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.i686
                              #1 SMP Mon Feb 7 07:04:18 UTC 2011 i686 i686
Alert Count                   3
First Seen                    Wed 02 Mar 2011 01:08:08 AM WET
Last Seen                     Wed 02 Mar 2011 01:08:08 AM WET
Local ID                      5ab9de11-ca20-4351-8df8-4fee82c297d9

Raw Audit Messages
type=AVC msg=audit(1299028088.372:22884): avc:  denied  { create } for  pid=29182 comm="gedit" scontext=unconfined_u:unconfined_r:sandbox_t:s0:c729,c816 tcontext=unconfined_u:unconfined_r:sandbox_t:s0:c729,c816 tclass=udp_socket


type=SYSCALL msg=audit(1299028088.372:22884): arch=i386 syscall=socketcall success=no exit=EACCES a0=1 a1=bfc6f358 a2=208ff4 a3=c45be0 items=0 ppid=29181 pid=29182 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts59 ses=1 comm=gedit exe=/usr/bin/gedit subj=unconfined_u:unconfined_r:sandbox_t:s0:c729,c816 key=(null)

Hash: gedit,sandbox_t,sandbox_t,udp_socket,create

audit2allow

#============= sandbox_t ==============
allow sandbox_t self:udp_socket create;

audit2allow -R

#============= sandbox_t ==============
allow sandbox_t self:udp_socket create;

Comment 1 Miroslav Grepl 2011-05-10 11:44:54 UTC

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