Difference between revisions of "Safe sudo"

From Technologia Incognita
Jump to: navigation, search
(Created page with "{{Project |picture=MQ-3 sensor.jpg |ProjectSkills=Coding, Access control, Soldering, Electronics |ProjectStatus=Getting parts |ProjectNiche=Software |ProjectPurpose=Fun }} Som...")
 
m
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
 
# Create a nice USB board and case
 
# Create a nice USB board and case
 
# Make '''sudo''' require an OK from the board
 
# Make '''sudo''' require an OK from the board
 +
# 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=
 +
 +
[http://xkcd.com/323/ Ballmer Peak] detector

Latest revision as of 16: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