Bug 2230528 - 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 2229970
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
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-08-09 15:21 UTC by aannoaanno
Modified: 2023-08-09 17:14 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-09 17:14:35 UTC
Type: ---
Embargoed:


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

Description aannoaanno 2023-08-09 15:21:26 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                   17
First Seen                    2023-08-03 16:36:01 CEST
Last Seen                     2023-08-09 08:58:02 CEST
Local ID                      4850add8-f8d4-4ce9-933c-06d6a23e8b67

Raw Audit Messages
type=AVC msg=audit(1691564282.326:125): avc:  denied  { search } for  pid=2677 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-09 15:21:28 UTC
Created attachment 1982573 [details]
File: description

Comment 2 aannoaanno 2023-08-09 15:21:29 UTC
Created attachment 1982574 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-08-09 17:14:35 UTC

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


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