-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from dev-sec/style
style update
- Loading branch information
Showing
25 changed files
with
293 additions
and
137 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
--- | ||
- name: remove packages | ||
apt: name='{{item}}' state=removed | ||
- name: remove deprecated or insecure packages | package-01 - package-09 | ||
apt: | ||
name: '{{ item }}' | ||
state: 'absent' | ||
with_items: | ||
- "{{os_security_packages_list}}" | ||
when: os_security_packages_clean | ||
- '{{ os_security_packages_list }}' | ||
when: 'os_security_packages_clean' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
--- | ||
|
||
- name: create limits.d-directory if it does not exist | ||
file: path='/etc/security/limits.d' owner=root group=root mode=0755 state=directory | ||
when: os_security_kernel_enable_core_dump | ||
- name: create limits.d-directory if it does not exist | sysctl-31a, sysctl-31b | ||
file: | ||
path: '/etc/security/limits.d' | ||
owner: 'root' | ||
group: 'root' | ||
mode: '0755' | ||
state: 'directory' | ||
when: 'os_security_kernel_enable_core_dump' | ||
|
||
- name: create sane limits.conf | ||
template: src='limits.conf.j2' dest='/etc/security/limits.d/10.hardcore.conf' owner=root group=root mode=0440 | ||
when: os_security_kernel_enable_core_dump | ||
- name: create sane limits.conf | sysctl-31a, sysctl-31b | ||
template: | ||
src: 'limits.conf.j2' | ||
dest: '/etc/security/limits.d/10.hardcore.conf' | ||
owner: 'root' | ||
group: 'root' | ||
mode: '0440' | ||
when: 'os_security_kernel_enable_core_dump' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
--- | ||
- name: create login.defs | ||
template: src='login.defs.j2' dest='/etc/login.defs' owner=root group=root mode=0444 | ||
- name: create login.defs | os-05, os-05b | ||
template: | ||
src: 'login.defs.j2' | ||
dest: '/etc/login.defs' | ||
owner: 'root' | ||
group: 'root' | ||
mode: '0444' | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
|
||
# modprobe |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
--- | ||
- name: create profile.conf | ||
template: src='profile.conf.j2' dest='/etc/profile.d/pinerolo_profile.sh' owner=root group=root mode=0750 | ||
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 |
Oops, something went wrong.