As of kernel 5.7, kallsyms_lookup_name() is no longer exported, so we have resolve the symbol manually.
The method settled on is to use register a kprobe on kallsyms_lookup_name and save the address into an appropriately defined function pointer (thanks to @f0lg0 for the idea!).
Also included is some preprocessor logic in escape.c to use the proc_ops struct which replaces file_operatons in proc_create() as of kernel 5.6.
As of kernel 5.7,
kallsyms_lookup_name()
is no longer exported, so we have resolve the symbol manually. The method settled on is to use register a kprobe onkallsyms_lookup_name
and save the address into an appropriately defined function pointer (thanks to @f0lg0 for the idea!).Also included is some preprocessor logic in
escape.c
to use theproc_ops
struct which replacesfile_operatons
inproc_create()
as of kernel 5.6.