This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Test program for the ambient capabilities | |
* | |
* You need to install libcap-ng-dev first, then compile using: | |
* $ gcc -o ambient ambient.c -lcap-ng && sudo setcap cap_setpcap,cap_net_raw,cap_net_admin,cap_sys_nice+eip ambient | |
* | |
* To get a shell with additional caps that can be inherited do: | |
* | |
* ./ambient /bin/bash | |
*/ |