aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/tcpdump/tcpdump.c2
-rw-r--r--sbin/ping/ping.c3
-rw-r--r--usr.bin/kdump/kdump.c2
3 files changed, 0 insertions, 7 deletions
diff --git a/contrib/tcpdump/tcpdump.c b/contrib/tcpdump/tcpdump.c
index b1630818f615..c8ca0bf5a4b3 100644
--- a/contrib/tcpdump/tcpdump.c
+++ b/contrib/tcpdump/tcpdump.c
@@ -1921,8 +1921,6 @@ main(int argc, char **argv)
#endif
if (cansandbox && cap_enter() < 0 && errno != ENOSYS)
error("unable to enter the capability mode");
- if (cap_sandboxed())
- fprintf(stderr, "capability mode sandbox enabled\n");
#endif /* __FreeBSD__ */
do {
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index f24ecdeea0c9..23d5696b3ea2 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -737,9 +737,6 @@ main(int argc, char *const *argv)
if (cansandbox && cap_enter() < 0 && errno != ENOSYS)
err(1, "cap_enter");
- if (cap_sandboxed())
- fprintf(stderr, "capability mode sandbox enabled\n");
-
cap_rights_init(&rights, CAP_RECV, CAP_EVENT, CAP_SETSOCKOPT);
if (cap_rights_limit(srecv, &rights) < 0 && errno != ENOSYS)
err(1, "cap_rights_limit srecv");
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index 3b5a8474eaf8..a46fe65421b5 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -352,8 +352,6 @@ main(int argc, char *argv[])
limitfd(STDIN_FILENO);
limitfd(STDOUT_FILENO);
limitfd(STDERR_FILENO);
- if (cap_sandboxed())
- fprintf(stderr, "capability mode sandbox enabled\n");
TAILQ_INIT(&trace_procs);
drop_logged = 0;