Sample Header Ad - 728x90

Why the struct lsm_id is not present in linux kernel source tree

0 votes
1 answer
83 views
I am writing an LSM, and I am compiling it using my kernel 6.2.0-20-generic. When I browse the files in /lib/modules/6.2.0-20-generic/build, I can see that there is a struct named lsm_id. But When I examine the recent Linux source tree in Github, I can not see this struct. I tried downloading a different version but I could not find this struct anywhere in any of the Linux kernel source codes. I can see that there is a patch that has been released this year but I am not sure why I can not see it in the source tree and how it got in my kernel source code in /lib/modules? I want to have the source code of the kernel with patches applied, is there any way to get that? Link for the patch https://patchwork.kernel.org/project/linux-security-module/patch/20211124014332.36128-4-casey@schaufler-ca.com/ Thanks!
Asked by maysara (103 rep)
Aug 10, 2023, 02:41 PM
Last activity: Aug 11, 2023, 01:46 AM