-
Notifications
You must be signed in to change notification settings - Fork 5.2k
How to build my own security module based on lsm? #1642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks like security_operations in security.h moved around a lot in the 4.2 release. Initially to include/linux/lsm_hooks.h, and then was removed with commit
You'll need to read up as to the correct way of doing this under kernel 4.4 and above. |
Thanks,6by9! the following is the modified code:
|
This was referenced Jan 21, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,everyone!
I want build my own security module based on lsm on Rpi 2B.
And the following is my code:
geek_lsm.c:
However, when I build the kernel, it return with the error:
Is there anyone know how to deal with the problem?
And I don't find the defination of the struct "security_operations" in the file "/linux/include/linux/security.h"
The text was updated successfully, but these errors were encountered: