flatpak: allow device access so the camera nodes are visible
What changed, and why it matters
This change widens the Flatpak sandbox's access to hardware devices. Previously, the app could only access the graphics device (DRI). Now it can access all devices, including cameras. This was done intentionally to let the app use the camera for QR code scanning, but it also exposes more of the system's hardware to the app than strictly necessary, which is a security trade-off.
Review whether --device=all is the minimal necessary permission. Prefer a more restrictive approach if Flatpak supports it, such as a future video device permission, or consider using a portal-based camera API that does not require direct device node access. Document the security trade-off in the manifest or release notes.
Security signals we found
Flatpak sandbox permission broadened from DRI-only to all devices
Direct V4L2 /dev/video* access required by camera plugin
Manifest-only change affecting runtime sandboxing posture
No code change to camera or sandbox logic
Evidence from the diff
The commit changes the Flatpak finish-args from –device=dri to –device=all across three application manifests. The dri device exposes /dev/dri for GPU rendering, while all additionally exposes input, video, and other device nodes. The stated reason is that the camera_linux plugin uses V4L2 and opens /dev/video* directly, which is not available under –device=dri. This is a deliberate sandbox relaxation to restore camera functionality, not a code vulnerability, but it increases the attack surface available to a compromised app process.
Changed components
flatpak/com.cypherstack.campfire.yamlflatpak/com.cypherstack.stackduo.yamlflatpak/com.cypherstack.stackwallet.yamlInspect captured patch +3 / −3
### flatpak/com.cypherstack.campfire.yaml
@@ -9,7 +9,7 @@ finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- - --device=dri
+ - --device=all
- --filesystem=~/.campfire:create
- --talk-name=org.freedesktop.secrets
- --talk-name=org.freedesktop.Notifications
### flatpak/com.cypherstack.stackduo.yaml
@@ -9,7 +9,7 @@ finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- - --device=dri
+ - --device=all
- --filesystem=~/.stackduo:create
- --talk-name=org.freedesktop.secrets
- --talk-name=org.freedesktop.Notifications
### flatpak/com.cypherstack.stackwallet.yaml
@@ -9,7 +9,7 @@ finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- - --device=dri
+ - --device=all
- --filesystem=~/.stackwallet:create
- --talk-name=org.freedesktop.secrets
- --talk-name=org.freedesktop.NotificationsWhy this scored 43/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.