Bug 2036972 - SELinux is preventing pool-ModemManag from 'getattr' accesses on the chr_file /dev/wwan0mbim0.
Summary: SELinux is preventing pool-ModemManag from 'getattr' accesses on the chr_file...
Keywords:
Status: CLOSED DUPLICATE of bug 1961571
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7b7518c3b5fa492c642c9eb2876...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-04 14:36 UTC by David Auer (2nd Account)
Modified: 2022-01-12 18:22 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-12 18:22:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2036973 1 unspecified CLOSED SELinux is preventing ModemManager from read, write access on the chr_file wwan0at0. 2022-01-12 18:21:55 UTC

Description David Auer (2nd Account) 2022-01-04 14:36:26 UTC
Description of problem:
On each boot (ThinkPad L14)
SELinux is preventing pool-ModemManag from 'getattr' accesses on the chr_file /dev/wwan0mbim0.

*****  Plugin device (91.4 confidence) suggests   ****************************

If you want to allow pool-ModemManag to have getattr access on the wwan0mbim0 chr_file
Then you need to change the label on /dev/wwan0mbim0 to a type of a similar device.
Do
# semanage fcontext -a -t SIMILAR_TYPE '/dev/wwan0mbim0'
# restorecon -v '/dev/wwan0mbim0'

*****  Plugin catchall (9.59 confidence) suggests   **************************

If you believe that pool-ModemManag should be allowed getattr access on the wwan0mbim0 chr_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 'pool-ModemManag' --raw | audit2allow -M my-poolModemManag
# semodule -X 300 -i my-poolModemManag.pp

Additional Information:
Source Context                system_u:system_r:modemmanager_t:s0
Target Context                system_u:object_r:device_t:s0
Target Objects                /dev/wwan0mbim0 [ chr_file ]
Source                        pool-ModemManag
Source Path                   pool-ModemManag
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-35.7-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-35.7-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.15.12-200.fc35.x86_64 #1 SMP Wed
                              Dec 29 15:03:38 UTC 2021 x86_64 x86_64
Alert Count                   95
First Seen                    2021-10-07 09:00:02 CEST
Last Seen                     2022-01-04 09:00:46 CET
Local ID                      7bddbce3-a5e4-4363-8abe-ffeee132c7c0

Raw Audit Messages
type=AVC msg=audit(1641283246.246:236): avc:  denied  { getattr } for  pid=3264 comm="pool-ModemManag" path="/dev/wwan0mbim0" dev="devtmpfs" ino=723 scontext=system_u:system_r:modemmanager_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=0


Hash: pool-ModemManag,modemmanager_t,device_t,chr_file,getattr

Version-Release number of selected component:
selinux-policy-targeted-35.7-1.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.15.12-200.fc35.x86_64
type:           libreport

Comment 1 David Auer (2nd Account) 2022-01-04 14:41:34 UTC
Comes in pairs with: 2036973

Comment 2 Zdenek Pytela 2022-01-12 18:22:02 UTC

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


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