Difference between revisions of "Safe sudo"

From Technologia Incognita
Jump to: navigation, search
m
m
 
Line 18: Line 18:
  
 
Only allow sudo (and git commit) after testing breath for alcohol pro-milage . .
 
Only allow sudo (and git commit) after testing breath for alcohol pro-milage . .
 +
 +
Git is easy, can be done with a wrapper or a pre-commit hook ;)
 +
 +
Sudo needs to be patched but that seems trivial too :D
  
 
=Alternate function=
 
=Alternate function=
  
 
[http://xkcd.com/323/ Ballmer Peak] detector
 
[http://xkcd.com/323/ Ballmer Peak] detector

Latest revision as of 15:37, 29 November 2013

Projects
MQ-3 sensor.jpg
Participants The JinX
Skills Coding, Access control, Soldering, Electronics
Status Getting parts
Niche Software
Purpose Fun

Sometimes it's not safe to sudo

So I bought this alcohol sensor

TODO

  1. Create a nice USB board and case
  2. Make sudo require an OK from the board
  3. Make git commit require OK

Function

Only allow sudo (and git commit) after testing breath for alcohol pro-milage . .

Git is easy, can be done with a wrapper or a pre-commit hook ;)

Sudo needs to be patched but that seems trivial too :D

Alternate function

Ballmer Peak detector