From 6e214b261604c4ab1ffc244272443a587bb59927 Mon Sep 17 00:00:00 2001 From: LinkTed Date: Sun, 13 Jun 2021 19:26:24 +0200 Subject: 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. --- mk/os-Linux.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mk') diff --git a/mk/os-Linux.mk b/mk/os-Linux.mk index e83f8616..00521c80 100644 --- a/mk/os-Linux.mk +++ b/mk/os-Linux.mk @@ -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 -- cgit v1.2.3