mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 23:04:54 +01:00
Both the init_module and finit_module syscalls call either directly or indirectly the security_kernel_read_file LSM hook. This patch replaces the direct call in init_module with a call to the new security_kernel_load_data hook and makes the corresponding changes in SELinux, LoadPin, and IMA. Signed-off-by: Mimi Zohar <[email protected]> Cc: Jeff Vander Stoep <[email protected]> Cc: Casey Schaufler <[email protected]> Cc: Kees Cook <[email protected]> Acked-by: Jessica Yu <[email protected]> Acked-by: Paul Moore <[email protected]> Acked-by: Kees Cook <[email protected]> Signed-off-by: James Morris <[email protected]>