capabilities: Add support for Linux capabilities(7)

This adds capabilities for start-stop-daemon by adding --capabilities
option. As a result, the user can specify the inheritable, ambient and
bounding set by define capabilities in the service script.

This fixes #314.
This commit is contained in:
LinkTed
2021-06-13 19:26:24 +02:00
committed by Mike Frysinger
parent fd1e4a384a
commit 6e214b2616
14 changed files with 118 additions and 7 deletions

View File

@@ -27,6 +27,12 @@ endif
endif
ifeq (${MKCAP},yes)
CPPFLAGS+= -DHAVE_CAP
LIBCAP?= -lcap
LDADD += $(LIBCAP)
endif
ifeq (${MKAUDIT},yes)
LIBAUDIT?= -laudit
CPPFLAGS+= -DHAVE_AUDIT