Provisioner script to setup resource tests for setgid/setuid/sticky bit tests. This appears to be the correct mechanism per docker_run, but I don't see any other provisioner scripts, so I suspect there is a different Chef-internal mechanism at play here.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2017-08-27 19:57:33 -04:00
parent 1a651f1741
commit 42e672f3b1
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,3 @@
echo 'echo i am setuid' > /root/i-am-setuid && chmod 4700 /root/i-am-setuid
echo 'echo i am setgid' > /root/i-am-setgid && chmod 2700 /root/i-am-setgid
mkdir /root/i-am-sticky && chmod 1700 /root/i-am-sticky

View file

@ -9,3 +9,7 @@ images:
- ubuntu:12.04
- ubuntu:14.04
- ubuntu:15.04
provision:
- setgid-setuid-sticky.sh