Bug 555115

Summary: privoxy SELinux policy frequently denies access to web pages
Product: [Fedora] Fedora Reporter: D. Wagner <daw-redhatbugzilla>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: low    
Version: 12Keywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.6.32-73.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-28 01:01:35 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 D. Wagner 2010-01-13 17:54:41 UTC
Description of problem:

I use privoxy as my web proxy for all web browsing.  The SELinux policy for privoxy frequently (like, once a week or more) prevents me from accessing various legitimate sites that I want to visit.  The reason: because the sites use a URL with a port other than port 80.  In other words, they are of the form http://domain.example.com:NNN/... for some numeric value NNN.

Suggestion: Revise the privoxy security policy to allow network access to all TCP ports on remote hosts.

Comment 1 Daniel Walsh 2010-01-13 19:35:55 UTC
Turn on the privoxy_connect_any boolean

setsebool -P privoxy_connect_any 1

I guess we can turn this on by default.

Comment 2 D. Wagner 2010-01-13 19:49:50 UTC
Yes, this fixes it for me:

setsebool -P privoxy_connect_any 1

Yes, this should go into the default policy.  I've re-opened this bug to indicate that it's a defect in the default policy and the ticket shouldn't be closed until the default policy is fixed to add this to the default; I hope that's OK.

Comment 3 Daniel Walsh 2010-01-13 19:56:40 UTC
I have changed it to the default in F13.  

Miroslav could you add the line

# Allow privoxy to connect to all ports, not justHTTP, FTP, and Gopher ports.
# 
privoxy_connect_any = true

To booleans-targeted.conf

This will only change it on Fresh Installs.  We never change boolean settings on updates.

Comment 4 Miroslav Grepl 2010-01-15 17:24:00 UTC
Fixed in selinux-policy-3.6.32-71.fc12

Comment 5 Fedora Update System 2010-01-19 21:37:47 UTC
selinux-policy-3.6.32-73.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-73.fc12

Comment 6 Fedora Update System 2010-01-21 00:12:47 UTC
selinux-policy-3.6.32-73.fc12 has been pushed to the Fedora 12 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: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0858

Comment 7 Fedora Update System 2010-01-28 01:00:56 UTC
selinux-policy-3.6.32-73.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.