Drafting capabilities

This commit is contained in:
Emilio Pinna
2018-09-12 21:29:53 +01:00
parent 6e11e36a91
commit 1afd9ec9ec
3 changed files with 13 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ layout: common
cp $(which {{ bin_name }}) .
sudo sh -c 'chown 0 ./{{ bin_name }}; chmod +s ./{{ bin_name }}'
{% endif %}
{%- if function_name == 'capabilities-enabled' %}
cp $(which {{ bin_name }}) .
sudo setcap cap_setuid+ep {{ bin_name }}
{% endif %}
{{ example.code }}
{% endcapture %}