svn commit: r342776 - head/sbin/savecore
Mark Johnston
markj at FreeBSD.org
Fri Jan 4 19:20:20 UTC 2019
Author: markj
Date: Fri Jan 4 19:20:19 2019
New Revision: 342776
URL: https://svnweb.freebsd.org/changeset/base/342776
Log:
Disable savecore(8)'s libcasper support when WITHOUT_DYNAMICROOT=yes.
This follows the example of other Capsicumized programs in /sbin.
Reported by: Manfred Antar <manfredantar at gmail.com>
MFC with: r342699
Sponsored by: The FreeBSD Foundation
Modified:
head/sbin/savecore/Makefile
Modified: head/sbin/savecore/Makefile
==============================================================================
--- head/sbin/savecore/Makefile Fri Jan 4 19:10:46 2019 (r342775)
+++ head/sbin/savecore/Makefile Fri Jan 4 19:20:19 2019 (r342776)
@@ -11,7 +11,9 @@ MAN= savecore.8
.include <src.opts.mk>
-.if ${MK_CASPER} != "no" && !defined(RESCUE)
+.if ${MK_DYNAMICROOT} == "no"
+.warning ${PROG} built without libcasper support
+.elif ${MK_CASPER} != "no" && !defined(RESCUE)
CFLAGS+= -DWITH_CASPER
LIBADD+= casper cap_fileargs cap_syslog
.endif
More information about the svn-src-all
mailing list