|
Message-ID: <63b0e9ab-737f-48c4-b29f-13b5fd022702.lc85446@alibaba-inc.com>
Date: Tue, 23 Aug 2022 10:20:13 +0800
From: "李诚(允诚)" <lc85446@...baba-inc.com>
To: "lkrg-users" <lkrg-users@...ts.openwall.com>
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.