Edit

IABSD.fr/src/sbin/resolvd/Makefile

Branch :

  • Show log

    Commit

  • Author : deraadt
    Date : 2022-08-29 17:00:29
    Hash : 46ebbf29
    Message : 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

  • sbin/resolvd/Makefile
  • #	$OpenBSD: Makefile,v 1.2 2022/08/29 17:00:30 deraadt Exp $
    
    PROG=	resolvd
    SRCS=	resolvd.c
    
    MAN=	resolvd.8
    
    #DEBUG=	-g -DDEBUG=3 -O0
    
    CFLAGS+= -Wall -I${.CURDIR}
    CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
    CFLAGS+= -Wmissing-declarations
    CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual
    CFLAGS+= -Wsign-compare
    
    .include <bsd.prog.mk>
    
    # Don't compile resolvd as static binary by default
    LDSTATIC=