Skip to content

Commit

Permalink
falco-driver-loader: don't fail if chcon is missing in load_kernel_mo…
Browse files Browse the repository at this point in the history
…dule()

Signed-off-by: David Windsor <dwindsor@secureworks.com>
  • Loading branch information
dwindsor authored and poiana committed Nov 2, 2021
1 parent 74661a7 commit 8448d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/falco-driver-loader
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ load_kernel_module() {

if [ -f "${HOME}/.falco/${FALCO_KERNEL_MODULE_FILENAME}" ]; then
echo "* Found a prebuilt ${DRIVER_NAME} module at ${HOME}/.falco/${FALCO_KERNEL_MODULE_FILENAME}, loading it"
chcon -t modules_object_t "${HOME}/.falco/${FALCO_KERNEL_MODULE_FILENAME}" > /dev/null 2>&1
chcon -t modules_object_t "${HOME}/.falco/${FALCO_KERNEL_MODULE_FILENAME}" > /dev/null 2>&1 || true
insmod "${HOME}/.falco/${FALCO_KERNEL_MODULE_FILENAME}" && echo "* Success: ${DRIVER_NAME} module found and inserted"
exit $?
fi
Expand Down

0 comments on commit 8448d02

Please sign in to comment.