[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / sbin / pflogd

File: [local] / src / sbin / pflogd / Makefile (download)

Revision 1.10, Mon Aug 29 17:00:30 2022 UTC (21 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.9: +4 -1 lines

Dynamically link these /sbin daemons: dhcpleased, mountd, nfsd, pflogd,
resolvd, slaacd, unwind.
The mitigation story is way better: syscalls are in a randomly located
libc, and every syscall stub is randomly located inside that due to
random relinking.  As opposed to fixed offset inside a release binary.
There is one known consequence: /usr nfs mounting must use statically
configured IP addresses.
ok kettenis florian, others

#	$OpenBSD: Makefile,v 1.10 2022/08/29 17:00:30 deraadt Exp $

CFLAGS+=-Wall -Wmissing-prototypes -Wshadow

# for pcap-int.h
CFLAGS+=-I${.CURDIR}/../../lib/libpcap

LDADD+= -lpcap
DPADD+=	${LIBPCAP}

PROG=	pflogd
SRCS=	pflogd.c privsep.c privsep_fdpass.c
MAN=	pflogd.8

.include <bsd.prog.mk>

# Don't compile pflogd as static binary by default
LDSTATIC=