mirror of
https://github.com/falcosecurity/falco.git
synced 2026-04-02 18:12:15 +00:00
Compare commits
1 Commits
fix/use_pl
...
fix/kmod_c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f84f83136b |
@@ -394,7 +394,29 @@ clean_kernel_module() {
|
|||||||
echo "[WARNING] Removing '${KMOD_NAME}' version '${CURRENT_VER}' failed."
|
echo "[WARNING] Removing '${KMOD_NAME}' version '${CURRENT_VER}' failed."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# While modinfo sees falco modules installed,
|
||||||
|
# clean them up.
|
||||||
|
echo "Cleaning up any leftover reference to falco.ko around /lib/modules"
|
||||||
|
modinfo --filename ${KMOD_NAME}
|
||||||
|
while [ $? -eq 0 ]
|
||||||
|
do
|
||||||
|
falco_path=$(modinfo --filename ${KMOD_NAME})
|
||||||
|
echo "Removing file: ${falco_path}"
|
||||||
|
rm -f $falco_path
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "[WARNING] Removing '${falco_path}' failed."
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
depmod ${KERNEL_RELEASE}
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "[WARNING] Depmod after '${falco_path}' removal failed."
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
modinfo --filename ${KMOD_NAME}
|
||||||
|
done
|
||||||
|
echo "Cleaned up /lib/modules"
|
||||||
|
|
||||||
print_clean_termination
|
print_clean_termination
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user