• Fan Wu's avatar
    initramfs,lsm: add a security hook to do_populate_rootfs() · 2fea0c26
    Fan Wu authored
    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>
    2fea0c26
initramfs.c 17.5 KB