From: Wesley Shields Date: Fri, 13 Jun 2014 18:27:44 +0000 (-0400) Subject: Print priv drop msg here too. X-Git-Tag: tcpdump-4.6.0~11 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/316dced5e89990e9b37e0ddab466dfbd8ae6dba1 Print priv drop msg here too. --- diff --git a/tcpdump.c b/tcpdump.c index fc15b423..8407e034 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -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);