Skip to content

Commit

Permalink
Merge pull request #1 from hardening-io/profile
Browse files Browse the repository at this point in the history
Add profile.conf configuration
  • Loading branch information
arlimus committed May 11, 2015
2 parents fd84415 + e097f02 commit fd995bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/ansible-os-hardening/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
- name: create securetty
template: src='securetty.j2' dest='/etc/securetty' owner=root group=root mode=0400

- name: create profile.conf
template: src='profile.conf.j2' dest='/etc/profile.d/pinerolo_profile.sh' owner=root group=root mode=0750
when: not os_security_kernel_enable_core_dump

- name: minimize access
file: path='{{item}}' mode='go-w' recurse=yes
with_items:
Expand Down
4 changes: 4 additions & 0 deletions roles/ansible-os-hardening/templates/profile.conf.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# {{ ansible_managed }}

# Disable core dumps via soft limits for all users. Compliance to this setting is voluntary and can be modified by users up to a hard limit. This setting is a sane default.
ulimit -S -c 0 > /dev/null 2>&1

0 comments on commit fd995bf

Please sign in to comment.