Skip to content
Snippets Groups Projects
Commit 2fea0c26 authored by Fan Wu's avatar Fan Wu Committed by Paul Moore
Browse files

initramfs,lsm: add a security hook to do_populate_rootfs()


This patch introduces a new hook to notify security system that the
content of initramfs has been unpacked into the rootfs.

Upon receiving this notification, the security system can activate
a policy to allow only files that originated from the initramfs to
execute or load into kernel during the early stages of booting.

This approach is crucial for minimizing the attack surface by
ensuring that only trusted files from the initramfs are operational
in the critical boot phase.

Signed-off-by: default avatarFan Wu <wufan@linux.microsoft.com>
[PM: subject line tweak]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 52443cb6
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment