Bug 1788108

Summary: Confined users cannot access https websites
Product: [Fedora] Fedora Reporter: Jens <bugzilla.redhat.com.klox>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: 31CC: amessina, dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-06 17:31:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1767779    

Description Jens 2020-01-06 12:56:48 UTC
Description of problem:
SELinux users xguest_u and user_u cannot access https websites with firefox
opening fedoraproject.org results in the error: SEC_ERROR_UNKNOWN_ISSUER
opening mozilla.org results in the error: MOZILLA_PKIX_ERROR_MITM_DETECTED


Version-Release number of selected component (if applicable):


How reproducible:
It's always reproducible. It's also reproducible in RHEL 8.1.


Steps to Reproduce:
1. sudo useradd -Z xguest_u testuser
2. sudo passwd testuser
3. switch user (to get to GDM login screen)
4. login with testuser
5. start firefox
6. open website https://fedoraproject.org

Actual results:
opening website fails with SEC_ERROR_UNKNOWN_ISSUER

Expected results:
opening website succeeds


Additional info:
After executing
sudo semanage login -d testuser
opening https websites works.
The same issue happens with the SELinux user user_u.


SELinux denials during the login:
----
type=AVC msg=audit(2020-01-06 12:59:40.621:215) : avc:  denied  { dac_read_search } for  pid=1422 comm=fusermount3 capability=dac_read_search  scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=xguest_u:xguest_r:xguest_t:s0 tclass=capability permissive=0 
----
type=AVC msg=audit(2020-01-06 12:59:40.621:216) : avc:  denied  { dac_override } for  pid=1422 comm=fusermount3 capability=dac_override  scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=xguest_u:xguest_r:xguest_t:s0 tclass=capability permissive=0 
----
type=AVC msg=audit(2020-01-06 12:59:40.622:217) : avc:  denied  { dac_read_search } for  pid=1424 comm=fusermount3 capability=dac_read_search  scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=xguest_u:xguest_r:xguest_t:s0 tclass=capability permissive=0 
----
type=AVC msg=audit(2020-01-06 12:59:40.622:218) : avc:  denied  { dac_override } for  pid=1424 comm=fusermount3 capability=dac_override  scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=xguest_u:xguest_r:xguest_t:s0 tclass=capability permissive=0 
----
type=AVC msg=audit(2020-01-06 12:59:43.574:220) : avc:  denied  { map } for  pid=1484 comm=gnome-shell path=/etc/pki/ca-trust/source/README dev="dm-0" ino=263977 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file permissive=0 
----
type=AVC msg=audit(2020-01-06 12:59:43.575:221) : avc:  denied  { map } for  pid=1484 comm=gnome-shell path=/usr/share/pki/ca-trust-source/ca-bundle.trust.p11-kit dev="dm-0" ino=186799 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file permissive=0 
----
type=AVC msg=audit(2020-01-06 12:59:43.576:222) : avc:  denied  { map } for  pid=1484 comm=gnome-shell path=/usr/share/pki/ca-trust-source/README dev="dm-0" ino=186798 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file permissive=0 
----
type=AVC msg=audit(2020-01-06 12:59:51.111:229) : avc:  denied  { read } for  pid=1888 comm=gnome-software name=config dev="dm-0" ino=309963 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=file permissive=0 
----
type=AVC msg=audit(2020-01-06 12:59:51.743:232) : avc:  denied  { map } for  pid=1888 comm=pool-gnome-soft path=/etc/pki/ca-trust/source/README dev="dm-0" ino=263977 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file permissive=0 
----
type=AVC msg=audit(2020-01-06 12:59:51.748:233) : avc:  denied  { map } for  pid=1888 comm=pool-gnome-soft path=/usr/share/pki/ca-trust-source/ca-bundle.trust.p11-kit dev="dm-0" ino=186799 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file permissive=0 
----
type=AVC msg=audit(2020-01-06 12:59:51.749:234) : avc:  denied  { map } for  pid=1888 comm=pool-gnome-soft path=/usr/share/pki/ca-trust-source/README dev="dm-0" ino=186798 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file permissive=0 
----


SELinux denials while starting firefox:
----
type=AVC msg=audit(2020-01-06 13:11:23.133:249) : avc:  denied  { map } for  pid=2155 comm=StreamTrans #3 path=/etc/pki/ca-trust/source/README dev="dm-0" ino=263977 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file permissive=0 
----
type=AVC msg=audit(2020-01-06 13:11:23.133:250) : avc:  denied  { map } for  pid=2155 comm=StreamTrans #3 path=/usr/share/pki/ca-trust-source/ca-bundle.trust.p11-kit dev="dm-0" ino=186799 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file permissive=0 
----
type=AVC msg=audit(2020-01-06 13:11:23.134:251) : avc:  denied  { map } for  pid=2155 comm=StreamTrans #3 path=/usr/share/pki/ca-trust-source/README dev="dm-0" ino=186798 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:cert_t:s0 tclass=file permissive=0

Comment 1 Fedora Admin XMLRPC Client 2020-01-23 16:24:45 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 2 Ben Cotton 2020-11-03 17:20:20 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Jens 2020-11-06 17:31:09 UTC
I am not able to reproduce this issue on Fedora 33, therefore I will close the bug.