Use the more clean install command to create example SUIDs

master
Andrea Cardaci 2020-12-20 19:21:37 +01:00
parent 65857d486b
commit 2746e78a44
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ layout: common
{% capture code %}
{%- if function_id == 'suid' or function_id == 'limited-suid' %}
sudo sh -c 'cp $(which {{ bin_name }}) .; chmod +s ./{{ bin_name }}'
sudo install -m =xs $(which {{ bin_name }}) .
{% endif %}
{%- if function_id == 'capabilities' %}
cp $(which {{ bin_name }}) .