yubilock

Lock X when YubiKey is detached (OpenBSD)
git clone _git@git.zakaria.org/yubilock.git
Log | Files | Refs | README | LICENSE

commit 95b7cb2b940b332b90232c90d12f12305297e1b5
parent a96747bc1741d77b490eaeb79b15af0fbeb4ecbc
Author: zakaria <e-zk@users.noreply.github.com>
Date:   Mon, 10 Jan 2022 23:20:29 +1000

Add README

Diffstat:
AREADME | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/README b/README @@ -0,0 +1,15 @@ +yubilock +========= +hotplugd script to lock X when yubikey (or any fido device) is detached. + +install/usage +============== +1. add a doas.conf(5) rule to allow root to run xlock as $xuser. +2. open the 'detach' script and change $xuser. + change $DISPLAY, and $lock_cmd if necessary. +3. copy 'detach' to /etc/hotplug/detach +4. set the appropriate permissions: + # chmod 750 /etc/hotplug/detach +5. start/reload hotplugd: + # rcctl start hotplugd; rcctl reload hotplugd +