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