You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
if [[ ! -z $RUST_SUDO ]]; then
|
|
|
|
exec sudo -E $@
|
|
|
|
else
|
|
|
|
if [[ ! -z $RUST_SETPTRACE ]]; then
|
|
if [[ -z "$(getcap $1 | grep -i cap_sys_ptrace)" ]]; then
|
|
echo "setting CAP_SYS_PTRACE=ep for $1"
|
|
sudo setcap 'CAP_SYS_PTRACE=ep' $1
|
|
fi
|
|
fi
|
|
|
|
exec $@
|
|
|
|
fi
|