Lines Matching +full:libcap +full:- +full:dev
1 # Common version number defines for libcap
2 LIBTITLE=libcap
14 # Autoconf-style prefixes are activated when $(prefix) is defined.
21 lib=$(shell ldd /usr/bin/ld|egrep "ld-linux|ld.so"|cut -d/ -f2)
54 KERNEL_HEADERS := $(topdir)/libcap/include/uapi
55 IPATH += -fPIC -I$(KERNEL_HEADERS) -I$(topdir)/libcap/include
58 DEFINES := -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
59 COPTS ?= -O2
62 BUILD_COPTS ?= -O2
67 DEBUG = -g #-DDEBUG
68 WARNINGS=-Wall -Wwrite-strings \
69 -Wpointer-arith -Wcast-qual -Wcast-align \
70 -Wstrict-prototypes -Wmissing-prototypes \
71 -Wnested-externs -Winline -Wshadow
72 LD=$(CC) -Wl,-x -shared
73 LDFLAGS ?= #-g
74 LIBCAPLIB := -L$(topdir)/libcap -lcap
75 PSXLINKFLAGS := -lpthread -Wl,-wrap,pthread_create
76 LIBPSXLIB := -L$(topdir)/libcap -lpsx $(PSXLINKFLAGS)
78 BUILD_GPERF := $(shell which gperf >/dev/null 2>/dev/null && echo yes)
81 INCS=$(topdir)/libcap/include/sys/capability.h
82 CFLAGS += -Dlinux $(WARNINGS) $(DEBUG)
83 INDENT := $(shell if [ -n "$$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
85 # SHARED tracks whether or not the SHARED libraries (libcap.so,
89 # DYNAMIC controls how capsh etc are linked - to shared or static libraries
90 DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo $(SHARED); else echo no ; fi)
92 PAM_CAP ?= $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo $(SHARED) ; else echo n…
99 # need libpsx for non-Go use? Tl;dr for POSIX semantics security:
101 # https://sites.google.com/site/fullycapable/who-ordered-libpsx
107 GOLANG ?= $(shell if [ -n "$(shell $(GO) version 2>/dev/null)" ]; then echo yes ; else echo no ; fi)
112 CGO_REQUIRED=$(shell $(topdir)/go/cgo-required.sh $(GO))
115 # real golang support arrives for non-cgo support, so drop the last
117 CGO_LDFLAGS_ALLOW := CGO_LDFLAGS_ALLOW="-Wl,-?-wrap[=,][^-.@][^,]*"
119 CGO_CFLAGS := -I$(topdir)/libcap/include
120 CGO_LDFLAGS := -L$(topdir)/libcap
127 # make CAPSH_SHELL='-DSHELL=\"/bin/sh\"'
130 #CAPSH_SHELL := '-DSHELL="/bin/sh"'
144 # the environment for what became known as the sendmail-capabilities
149 # they are also nullifying the difference between a p-bit and an i-bit.
158 # any capability - a ready made local exploit mechanism.
167 LOCALCLEAN=rm -f *~ core
168 DISTCLEAN=@find . \( -name '*.orig' -o -name '*.rej' \) | xargs rm -f