Bug 2102538 - SELinux is preventing firewalld from 'read' accesses on the file /sys/devices/system/cpu/possible.
Summary: SELinux is preventing firewalld from 'read' accesses on the file /sys/devices...
Keywords:
Status: CLOSED DUPLICATE of bug 2101062
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ee39ac46d8147136228d9e68546...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-30 07:34 UTC by Mikhail
Modified: 2022-06-30 08:20 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-06-30 08:20:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
list of upgraded packages (478.97 KB, text/plain)
2022-06-30 07:36 UTC, Mikhail
no flags Details

Description Mikhail 2022-06-30 07:34:09 UTC
Description of problem:
This happened while I upgrading packages.
SELinux is preventing firewalld from 'read' accesses on the file /sys/devices/system/cpu/possible.

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

If you believe that firewalld should be allowed read access on the possible file 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 'firewalld' --raw | audit2allow -M my-firewalld
# semodule -X 300 -i my-firewalld.pp

Additional Information:
Source Context                system_u:system_r:firewalld_t:s0
Target Context                system_u:object_r:sysfs_t:s0
Target Objects                /sys/devices/system/cpu/possible [ file ]
Source                        firewalld
Source Path                   firewalld
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-37.5-1.fc37.noarch
Local Policy RPM              selinux-policy-targeted-37.5-1.fc37.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              5.19.0-0.rc0.20220525gitfdaf9a5840ac.2.fc37.x86_64
                              #1 SMP PREEMPT_DYNAMIC Wed May 25 21:41:55 UTC
                              2022 x86_64 x86_64
Alert Count                   1
First Seen                    2022-06-30 12:30:53 +05
Last Seen                     2022-06-30 12:30:53 +05
Local ID                      4a1c3dfb-5dc8-41b2-8e26-1ece159b48af

Raw Audit Messages
type=AVC msg=audit(1656574253.237:499): avc:  denied  { read } for  pid=92528 comm="firewalld" name="possible" dev="sysfs" ino=46 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file permissive=0


Hash: firewalld,firewalld_t,sysfs_t,file,read

Version-Release number of selected component:
selinux-policy-targeted-37.5-1.fc37.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.17.1
hashmarkername: setroubleshoot
kernel:         5.19.0-0.rc0.20220525gitfdaf9a5840ac.2.fc37.x86_64
type:           libreport

Comment 1 Mikhail 2022-06-30 07:36:28 UTC
Created attachment 1893554 [details]
list of upgraded packages

Comment 2 Zdenek Pytela 2022-06-30 08:20:24 UTC

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


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