Bug 2338713

Summary: SELinux is preventing gnome-remote-de from 'open' accesses on the file /etc/resolv.conf.
Product: [Fedora] Fedora Reporter: Thomas Köller <thomas>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 41CC: dwalsh, lvrabec, mmalik, omosnacek, pkoncity, thomas, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:382ec2ed6cef4be497ab5b29730e1b0ca57126e2d276e87179e1ffc0f1ad92cc;VARIANT_ID=;
Fixed In Version: selinux-policy-41.31-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-03 01:18:57 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:
Attachments:
Description Flags
File: description
none
File: os_info none

Description Thomas Köller 2025-01-18 01:36:51 UTC
Description of problem:
Installed updated packages usin 'dnf upgrade'.
SELinux is preventing gnome-remote-de from 'open' accesses on the file /etc/resolv.conf.

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

If you believe that gnome-remote-de should be allowed open access on the resolv.conf file 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:
# ausearch -c 'gnome-remote-de' --raw | audit2allow -M my-gnomeremotede
# semodule -X 300 -i my-gnomeremotede.pp

Additional Information:
Source Context                system_u:system_r:gnome_remote_desktop_t:s0
Target Context                unconfined_u:object_r:net_conf_t:s0
Target Objects                /etc/resolv.conf [ file ]
Source                        gnome-remote-de
Source Path                   gnome-remote-de
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.28-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.28-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.12.9-200.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Jan 9 16:05:40 UTC 2025 x86_64
Alert Count                   30
First Seen                    2024-11-16 01:37:19 CET
Last Seen                     2025-01-18 02:33:38 CET
Local ID                      0886810f-cd88-42ff-87d4-edcbd6f1d1af

Raw Audit Messages
type=AVC msg=audit(1737164018.876:514): avc:  denied  { open } for  pid=4749 comm="gnome-remote-de" path="/etc/resolv.conf" dev="sdb2" ino=22950647 scontext=system_u:system_r:gnome_remote_desktop_t:s0 tcontext=unconfined_u:object_r:net_conf_t:s0 tclass=file permissive=1


Hash: gnome-remote-de,gnome_remote_desktop_t,net_conf_t,file,open

Version-Release number of selected component:
selinux-policy-targeted-41.28-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing gnome-remote-de from 'open' accesses on the file /etc/resolv.conf.
package:        selinux-policy-targeted-41.28-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.12.9-200.fc41.x86_64
comment:        Installed updated packages usin 'dnf upgrade'.
component:      selinux-policy

Comment 1 Thomas Köller 2025-01-18 01:36:53 UTC
Created attachment 2066528 [details]
File: description

Comment 2 Thomas Köller 2025-01-18 01:36:54 UTC
Created attachment 2066529 [details]
File: os_info

Comment 3 Fedora Update System 2025-01-28 15:37:48 UTC
FEDORA-2025-9da160c869 (selinux-policy-41.30-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-9da160c869

Comment 4 Fedora Update System 2025-01-29 05:50:50 UTC
FEDORA-2025-9da160c869 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-9da160c869`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-9da160c869

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-02-02 02:01:40 UTC
FEDORA-2025-62c612355c has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-62c612355c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-62c612355c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-02-03 01:18:57 UTC
FEDORA-2025-62c612355c (selinux-policy-41.31-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.