Bug 2214809 - SELinux is preventing tlp from 'search' accesses on the directory /var/lib/snapd.
Summary: SELinux is preventing tlp from 'search' accesses on the directory /var/lib/sn...
Keywords:
Status: CLOSED DUPLICATE of bug 2221019
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:fac6b8df99d4343157dfc75d7a6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-13 17:40 UTC by Robert McAllister
Modified: 2023-10-09 15:18 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-10-09 15:18:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.87 KB, text/plain)
2023-06-13 17:40 UTC, Robert McAllister
no flags Details
File: os_info (698 bytes, text/plain)
2023-06-13 17:40 UTC, Robert McAllister
no flags Details

Description Robert McAllister 2023-06-13 17:40:40 UTC
Description of problem:
SELinux is preventing tlp from 'search' accesses on the directory /var/lib/snapd.

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

If you believe that tlp should be allowed search access on the snapd directory 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 'tlp' --raw | audit2allow -M my-tlp
# semodule -X 300 -i my-tlp.pp

Additional Information:
Source Context                system_u:system_r:tlp_t:s0
Target Context                system_u:object_r:snappy_var_lib_t:s0
Target Objects                /var/lib/snapd [ dir ]
Source                        tlp
Source Path                   tlp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           snapd-2.58.3-1.fc38.x86_64
SELinux Policy RPM            selinux-policy-targeted-38.12-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.12-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.2.15-300.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu May 11 17:37:39 UTC 2023
                              x86_64
Alert Count                   3
First Seen                    2023-06-01 13:01:54 MST
Last Seen                     2023-06-02 09:44:31 MST
Local ID                      d42eae76-353b-4408-aa18-93ae2ff9fa12

Raw Audit Messages
type=AVC msg=audit(1685724271.209:6212): avc:  denied  { search } for  pid=447301 comm="tlp" name="snapd" dev="dm-1" ino=1196594 scontext=system_u:system_r:tlp_t:s0 tcontext=system_u:object_r:snappy_var_lib_t:s0 tclass=dir permissive=0


Hash: tlp,tlp_t,snappy_var_lib_t,dir,search

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

Additional info:
reporter:       libreport-2.17.10
kernel:         6.2.15-300.fc38.x86_64
reason:         SELinux is preventing tlp from 'search' accesses on the directory /var/lib/snapd.
hashmarkername: setroubleshoot
component:      selinux-policy
type:           libreport
package:        selinux-policy-targeted-38.12-1.fc38.noarch
component:      selinux-policy

Comment 1 Robert McAllister 2023-06-13 17:40:42 UTC
Created attachment 1970726 [details]
File: description

Comment 2 Robert McAllister 2023-06-13 17:40:44 UTC
Created attachment 1970728 [details]
File: os_info

Comment 3 Milos Malik 2023-10-09 13:58:18 UTC
I believe this BZ is a duplicate of BZ#2221019 or vice versa.

Comment 4 Zdenek Pytela 2023-10-09 15:18:13 UTC

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


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