diff options
author | LinkTed <link.ted@mailbox.org> | 2021-06-13 19:26:24 +0200 |
---|---|---|
committer | Mike Frysinger <vapier@gmail.com> | 2021-12-23 17:29:10 -0500 |
commit | 6e214b261604c4ab1ffc244272443a587bb59927 (patch) | |
tree | 618ab3e7bb84f80eff7a8c8e23c1700a2ca587be /mk | |
parent | fd1e4a384af44a8687b3a5369283f80f1cf29d84 (diff) |
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.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/os-Linux.mk | 6 |
1 files changed, 6 insertions, 0 deletions
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 |