![Major Hayden](/assets/img/avatar_default.png)
This role contains around 150 controls from the 270+ controls that exist in the RHEL 6 STIG. New controls are still being added. Implements: blueprint security-hardening Change-Id: I0578f86bf42d55242bc72b97b40a5935a3cb18d6
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
---
|
|
# Copyright 2015, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# This is the default in Ubuntu 14.04
|
|
- name: V-38596 - Enable virtual address space randomization
|
|
sysctl:
|
|
name: kernel.randomize_va_space
|
|
value: 2
|
|
state: present
|
|
sysctl_set: yes
|
|
tags:
|
|
- kernel
|
|
- cat2
|
|
- V-38596
|
|
|
|
- name: V-38600 - Disable sending ICMPv4 redirects
|
|
sysctl:
|
|
name: net.ipv4.conf.default.send_redirects
|
|
value: 0
|
|
state: present
|
|
sysctl_set: yes
|
|
tags:
|
|
- kernel
|
|
- cat2
|
|
- V-38600
|
|
|
|
- name: V-38601 - Disable sending ICMPv4 redirects on all interfaces
|
|
sysctl:
|
|
name: net.ipv4.conf.all.send_redirects
|
|
value: 0
|
|
state: present
|
|
sysctl_set: yes
|
|
tags:
|
|
- kernel
|
|
- cat2
|
|
- V-38601
|
|
|
|
- name: V-38490 - Disable usb-storage module
|
|
lineinfile:
|
|
dest: /etc/modprobe.d/disable-usb-storage.conf
|
|
line: "install usb-storage /bin/true"
|
|
create: yes
|
|
when: disable_usb_storage is defined and disable_usb_storage | bool
|
|
tags:
|
|
- kernel
|
|
- cat2
|
|
- V-38490
|