e_sys - address security concerns with environment and gdb
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 30 Nov 2013 13:26:30 +0000 (22:26 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 30 Nov 2013 13:26:30 +0000 (22:26 +0900)
commitbb4a21e98656fe2c7d98ba2163e6defe9a630e2b
tree7cb4b643760be6b800df0fd9aa327ae188bfaa9c
parent8803e7fed2ffd67981d0fc517c73ad9ae9ca2eb9
e_sys - address security concerns with environment and gdb

1. clear out environment as best is possible before executing
anything. especially PATH and IFS are set to minimal base defaults.
also use clearenv() if available and unsetenv()

2. remove gdb method as it's just too dangerous. run it as normal as
the user and if the kernel / distro dny that - then sorry. too bad.
configure.ac
data/etc/sysactions.conf.in
src/bin/e_start_main.c
src/bin/e_sys_main.c