diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2020-04-05 19:31:19 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2020-04-05 19:31:19 -0700 |
commit | cbca9abc73acf779a3110baa0d3c66960951b1fa (patch) | |
tree | 1c721f40fcfd9144169798fa5bb7ea15def12e2f /Make.Rules | |
parent | ad120c13941d6a88d81f18bac480bfac5d7ff972 (diff) | |
download | libcap-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.Rules | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |