Skip to content

Commit

Permalink
Merge branch 'live' into variousimprovements
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalOughtness authored Dec 29, 2024
2 parents 50efe04 + 2d8e897 commit f8a8baa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/POSTINSTALL-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ When using a non-wheel user, you can add the user to other groups if you want. F
- use libvirt: `libvirt`
- use `adb` and `fastboot`: `plugdev`
- use systemwide flatpaks: `flatpak`
- use usbguard: `usbguard`

> [!NOTE]
> You don't need to login using your wheel user to use it for privileged operations. When logged in as your non-wheel user, polkit will prompt you to authenticate as your wheel user as needed, or when requested by calling `run0`.
Expand Down
5 changes: 3 additions & 2 deletions files/justfiles/hardening.just
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,14 @@ flatpak-permissions-lockdown:
setup-usbguard:
#!/usr/bin/bash
echo "Notice: This will generate a policy based on your existing connected USB devices."
ACTIVE_USERNAME=$(whoami)
run0 sh -c '
mkdir -p /var/log/usbguard
mkdir -p /etc/usbguard
chmod 755 /etc/usbguard
usbguard generate-policy > /etc/usbguard/rules.conf
sed -i "/IPCAllowedGroups=wheel/s/$/ usbguard/" /etc/usbguard/usbguard-daemon.conf
restorecon -vR /var/log/usbguard
systemctl enable --now usbguard.service
usbguard add-user $1
' -- $ACTIVE_USERNAME
' -- $USER
systemctl enable --user --now usbguard-notifier.service

0 comments on commit f8a8baa

Please sign in to comment.