Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 23 Aug 2022 10:20:13 +0800
From: "李诚(允诚)" <>
To: "lkrg-users" <>
Subject: how to guard a kernel module

Hi, all
 I have a security related module , which is compiled as CONFIG_XYZ=m. And I want to monitor and guard it with LKRG, just as that LKRG guards SELinux and Seccomp.
I added some codes to LKRG , and wrapped them by #ifdef CONFIG_XYZ ... #endif, but this seemed to not work.
I also tried if(!strcmp(CONFIG_XYZ, "m")), but error occurred as "error: 'CONFIG_XYZ' undeclared (first use in this function);".
 Maybe this issue has little to do with LKRG, and I am sorry if bothering you. 
Any suggestion is very appreciated.
thanks and best regards,
Li Cheng

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.