Loading kernel module from within a podman rootless container #24545
Replies: 1 comment 1 reply
-
Well think about it from security perspective. If you can load an arbitrary from a rootless context you can completely comprise any kernel with that as the kernel module can do anything in kernel space basically. As such it is impossible to load kernel modules from a user namespace, https://man7.org/linux/man-pages/man7/user_namespaces.7.html
|
Beta Was this translation helpful? Give feedback.
-
I am developing against a bespoke piece of hardware (an FPGA) with kernel drivers we are writing ourselves (don't ask). We have an application suite that then accesses the FPGA through some
/dev/xyz
node the kernel driver creates.In order to avoid spewing lots of rpms and files over the system for our CI, I would like to
/dev/xyz
node--rm
)Unfortunately, I have not managed to load a kernel module in a rootless container with every permutation of known caps and priviledged flags:
If I start the container under root, everything works. What am I missing? I have given podman the necessary caps:
Beta Was this translation helpful? Give feedback.
All reactions