mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
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:
parent
1a651f1741
commit
42e672f3b1
2 changed files with 7 additions and 0 deletions
3
test/setgid-setuid-sticky.sh
Normal file
3
test/setgid-setuid-sticky.sh
Normal 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
|
|
@ -9,3 +9,7 @@ images:
|
|||
- ubuntu:12.04
|
||||
- ubuntu:14.04
|
||||
- ubuntu:15.04
|
||||
|
||||
|
||||
provision:
|
||||
- setgid-setuid-sticky.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue