mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-25 12:19:56 +00:00
fix(userspace/falco): do not always rethrow the exception
Co-Authored-By: Lorenzo Fontana <fontanalorenz@gmail.com> Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
@@ -1143,11 +1143,14 @@ int falco_init(int argc, char **argv)
|
|||||||
// Try to insert the Falco kernel module
|
// Try to insert the Falco kernel module
|
||||||
if(system("modprobe " PROBE_NAME " > /dev/null 2> /dev/null"))
|
if(system("modprobe " PROBE_NAME " > /dev/null 2> /dev/null"))
|
||||||
{
|
{
|
||||||
falco_logger::log(LOG_ERR, "Unable to load the driver. Exiting.\n");
|
falco_logger::log(LOG_ERR, "Unable to load the driver.\n");
|
||||||
}
|
}
|
||||||
open_f(inspector);
|
open_f(inspector);
|
||||||
}
|
}
|
||||||
rethrow_exception(current_exception());
|
else
|
||||||
|
{
|
||||||
|
rethrow_exception(current_exception());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user