1 Feb 2007 23:41
simple tpe implementation
Elad Efrat <elad <at> NetBSD.org>
2007-02-01 22:41:00 GMT
2007-02-01 22:41:00 GMT
hi,
attached is a very simple patch that adds a "security.tpe" sysctl node
to control a tpe (or, trusted path execution) feature.
what it does: prevent execution of any program that does not live in a
directory that is owned by root and writable by neither group or other.
why would you need it: quick knob you can enable to prevent any users
from running their own stuff. kinda useful if there's a now 0-day out
or you're in the middle of patching your system or whatever.
caveats: it doesn't use kauth yet. if it could it would, so let's not
get into that now. it also doesn't address interpreters (i.e., someone
starting python and feeding it stuff) yet. we will do that -- we have
the mechanism in place, but I'm holding it back for now.
default: disabled.
demo:
phyre:elad {8} test/hi
hi!
phyre:elad {9} su
Password:
phyre:elad {1} sysctl -w security.tpe.enabled=1
security.tpe.enabled: 0 -> 1
phyre:elad {2} exit
exit
phyre:elad {10} test/hi
test/hi: Operation not permitted.
(Continue reading)
RSS Feed