Skip to content

ricardotaveira/yubikeylockd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yubikeylockd

Simple daemon for locking and unlocking OS X with Yubikey.

Install

Run make clean && make

Additional requirements

  • Configured integration with Yubico PAM module
  • Require password immediately after sleep or screen saver begins

How it works

When you attach Yubikey for the first time launchctl will run yubikeylockd daemon that will simply monitor the state of the Yubikey USB devices. Daemon based on the sample provided by Apple for IOKit development.

It does two things:

  • when device is attached it makes activity via IOPMAssertionDeclareUserActivity call to turn screen on
  • after device is detached it uses IORequestIdle to put display to sleep and (if you configured it) also locks the OS X

About

Simple Daemon for lock and unlock OS X with Yubikey

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.1%
  • Makefile 4.9%