Merge "V-38623: rsyslog file permissions"

This commit is contained in:
Jenkins 2015-10-15 14:33:54 +00:00 committed by Gerrit Code Review
commit 15159ff146
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,6 @@
Ubuntu sets the mode on rsyslog files to ``0640`` by default, but the STIG
requires ``0600`` or less. The Ansible tasks will adjust the rsyslog
configuration so that any new log files will have the mode set to ``0600``.
This will take effect the next time that log files are rotated with
``logrotate`` (configured in V-38624).

View File

@ -29,6 +29,11 @@
name: postfix
state: restarted
- name: restart rsyslog
service:
name: rsyslog
state: restarted
- name: restart ssh
service:
name: ssh

View File

@ -103,3 +103,16 @@
- file_perms
- cat2
- V-38504
# This change will go into effect on the next log rotation.
- name: V-38623 - All rsyslog-generated files must have mode 0600 or less
lineinfile:
dest: /etc/rsyslog.conf
regexp: "^(#)?\\$FileCreateMode"
line: "$FileCreateMode 0600"
notify:
- restart rsyslog
tags:
- file_perms
- cat2
- V-38623