Comments (7)
I actually had sending out an email to discuss doing this with the dma-buf maintainers on my TODO list. I have just send out that email:
https://lore.kernel.org/all/[email protected]/
So lets await the dam-buf maintainers reply and discuss this further in that email thread.
from systemd.
We can certainly do something like this, but only if the relevant kernel subsystem maintainers sign off on this, that this is a safe thing to do.
@jwrdegoede iirc you are involved in the libcamera work, or did i mix that up? Any chance you can comment on this? Or CC the people who could?
from systemd.
The upstream kernel list discussion has come to the conclusion that opening up DMA heaps is a bad idea. But opening up /dev/udmabuf like this should be acceptable.
I have posted a patch upstream for libcamera to try udmabuf of the DMA heaps are not available:
https://lists.libcamera.org/pipermail/libcamera-devel/2024-May/042085.html
I think we should change the title of this issue to "uaccess
tag by default for /dev/udmabuf". @rmader can you update this.
And/or maybe we should just submit a pull-request with this change ?
from systemd.
rules.d/70-uaccess.rules.in
from systemd.
So far, it seems like a bad idea until dmabuf allocated from heaps can be accounted and under user quotas. I've let floating the idea for libcamera softISP to enable memfd + udmabuf (Laurent said memfd out of libcamera is a no-go). (but then you need kernels that enable udmabuf in the first place)
from systemd.
I think we should change the title of this issue to "uaccess tag by default for /dev/udmabuf". @rmader can you update this.
Agreed, looks like it will be a while until the accounting issues around dma heaps will have been resolved - done.
And/or maybe we should just submit a pull-request with this change ?
Sounds good! Won't get to it at least in the next two weeks, so please go ahead or I'll pick it up later.
from systemd.
Sounds good! Won't get to it at least in the next two weeks, so please go ahead or I'll pick it up later.
Any idea/suggestion which existing systemd udev rules file we should add this to ?
from systemd.
Related Issues (20)
- LogsDirectory with DynamicUser is not readable without root HOT 1
- run0: persist feature (if possible, probably not) HOT 10
- test_journal_flush_compact occasionally fails due to EINVAL on journal_file_copy_entry
- Add option for `systemctl preset[-all]` to preset units under `/usr/lib`
- OSS-Fuzz issue 69730 HOT 1
- resolved not respecting NetworkManager dns-over-tls setting on ppp connections
- Assertion failure in systemd-user-runtime-dir HOT 2
- bootctl recognizes the file it just updated as already up-to-date and fails HOT 1
- User session fails `Failed to create session: Invalid session class manager` HOT 3
- [email protected] is now required for a login session HOT 3
- Wrong output enabling service with `Alias=` in `[Install]`
- Latest version of systemd causes /dev/tpmrm0 to not start. HOT 7
- post merge issues with #30418
- networkd: since v256 IPv6Forwarding doesn't forward any packets HOT 2
- shutdown: notify the user of endless umount/swapoff/detach attempts (and perhaps timeout)
- run0: Error message should be more explicit when polkit is missing
- systemd-backlight service not restoring backlight brightess on RPi 3b+ HOT 4
- run0: red highlighting doesn't cover entire output text in some circumstances
- #25049 has post-merge issues
- Extend SuccessExitStatus= option to allow combining an exit status with an errno HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from systemd.