AppArmor is a hard requirement
This commit is contained in:
parent
fc0809a4c1
commit
349af420f0
1 changed files with 1 additions and 5 deletions
|
@ -9,11 +9,7 @@ MACHINE="$(jq --raw-output '.machine' ${CONFIG_FILE})"
|
||||||
DATA="$(jq --raw-output '.data // "/usr/share/hassio"' ${CONFIG_FILE})"
|
DATA="$(jq --raw-output '.data // "/usr/share/hassio"' ${CONFIG_FILE})"
|
||||||
|
|
||||||
# AppArmor Support
|
# AppArmor Support
|
||||||
if command -v apparmor_parser > /dev/null 2>&1 && grep hassio-supervisor /sys/kernel/security/apparmor/profiles > /dev/null 2>&1; then
|
|
||||||
APPARMOR="--security-opt apparmor=hassio-supervisor"
|
APPARMOR="--security-opt apparmor=hassio-supervisor"
|
||||||
else
|
|
||||||
APPARMOR="--security-opt apparmor:unconfined"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Init supervisor
|
# Init supervisor
|
||||||
HASSIO_DATA=${DATA}
|
HASSIO_DATA=${DATA}
|
||||||
|
|
Loading…
Reference in a new issue