mcst-linux-kernel/patches-2024.06.26/tcpdump-4.9.3/0003-drop-privs-silently.patch

22 lines
578 B
Diff

--- a/tcpdump.c 2020-02-13 17:58:29.353002869 +0300
+++ b/tcpdump.c 2020-02-13 17:59:12.692884648 +0300
@@ -609,8 +609,6 @@
int ret = capng_change_id(pw->pw_uid, pw->pw_gid, CAPNG_NO_FLAG);
if (ret < 0)
error("capng_change_id(): return %d\n", ret);
- else
- fprintf(stderr, "dropped privs to %s\n", username);
}
#else
if (initgroups(pw->pw_name, pw->pw_gid) != 0 ||
@@ -622,9 +620,6 @@
pcap_strerror(errno));
exit_tcpdump(1);
}
- else {
- fprintf(stderr, "dropped privs to %s\n", username);
- }
#endif /* HAVE_LIBCAP_NG */
}
else {