Bug 2229970 - SELinux is preventing waydroid from 'search' accesses on the Verzeichnis /var/lib/snapd.
Summary: SELinux is preventing waydroid from 'search' accesses on the Verzeichnis /var...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: waydroid
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alessandro Astone
QA Contact:
URL:
Whiteboard: abrt_hash:3f381e192e46d2ddd4dd0c58b57...
: 2230528 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-08 10:44 UTC by aannoaanno
Modified: 2023-11-03 18:23 UTC (History)
10 users (show)

Fixed In Version: waydroid-1.4.1-3.fc38 waydroid-1.4.1-3.fc39
Clone Of:
Environment:
Last Closed: 2023-10-04 15:50:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.97 KB, text/plain)
2023-08-08 10:44 UTC, aannoaanno
no flags Details
File: os_info (734 bytes, text/plain)
2023-08-08 10:44 UTC, aannoaanno
no flags Details

Description aannoaanno 2023-08-08 10:44:54 UTC
Description of problem:
SELinux is preventing waydroid from 'search' accesses on the Verzeichnis /var/lib/snapd.

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

Wenn Sie denken, dass es waydroid standardmäßig erlaubt sein sollte, search Zugriff auf snapd directory zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'waydroid' --raw | audit2allow -M my-waydroid
# semodule -X 300 -i my-waydroid.pp

Additional Information:
Source Context                system_u:system_r:waydroid_t:s0
Target Context                system_u:object_r:snappy_var_lib_t:s0
Target Objects                /var/lib/snapd [ dir ]
Source                        waydroid
Source Path                   waydroid
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           snapd-2.58.3-1.fc38.x86_64
SELinux Policy RPM            selinux-policy-targeted-38.22-1.fc38.noarch
Local Policy RPM              
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.4.6-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Jul 24 20:51:12 UTC 2023
                              x86_64
Alert Count                   15
First Seen                    2023-08-03 16:36:01 CEST
Last Seen                     2023-08-08 12:17:29 CEST
Local ID                      4850add8-f8d4-4ce9-933c-06d6a23e8b67

Raw Audit Messages
type=AVC msg=audit(1691489849.141:125): avc:  denied  { search } for  pid=2123 comm="waydroid" name="snapd" dev="dm-1" ino=3092727 scontext=system_u:system_r:waydroid_t:s0 tcontext=system_u:object_r:snappy_var_lib_t:s0 tclass=dir permissive=0


Hash: waydroid,waydroid_t,snappy_var_lib_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-38.22-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing waydroid from 'search' accesses on the Verzeichnis /var/lib/snapd.
package:        selinux-policy-targeted-38.22-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.4.6-200.fc38.x86_64
component:      selinux-policy

Comment 1 aannoaanno 2023-08-08 10:44:57 UTC
Created attachment 1982326 [details]
File: description

Comment 2 aannoaanno 2023-08-08 10:44:58 UTC
Created attachment 1982327 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-08-09 17:14:35 UTC
*** Bug 2230528 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2023-09-26 12:29:58 UTC
FEDORA-2023-29eea4d76b has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-29eea4d76b

Comment 5 Fedora Update System 2023-09-26 12:30:16 UTC
FEDORA-2023-5a09b5def9 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-5a09b5def9

Comment 6 Fedora Update System 2023-09-27 01:25:56 UTC
FEDORA-2023-5a09b5def9 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-5a09b5def9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-5a09b5def9

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

Comment 7 Fedora Update System 2023-09-27 01:35:58 UTC
FEDORA-2023-29eea4d76b has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-29eea4d76b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-29eea4d76b

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

Comment 8 Fedora Update System 2023-10-04 15:50:42 UTC
FEDORA-2023-29eea4d76b has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2023-11-03 18:23:19 UTC
FEDORA-2023-5a09b5def9 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.