Bug 1967536 - selinux denies "search" of "dma_heap"
Summary: selinux denies "search" of "dma_heap"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 33
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1976502 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-03 10:28 UTC by Marius Vollmer
Modified: 2021-07-18 01:03 UTC (History)
11 users (show)

Fixed In Version: selinux-policy-3.14.6-39.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-18 01:03:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1965743 1 medium CLOSED systemd was denied reading and searching /dev/dma_heap while booting with selinux-policy-34.9-1.fc34 2021-07-31 06:52:34 UTC

Description Marius Vollmer 2021-06-03 10:28:24 UTC
Description of problem:

A recent Fedora 33 image created with updates-testing has some new unexpected audit messages:

audit: type=1400 audit(1622712108.353:391): avc:  denied  { search } for  pid=1757 comm="systemd-udevd" name="dma_heap" dev="devtmpfs" ino=127 scontext=system_u:system_r:udev_t:s0-s0:c0.c1023 tcontext=system_u:object_r:dma_device_t:s0 tclass=dir permissive=0

Version-Release number of selected component (if applicable):
selinux-policy-3.14.6-38.fc33.noarch

Additional info:

This is the log of creating the image: https://logs-https-frontdoor.apps.ocp.ci.centos.org/logs/image-refresh-2075-20210603-083131/log

Here is a typical journal: https://logs.cockpit-project.org/logs/pull-2075-20210603-084927-61bae4f6-fedora-testing-cockpit-project-cockpit/TestNetworkingMAC-testBondMac-fedora-testing-127.0.0.2-2601-FAIL.log.gz

Comment 1 Zdenek Pytela 2021-06-03 12:52:49 UTC
Will be backported to F33 as soon as the rawhide PR is merged.
https://github.com/fedora-selinux/selinux-policy/pull/763

Comment 2 Ivan Font 2021-07-02 00:36:17 UTC
To work around:

$ sudo setenforce 0
$ sudo chcon system_u:object_r:device_t:s0 /dev/dma_heap/
$ sudo setenforce 1

Comment 3 Fedora Update System 2021-07-02 08:42:52 UTC
FEDORA-2021-3b341e9e71 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-3b341e9e71

Comment 4 Fedora Update System 2021-07-03 01:04:31 UTC
FEDORA-2021-3b341e9e71 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-3b341e9e71`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-3b341e9e71

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

Comment 5 Zdenek Pytela 2021-07-07 13:40:19 UTC
*** Bug 1976502 has been marked as a duplicate of this bug. ***

Comment 6 Mathias Nicolajsen Kjærgaard 2021-07-08 21:33:41 UTC
I can confirm that the update has fixed the issue on my system - after a reboot.

Comment 7 Zdenek Pytela 2021-07-09 07:20:42 UTC
Reboot or

restorecon -Rv /dev/dma_heap

is required in F33.

Comment 8 Fedora Update System 2021-07-18 01:03:21 UTC
FEDORA-2021-3b341e9e71 has been pushed to the Fedora 33 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.