Skip to content

Commit

Permalink
Merge pull request #13 from emilyh315/patch-1
Browse files Browse the repository at this point in the history
Edit control "cis-docker-benchmark-1.11"
  • Loading branch information
atomic111 authored Dec 13, 2016
2 parents e164aeb + a0eafb3 commit 26744e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controls/docker_host_os_level1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@

control 'cis-docker-benchmark-1.11' do
impact 1.0
title 'Audit Docker files and directories - docker.service'
desc 'Apart from auditing your regular Linux file system and system calls, audit all Docker related files and directories. Docker daemon runs with \'root\' privileges. Its behavior depends on some key files and directories. docker.service is one such file. The docker.service file might be present if the daemon parameters have been changed by an administrator. It holds various parameters for Docker daemon. It must be audited, if applicable.'
title 'Audit Docker files and directories - docker.socket'
desc 'Apart from auditing your regular Linux file system and system calls, audit all Docker related files and directories. Docker daemon runs with \'root\' privileges. Its behavior depends on some key files and directories. docker.socket is one such file. It holds various parameters for Docker daemon socket. It must be audited, if applicable.'
ref 'https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/chap-system_auditing.html'

if docker.path
if docker.socket
rule = '-w ' + docker.socket + ' -p rwxa -k docker'
describe auditd_rules do
its(:lines) { should include(rule) }
Expand Down

0 comments on commit 26744e8

Please sign in to comment.