Clarify the need of the SUID cp+chmod command in the examples

This commit is contained in:
Andrea Cardaci 2020-01-07 18:47:03 +01:00
parent 1f9dbbf6eb
commit 6baf0c2d0e

View File

@ -24,6 +24,8 @@ layout: common
{% capture code %}
{%- if function_id == 'suid' or function_id == 'limited-suid' %}
# create a local SUID copy of the binary for the sake of the example
# in a real world scenario ignore this line and use the proper path below
sudo sh -c 'cp $(which {{ bin_name }}) .; chmod +s ./{{ bin_name }}'
{% endif %}
{%- if function_id == 'capabilities' %}