Blame SOURCES/0008-Don-t-print-out-we-dropped-root-we-are-always-droppi.patch
|
|
f6b043 |
From d5508c13119404102104a3935e7445c9fddf79b5 Mon Sep 17 00:00:00 2001
|
|
|
f6b043 |
From: rpm-build <rpm-build>
|
|
|
f6b043 |
Date: Fri, 3 Feb 2017 09:43:03 +0100
|
|
|
f6b043 |
Subject: [PATCH 8/8] Don't print out we dropped root, we are always dropping
|
|
|
f6b043 |
it
|
|
|
f6b043 |
|
|
|
f6b043 |
---
|
|
|
f6b043 |
tcpdump.c | 5 -----
|
|
|
f6b043 |
1 file changed, 5 deletions(-)
|
|
|
f6b043 |
|
|
|
f6b043 |
diff --git a/tcpdump.c b/tcpdump.c
|
|
|
f6b043 |
index 29f7f87..18c4a5c 100644
|
|
|
f6b043 |
--- a/tcpdump.c
|
|
|
f6b043 |
+++ b/tcpdump.c
|
|
|
f6b043 |
@@ -618,8 +618,6 @@ droproot(const char *username, const char *chroot_dir)
|
|
|
f6b043 |
int ret = capng_change_id(pw->pw_uid, pw->pw_gid, CAPNG_NO_FLAG);
|
|
|
f6b043 |
if (ret < 0) {
|
|
|
f6b043 |
fprintf(stderr, "error : ret %d\n", ret);
|
|
|
f6b043 |
- } else {
|
|
|
f6b043 |
- fprintf(stderr, "dropped privs to %s\n", username);
|
|
|
f6b043 |
}
|
|
|
f6b043 |
}
|
|
|
f6b043 |
#else
|
|
|
f6b043 |
@@ -632,9 +630,6 @@ droproot(const char *username, const char *chroot_dir)
|
|
|
f6b043 |
pcap_strerror(errno));
|
|
|
f6b043 |
exit_tcpdump(1);
|
|
|
f6b043 |
}
|
|
|
f6b043 |
- else {
|
|
|
f6b043 |
- fprintf(stderr, "dropped privs to %s\n", username);
|
|
|
f6b043 |
- }
|
|
|
f6b043 |
#endif /* HAVE_LIBCAP_NG */
|
|
|
f6b043 |
}
|
|
|
f6b043 |
else {
|
|
|
f6b043 |
--
|
|
|
f6b043 |
2.9.3
|
|
|
f6b043 |
|