Bug 2008755 - SELinux is preventing ModemManager from 'create' accesses on the netlink_route_socket Tuntematon.
Summary: SELinux is preventing ModemManager from 'create' accesses on the netlink_rout...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 35
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4202e35240f430cfb1b8e62b812...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-29 05:57 UTC by Otto Liljalaakso
Modified: 2021-10-09 21:09 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-35.1-1.fc35
Clone Of:
Environment:
Last Closed: 2021-10-09 21:09:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Otto Liljalaakso 2021-09-29 05:57:39 UTC
Description of problem:
Did system upgrade from F34 to F35,
logged in.
Happens once on every login.
SELinux is preventing ModemManager from 'create' accesses on the netlink_route_socket Tuntematon.

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

If you believe that ModemManager should be allowed create access on the Tuntematon netlink_route_socket 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 'ModemManager' --raw | audit2allow -M my-ModemManager
# semodule -X 300 -i my-ModemManager.pp

Additional Information:
Source Context                system_u:system_r:modemmanager_t:s0
Target Context                system_u:system_r:modemmanager_t:s0
Target Objects                Tuntematon [ netlink_route_socket ]
Source                        ModemManager
Source Path                   ModemManager
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-34.20-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-34.20-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.14.7-300.fc35.x86_64 #1 SMP Wed
                              Sep 22 14:52:56 UTC 2021 x86_64 x86_64
Alert Count                   4
First Seen                    2021-09-28 23:06:22 EEST
Last Seen                     2021-09-29 08:53:37 EEST
Local ID                      638b8d7f-290f-4aab-8839-d96a1858bf16

Raw Audit Messages
type=AVC msg=audit(1632894817.623:302): avc:  denied  { create } for  pid=2103 comm="ModemManager" scontext=system_u:system_r:modemmanager_t:s0 tcontext=system_u:system_r:modemmanager_t:s0 tclass=netlink_route_socket permissive=0


Hash: ModemManager,modemmanager_t,modemmanager_t,netlink_route_socket,create

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

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

Comment 1 Zdenek Pytela 2021-09-30 06:28:24 UTC
I've submitted a Fedora PR to address the issue:
https://github.com/fedora-selinux/selinux-policy/pull/900

Comment 2 Fedora Update System 2021-10-08 09:46:13 UTC
FEDORA-2021-a74259b82b has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a74259b82b

Comment 3 Fedora Update System 2021-10-08 19:08:24 UTC
FEDORA-2021-a74259b82b has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a74259b82b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a74259b82b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-10-09 21:09:06 UTC
FEDORA-2021-a74259b82b has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


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