Bug 2188826 - 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: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: waydroid
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3f381e192e46d2ddd4dd0c58b57...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-22 16:22 UTC by aannoaanno
Modified: 2023-07-31 08:16 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


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

Description aannoaanno 2023-04-22 16:22:46 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.11-1.fc38.noarch
Local Policy RPM              
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.2.11-300.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Apr 13 20:27:09 UTC 2023
                              x86_64
Alert Count                   4
First Seen                    2023-04-20 18:08:06 CEST
Last Seen                     2023-04-22 18:20:28 CEST
Local ID                      bbaf1619-5ca9-4228-8da9-72df381520c6

Raw Audit Messages
type=AVC msg=audit(1682180428.821:118): avc:  denied  { search } for  pid=2180 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.11-1.fc38.noarch

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

Comment 1 aannoaanno 2023-04-22 16:22:47 UTC
Created attachment 1959145 [details]
File: description

Comment 2 aannoaanno 2023-04-22 16:22:49 UTC
Created attachment 1959146 [details]
File: os_info


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