1 From 3c42afac11c323fee5da7db771cd20d414fa265d Mon Sep 17 00:00:00 2001
2 From: Rene Luria <rene.luria@infomaniak.com>
3 Date: Sun, 9 Dec 2018 21:51:54 +0100
4 Subject: [PATCH] Fix mark the DSOs as unloadable
6 as suggested by Simon McVittie in
7 https://github.com/stevegrubb/libcap-ng/issues/5 and Carlos O'Donell at
8 https://sourceware.org/bugzilla/show_bug.cgi?id=13502 mark the DSOs as
9 unloadable with -z nodelete to prevent crashes at fork
11 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904808
13 Fix: https://github.com/stevegrubb/libcap-ng/issues/5
15 src/Makefile.am | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 diff --git a/src/Makefile.am b/src/Makefile.am
19 index 5a66d4e..d46d02b 100644
22 @@ -34,5 +34,5 @@ noinst_HEADERS = captab.h
23 libcap_ng_la_SOURCES = cap-ng.c lookup_table.c
25 libcap_ng_la_DEPENDENCIES = $(libcap_ng_la_SOURCES) ../config.h
26 -libcap_ng_la_LDFLAGS = -Wl,-z,relro
27 +libcap_ng_la_LDFLAGS = -Wl,-z,relro -Wl,-z,nodelete