mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-11 19:49:28 +00:00
fix(test): correct kernel module name
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
@@ -411,8 +411,8 @@ class FalcoTest(Test):
|
|||||||
md5_output = subprocess.check_output(["md5sum", "/boot/config-{}".format(kernel_release)]).rstrip()
|
md5_output = subprocess.check_output(["md5sum", "/boot/config-{}".format(kernel_release)]).rstrip()
|
||||||
config_hash = md5_output.split(" ")[0]
|
config_hash = md5_output.split(" ")[0]
|
||||||
|
|
||||||
probe_filename = "falco-probe-{}-{}-{}-{}.ko".format(falco_version, arch, kernel_release, config_hash)
|
probe_filename = "falco-{}-{}-{}-{}.ko".format(falco_version, arch, kernel_release, config_hash)
|
||||||
driver_path = os.path.join(self.falcodir, "driver", "falco-probe.ko")
|
driver_path = os.path.join(self.falcodir, "driver", "falco.ko")
|
||||||
module_path = os.path.join(self.module_dir, probe_filename)
|
module_path = os.path.join(self.module_dir, probe_filename)
|
||||||
self.log.debug("Copying {} to {}".format(driver_path, module_path))
|
self.log.debug("Copying {} to {}".format(driver_path, module_path))
|
||||||
shutil.copyfile(driver_path, module_path)
|
shutil.copyfile(driver_path, module_path)
|
||||||
|
Reference in New Issue
Block a user