Skip to content
Permalink
Browse files

Merge pull request #419 from zawazawa0316/fix_5

Fix check conditions
  • Loading branch information
konstruktoid committed Mar 9, 2020
2 parents e1feca8 + 3356633 commit 937ec4958a0b9767d5e1ee056fc9afa09fcb43f1
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/5_container_runtime.sh
@@ -40,7 +40,7 @@ check_5_1() {
for c in $containers; do
policy=$(docker inspect --format 'AppArmorProfile={{ .AppArmorProfile }}' "$c")

if [ "$policy" = "AppArmorProfile=" ] || [ "$policy" = "AppArmorProfile=[]" ] || [ "$policy" = "AppArmorProfile=<no value>" ]; then
if [ "$policy" = "AppArmorProfile=" ] || [ "$policy" = "AppArmorProfile=[]" ] || [ "$policy" = "AppArmorProfile=<no value>" ] || [ "$policy" = "AppArmorProfile=unconfined" ]; then
# If it's the first container, fail the test
if [ $fail -eq 0 ]; then
warn "$check_5_1"
@@ -227,7 +227,7 @@ check_5_5() {
# Go over each directory in sensitive dir and see if they exist in the volumes
for v in $sensitive_dirs; do
sensitive=0
if echo "$volumes" | grep -e "{.*\s$v\s.*true\s}" 2>/tmp/null 1>&2; then
if echo "$volumes" | grep -e "{.*\s$v\s.*true\s.*}" 2>/tmp/null 1>&2; then
sensitive=1
fi
if [ $sensitive -eq 1 ]; then

0 comments on commit 937ec49

Please sign in to comment.
You can’t perform that action at this time.