Merge pull request #11874 from acrogenesis/feature/usb-device-authorization

Require approval for new USB and Thunderbolt devices by default.

Reported-by: Jurre van Bergen me@jurrevanbergen.nl
This commit is contained in:
Erik Melton authored and GitHub committed 2026-10-09 21:16:12 +02:00
commit 5cb31317b4
57 files changed
+5775 -2

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
echo "Enable approval for newly connected USB devices"
omarchy-setup-security-usb-authorization --yes
+2
View File
@@ -0,0 +1,2 @@
echo "Require approval for new Thunderbolt accessories"
omarchy-setup-security-thunderbolt-authorization --quiet
+7
View File
@@ -0,0 +1,7 @@
echo "Repair USB approval prompts and enable portable device approvals"
# Preserve an explicit opt-out. Existing users with an active/enabled daemon
# need a working watcher even if their old checkout link has become dangling.
if systemctl is-enabled --quiet usbguard.service || systemctl is-active --quiet usbguard.service; then
omarchy-setup-security-usb-authorization --yes
fi