Skip to content
Snippets Groups Projects
Commit 8fc69040 authored by Konstantinos Karampogias's avatar Konstantinos Karampogias Committed by Konstantin Semenov
Browse files

Improve etcd data directory extraction


- If data-dir is not the last argument, the remaining arguments
  are captured preventing the correct checking.

Signed-off-by: default avatarKonstantin Semenov <ksemenov@pivotal.io>
parent be0134de
No related branches found
No related tags found
No related merge requests found
......@@ -942,7 +942,7 @@ groups:
- id: 1.4.11
text: "Ensure that the etcd data directory permissions are set to 700 or more restrictive (Scored)"
audit: ps -ef | grep $etcdbin | grep -v grep | sed 's%.*data-dir[= ]\(\S*\)%\1%' | xargs stat -c %a
audit: ps -ef | grep $etcdbin | grep -v grep | sed 's%.*data-dir[= ]\(\S*\)%\1%' | awk '{print $1}' | xargs stat -c %a
tests:
test_items:
- flag: "700"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment