summaryrefslogtreecommitdiffstats
path: root/rules.d
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-07-16 17:46:09 +0200
committerLennart Poettering <lennart@poettering.net>2024-07-17 09:36:45 +0200
commitfd820e76e4999b4eee13be87fee25f5ffe357a57 (patch)
tree74bd8f5cf37024cb2c99620fa45c967bd96d36a6 /rules.d
parentid128: refuse --app-specific= if we're listing GPT types (diff)
downloadsystemd-fd820e76e4999b4eee13be87fee25f5ffe357a57.tar.xz
systemd-fd820e76e4999b4eee13be87fee25f5ffe357a57.zip
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
Diffstat (limited to 'rules.d')
-rw-r--r--rules.d/70-uaccess.rules.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.d/70-uaccess.rules.in b/rules.d/70-uaccess.rules.in
index b82ce04a39..e683bb1114 100644
--- a/rules.d/70-uaccess.rules.in
+++ b/rules.d/70-uaccess.rules.in
@@ -34,6 +34,8 @@ SUBSYSTEM=="sound", TAG+="uaccess", \
SUBSYSTEM=="video4linux", TAG+="uaccess"
SUBSYSTEM=="dvb", TAG+="uaccess"
SUBSYSTEM=="media", TAG+="uaccess"
+# libcamera software ISP used with some cams requires udmabuf access
+KERNEL=="udmabuf", TAG+="uaccess"
# industrial cameras, some webcams, camcorders, set-top boxes, TV sets, audio devices, and more
SUBSYSTEM=="firewire", TEST=="units", ENV{IEEE1394_UNIT_FUNCTION_MIDI}=="1", TAG+="uaccess"