Bug 433236

Summary: userdom_restricted_xwindows_user_template issue
Product: [Fedora] Fedora Reporter: Dominick Grift <domg444>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-18 16:56:07 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 Dominick Grift 2008-02-17 22:42:36 UTC
Description of problem:
The userdom_restricted_xwindows_user_template interface causes a few avc denials:

type=AVC msg=audit(1203280924.958:18): avc:  denied  { name_connect } for 
pid=2787 comm="pactl" dest=4713 scontext=myuserdomain:basic_r:basic_t:s0
tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket

type=AVC msg=audit(1203280687.036:1080): avc:  denied  { name_connect } for 
pid=12579 comm="mixer_applet2" dest=4713
scontext=myuserdomain:basic_r:basic_t:s0 tcontext=system_u:object_r:port_t:s0
tclass=tcp_socket

i think tcp:4713 should may be a soundd_port_t type port in either case i would
not expect it to be type port_t

Version-Release number of selected component (if applicable):
selinux-policy 3.2.7-6

Comment 1 Daniel Walsh 2008-02-18 16:56:07 UTC
You would need special policy for pactl or add this allow rule for basic_t.

It would be better if you defined a port for 4713 and then allowed basic_t to
connect to it.

userdom_restricted_xwindows_user_template

Is designed to not allow any network connectivity.  If you want to build a user
type off of this and add a network, you will need to build the policy for it.