Mark application as privileged or not as early as possible

Signed-off-by: Simon Busch <morphis@gravedo.de>