]> The Tcpdump Group git mirrors - tcpdump/commit
Fix auto-enabling of Capsicum on FreeBSD with Autoconf. [skip appveyor]
authorDenis Ovsienko <[email protected]>
Tue, 3 Aug 2021 23:20:36 +0000 (00:20 +0100)
committerDenis Ovsienko <[email protected]>
Wed, 29 Sep 2021 14:10:52 +0000 (15:10 +0100)
commitf91c4c03e5df4b1eb8e24c5cd5a25505804ea647
tree91f06484840d476ddb29e5c0bfb177c8220d0dbc
parent7e1c13f72eda83f50f26cb2fa901dcb35c7eafb1
Fix auto-enabling of Capsicum on FreeBSD with Autoconf. [skip appveyor]

Even after commit 6393bb6 --with-sandbox-capsicum didn't work entirely
as documented, as it defaulted to disabled:

checking whether to sandbox using capsicum... no
checking whether to sandbox using Casper library... no

Get the test condition right so it does what it says:

checking sys/capsicum.h usability... yes
checking sys/capsicum.h presence... yes
checking for sys/capsicum.h... yes
checking for cap_enter... yes
checking for cap_rights_limit... yes
checking for cap_ioctls_limit... yes
checking for openat... yes
checking for cap_init in -lcasper... yes
checking for cap_gethostbyaddr in -lcap_dns... yes
checking whether to sandbox using capsicum... yes
checking whether to sandbox using Casper library... yes

(cherry picked from commit ac23514a0cc7a08eec383aac352fa3f7d39dec2c)
CHANGES
configure
configure.ac