]> git.proxmox.com Git - mirror_frr.git/commit - vtysh/vtysh.h
vtysh: cleanup SUID handling
authorDavid Lamparter <equinox@opensourcerouting.org>
Sun, 27 Aug 2017 18:38:54 +0000 (20:38 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 28 Aug 2017 21:49:58 +0000 (23:49 +0200)
commit32f3268f51479989ec29790f7ba9ec03a2cacdcc
tree67484bbb666b028e82ae1d72bf73aaa0f0b3199a
parent3df31ebb0328b4b84fa11d5fbd956dcc30c44dfe
vtysh: cleanup SUID handling

Eliminate several more SUID problems (VTYSH_LOG, history file) and make
the whole SUID approach more robust.  Still possibly unsafe to use, but
much better.

[v2: wrap seteuid/setegid calls]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
vtysh/vtysh.h
vtysh/vtysh_main.c