aboutsummaryrefslogtreecommitdiff
path: root/Make.Rules
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2020-04-05 19:31:19 -0700
committerAndrew G. Morgan <morgan@kernel.org>2020-04-05 19:31:19 -0700
commitcbca9abc73acf779a3110baa0d3c66960951b1fa (patch)
tree1c721f40fcfd9144169798fa5bb7ea15def12e2f /Make.Rules
parentad120c13941d6a88d81f18bac480bfac5d7ff972 (diff)
downloadlibcap-cbca9abc73acf779a3110baa0d3c66960951b1fa.tar.gz
Support overriding the preferred shell for capsh.
Either supply --shell=/xx/yy as an argument to capsh, or use the Make.Rules CAPSH_SHELL override when building. This is an adaptation of an idea from Rosen Penev. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'Make.Rules')
-rw-r--r--Make.Rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/Make.Rules b/Make.Rules
index 8452002..d029296 100644
--- a/Make.Rules
+++ b/Make.Rules
@@ -87,6 +87,14 @@ CGO_LDFLAGS_ALLOW := -Wl,-wrap,.+
CGO_REQUIRED=$(shell $(topdir)/go/cgo-required.sh)
endif
+# If you want capsh to launch with something other than /bin/bash
+# build like this:
+#
+# make CAPSH_SHELL='-DSHELL=\"/bin/sh\"'
+#
+# or undefine the following:
+#CAPSH_SHELL := '-DSHELL="/bin/sh"'
+
# When installing setcap, you can arrange for the installation process
# to set its inheritable bit to be able to place capabilities on files.
# It can be used in conjunction with pam_cap (associated with su and