Edit

IABSD.fr/src/libexec/spamlogd/Makefile

Branch :

  • Show log

    Commit

  • Author : brynet
    Date : 2019-07-25 14:53:21
    Hash : 4053af61
    Message : Yet another workaround for crappy libpcap API design Add an internal version of pcap_open_live that ensures bpf(4) devices are opened read-only before locking. Neither pflogd(8) or spamlogd(8) require write access to bpf(4). Inspired by similar solution in OpenBSD tcpdump(8). pflogd(8) was safe since being unveiled last year, but spamlogd(8) was having /dev/bpf opened O_RDWR. Issue discovered by bluhm@'s unveil(2) accounting commit. ok deraadt@, mestre@ (thanks for testing spamlogd!)

  • libexec/spamlogd/Makefile
  • #	$OpenBSD: Makefile,v 1.9 2019/07/25 14:53:21 brynet Exp $
    
    PROG=	spamlogd
    SRCS=	spamlogd.c sync.c gdcopy.c
    MAN=	spamlogd.8
    
    CFLAGS+= -Wall -Wstrict-prototypes -I${.CURDIR}/../spamd
    # for pcap-int.h
    CFLAGS+=-I${.CURDIR}/../../lib/libpcap
    LDADD+= -lpcap -lcrypto
    DPADD+=	${LIBPCAP} ${LIBCRYPTO}
    .PATH:  ${.CURDIR}/../spamd
    
    .include <bsd.prog.mk>