freebsd-nq/usr.bin/sockstat/Makefile
Mariusz Zaborski 7ad30f58dd sockstat: use cap_pwd
The sockstat is using password database operations to obtain
the username. Such operations are disallowed in capability mode.
For such operations Casper is required.

Reported by:	olivier@
Tested by:	olivier@
2021-06-18 18:08:30 +02:00

19 lines
237 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
PROG= sockstat
LIBADD= jail
.if ${MK_CASPER} != "no"
LIBADD+= casper
LIBADD+= cap_net
LIBADD+= cap_netdb
LIBADD+= cap_pwd
LIBADD+= cap_sysctl
CFLAGS+= -DWITH_CASPER
.endif
.include <bsd.prog.mk>