The Linux Debian family 4.10 and later seem to have some rules affecting kernel modules. When trying to add a hook list while building a kernel module, we get an undefined symbolic link error as shown below.
WARNING: "security_add_hooks" [home/kernel/driver.ko] undefined!
In the /include/linux/lsm_hook.h file, functions that were previously implemented as inline have been changed to extern so that the implementation is omitted and dependent on the object.
extern void security_add_hooks(struct security_hook_list *hooks, int count, char *lsm);
How should I solve it?
Thanks in advance.