Bug 2144260 - 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 DUPLICATE of bug 2134044
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 37
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: 2022-11-20 10:11 UTC by aannoaanno
Modified: 2023-01-03 13:23 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-01-03 13:23:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description aannoaanno 2022-11-20 10:11:06 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.56.2-5.fc37.x86_64
SELinux Policy RPM            selinux-policy-targeted-37.14-1.fc37.noarch
Local Policy RPM              
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.0.8-300.fc37.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Nov 11 15:09:04 UTC 2022
                              x86_64 x86_64
Alert Count                   2
First Seen                    2022-11-19 11:38:35 CET
Last Seen                     2022-11-20 11:09:44 CET
Local ID                      79753dc4-2fac-4052-8c86-e9e4a119c53f

Raw Audit Messages
type=AVC msg=audit(1668938984.463:232): avc:  denied  { search } for  pid=1969 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-37.14-1.fc37.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.17.4
hashmarkername: setroubleshoot
kernel:         6.0.8-300.fc37.x86_64
type:           libreport

Potential duplicate: bug 2134044

Comment 1 aannoaanno 2022-12-24 09:24:06 UTC
Similar problem has been detected:

Happens every time after system reboot.

hashmarkername: setroubleshoot
kernel:         6.0.14-300.fc37.x86_64
package:        selinux-policy-targeted-37.16-1.fc37.noarch
reason:         SELinux is preventing waydroid from 'search' accesses on the Verzeichnis /var/lib/snapd.
type:           libreport

Comment 2 Alessandro Astone 2023-01-03 13:23:39 UTC

*** This bug has been marked as a duplicate of bug 2134044 ***


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