[tcpdump-workers] Fix FreeBSD capsicum build on FreeBSD 10.1

Loganaden Velvindron logan at elandsys.com
Sat Dec 6 09:51:54 EST 2014

Hi guys,

Support for FreeBSD capsicum doesn't work on FreeBSD 10.1, due to 
cap_rights_init which returns a struct, instead of an int.

I think that we should follow OpenSSH and not test cap_rights_init.

Would it also be possible to add this to the next 4.6.x release as a bugfix ?

Kind regards,

Below is a proposed diff:
diff --git a/configure.in b/configure.in
index d0e90dd..ecfee64 100644
--- a/configure.in
+++ b/configure.in
@@ -208,7 +208,7 @@ AC_ARG_WITH(sandbox-capsicum,
 # All of them must be available in order to enable capsicum sandboxing.
 if test ! -z "$with_sandbox-capsicum" && test "$with_sandbox-capsicum" != "no" ; then
-       AC_CHECK_FUNCS(cap_enter cap_rights_init cap_rights_limit cap_ioctls_limit openat,
+       AC_CHECK_FUNCS(cap_enter cap_rights_limit cap_ioctls_limit openat,

More information about the tcpdump-workers mailing list