mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-21 09:59:40 +00:00
fix(docker): prevent variable expansion with FALCO_DRIVER_LOADER_OPTIONS
Signed-off-by: Luca Guerra <luca@guerra.sh>
This commit is contained in:
parent
dae36c798a
commit
37ce18f457
@ -27,7 +27,9 @@ if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then
|
|||||||
ln -s "$i" "/usr/src/$base"
|
ln -s "$i" "/usr/src/$base"
|
||||||
done
|
done
|
||||||
|
|
||||||
falco_driver_loader_option_arr=($FALCO_DRIVER_LOADER_OPTIONS)
|
# convert the optional space-separated env variable FALCO_DRIVER_LOADER_OPTIONS to array, prevent
|
||||||
|
# shell expansion and use it as argument list for falco-driver-loader
|
||||||
|
read -a falco_driver_loader_option_arr <<< $FALCO_DRIVER_LOADER_OPTIONS
|
||||||
/usr/bin/falco-driver-loader "${falco_driver_loader_option_arr[@]}"
|
/usr/bin/falco-driver-loader "${falco_driver_loader_option_arr[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user