]> git.ipfire.org Git - thirdparty/systemd.git/commit
rules: Add uaccess tag to /dev/udmabuf
authorHans de Goede <hdegoede@redhat.com>
Tue, 16 Jul 2024 15:46:09 +0000 (17:46 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Jul 2024 07:36:45 +0000 (09:36 +0200)
commitfd820e76e4999b4eee13be87fee25f5ffe357a57
tree74bd8f5cf37024cb2c99620fa45c967bd96d36a6
parentfa96c55b7b0d19a7f72908ee7d3f8a1ef630be96
rules: Add uaccess tag to /dev/udmabuf

In some cases userspace may need to create dmabuffers from userspace
on such example is the software ISP part of libcamera which needs to
allocate dma-buffers for the output of the software ISP.

At first the plan was to allow console users access to /dev/dma_heap/*,
this was discussed with various kernel folks here:
https://lore.kernel.org/all/bb372250-e8b8-4458-bc99-dd8365b06991@redhat.com/

Giving console users access to the dma_heap's was deemed a bad idea
because memory allocated this way is not accounted in cgroup limits.

Giving access to /dev/udmabuf OTOH was deemed acceptable so that
is what this patch adds.

Resolves: #32662
rules.d/70-uaccess.rules.in