mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2025-01-23 16:18:26 +08:00
Print priv drop msg here too.
This commit is contained in:
parent
923919d114
commit
316dced5e8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user