Skip to content

Commit 89d6abe

Browse files
committed
image: drop Bitwarden device access to dri
The manifest grants devices=all — webcam, microphone, raw USB. A password manager needs the GPU and nothing else on that list. Verified as a --user override first, per the rule the Discord incident earned: Bitwarden launches and maps its window with this applied.
1 parent 075fa32 commit 89d6abe

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

SETUP.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ bluetooth audio, and suspend/resume. Only then wipe the internal drive (§9.10).
222222
automatically, but a machine that already has the override file keeps its
223223
old copy. Re-apply by hand after tightening any of them:
224224
```
225-
sudo flatpak override --system --nosocket=x11 com.bitwarden.desktop
225+
sudo flatpak override --system --nosocket=x11 --nodevice=all --device=dri \
226+
com.bitwarden.desktop
226227
sudo flatpak override --system --nofilesystem=home --filesystem=xdg-download \
227228
com.github.IsmaelMartinez.teams_for_linux
228229
sudo flatpak override --system --nodevice=all --device=dri --disallow=devel \

files/system/usr/share/factory/var/lib/flatpak/overrides/com.bitwarden.desktop

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
# absent, and if Wayland is down under niri there is no desktop to run Bitwarden
1818
# in anyway.
1919
sockets=wayland;!x11;
20+
# devices=!all;dri — the manifest grants `all`: webcam, microphone, raw USB. A
21+
# password manager needs the GPU and nothing else on that list. Verified as a
22+
# --user override first: Bitwarden launches and maps its window with this applied.
23+
devices=!all;dri;
2024

2125
[Environment]
2226
ELECTRON_OZONE_PLATFORM_HINT=auto

0 commit comments

Comments
 (0)