Skip to content

Instantly share code, notes, and snippets.

@rogeruiz
Created March 2, 2017 15:06
Show Gist options
  • Save rogeruiz/6bb8b602db311b732719ed65dd1eaae5 to your computer and use it in GitHub Desktop.
Save rogeruiz/6bb8b602db311b732719ed65dd1eaae5 to your computer and use it in GitHub Desktop.
<check_type:"Unix">
<custom_item>
type : CMD_EXEC
description : "Make sure that /tmp partion is properly configured"
cmd : "mount -l"
expect : ".*\/tmp .+noexec,nosuid,nodev"
</custom_item>
<custom_item>
type : CMD_EXEC
description : "Make sure that /home partion is properly configured"
cmd : "mount -l"
expect : ".*\/home .+nodev"
</custom_item>
<custom_item>
type : CMD_EXEC
description : "Make sure that /home partion is properly configured"
cmd : "mount -l"
expect : ".*\/var\/tmp .+noexec,nosuid,nodev"
</custom_item>
<custom_item>
type : CMD_EXEC
description : "Make sure that /home partion is properly configured"
cmd : "mount -l"
expect : ".*\/var\/log .+noexec,nosuid,nodev"
</custom_item>
</check_type>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment