OSDN Git Service

Two problems: 1) Sometimes toy_exec() needs to re-exec to gain dropped root permissio...
authorRob Landley <rob@landley.net>
Wed, 10 Sep 2014 04:42:25 +0000 (23:42 -0500)
committerRob Landley <rob@landley.net>
Wed, 10 Sep 2014 04:42:25 +0000 (23:42 -0500)
commitc6705af4231b8071830721f98021d0e79223da12
tree5edbeb82e1a0840044ccb697c3c31829fe34016e
parent7a07c6bc431d441a2363b58a1d82fe7a2a6d75f2
Two problems: 1) Sometimes toy_exec() needs to re-exec to gain dropped root permissions, 2) shouldn't recurse forever without exec, stack depth increases and we may leak other resources. Limit it to ~5 levels.
main.c
toys.h