Using MediaMTX together with Balena

I’m currently working on getting a video streaming system working with a balena-controlled system. I have a Pi Zero 2 W with a Pi camera module 3. I’ve ensured that all of the normal interactions one would expect (rpicam-apps) are functional, as well as picamera.

I tried to pull MediaMTX into the mix to accomplish some low-overhead/high efficiency WebRTC image streaming. However, when I try to run ./mediamtx mediamtx.yml, I get hit with

ERR [path cam] [RPI Camera source] fork/exec /dev/shm/mediamtx-rpicamera-1745025495352945876/mtxrpicam: permission denied

I’ve ensured that the /dev/shm directory is in a tmpfs with exec permissions, and I’ve added kernel-modules. The whole service is privileged as well.

Has anyone here had experience getting MediaMTX running on a system such as this? If so, is there a recipe you could share with me?