Skip to content

Commit

Permalink
[Ubuntu] disable apparmor (#10024)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailkoliada authored Jun 14, 2024
1 parent fb41178 commit 145c80d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/ubuntu/scripts/build/configure-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,7 @@ fi
if is_ubuntu22; then
sed -i 's/openssl_conf = openssl_init/#openssl_conf = openssl_init/g' /etc/ssl/openssl.cnf
fi

# Disable apparmor
systemctl is-active --quiet apparmor.service && systemctl stop apparmor.service
systemctl disable apparmor.service
6 changes: 6 additions & 0 deletions images/ubuntu/scripts/tests/System.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ Describe "Disk free space" -Skip:(-not [String]::IsNullOrEmpty($env:AGENT_NAME)
$freeSpace | Should -BeGreaterOrEqual 17GB
}
}

Describe "Apparmor is disabled" {
It "Apparmor is disabled" {
systemctl is-active apparmor | Should -Be "inactive"
}
}

0 comments on commit 145c80d

Please sign in to comment.