Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label /dev/dma_heap/* char devices with dma_device_t #787

Merged
merged 4 commits into from Jun 21, 2021

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Jun 18, 2021

No description provided.

This reverts commit 4604ae8
in favor of less comples approach.
This reverts commit 77d425c
in favor of less complex approach.
This reverts commit a091bcd
in favor of less complex approach.
In the /dev/dma_heap directory, character devices are created to
allow userspace to allocate dma buffers that can be shared between drivers.

The change is backed by a file transition for the "system" file;
note the /dev/dma_heap directory keeps the default device_t type
so the transition will apply for a "system" file anywhere in /dev.

A new dma_device_t type was added.

Resolves: rhbz#1970744
@zpytela
Copy link
Contributor Author

zpytela commented Jun 18, 2021

Taking the discussion in #763 and the current Fedora state into account, I decided to revert the current solution in favor of the least complex one, and not label /dev/dma_heap with a private, unique type.

I am afraid though we will need to get back to it later unless we decide to drop all transitions as also discussed. There already is a request for /dev/pktcdvd/[0-7] support and this will hardly be a unique filename.

Note to myself: In that case, a dozen of interfaces like dev_manage_all_dev_nodes will need to be updated.

@zpytela zpytela changed the title Fb dmaheap system2 Label /dev/dma_heap/* char devices with dma_device_t Jun 18, 2021
@zpytela
Copy link
Contributor Author

zpytela commented Jun 18, 2021

Testing the new build, I haven't run into any issue, so undrafting.

@zpytela zpytela marked this pull request as ready for review June 18, 2021 20:02
@zpytela zpytela merged commit 85f35a1 into fedora-selinux:rawhide Jun 21, 2021
@zpytela zpytela deleted the fb-dmaheap-system2 branch June 21, 2021 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant