]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Print priv drop msg here too.
authorWesley Shields <[email protected]>
Fri, 13 Jun 2014 18:27:44 +0000 (14:27 -0400)
committerDenis Ovsienko <[email protected]>
Sun, 15 Jun 2014 18:09:45 +0000 (22:09 +0400)
tcpdump.c

index fc15b42367fa280f5d687832094dedf5f967b378..8407e034212bb1e31e4f09a95eccd65acb8abec6 100644 (file)
--- 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);