Print priv drop msg here too.

This commit is contained in:
Wesley Shields 2014-06-13 14:27:44 -04:00 committed by Denis Ovsienko
parent 923919d114
commit 316dced5e8

View File

@ -713,6 +713,9 @@ droproot(const char *username, const char *chroot_dir)
if (ret < 0) {
fprintf(stderr, "error : ret %d\n", ret);
}
else {
printf("dropped privs to %s\n", username);
}
/* We don't need CAP_SETUID and CAP_SETGID */
capng_update(CAPNG_DROP, CAPNG_EFFECTIVE, CAP_SETUID);
capng_update(CAPNG_DROP, CAPNG_EFFECTIVE, CAP_SETUID);