vfs: define kernel_read_file_id enumeration
To differentiate between the kernel_read_file() callers, this patch defines a new enumeration named kernel_read_file_id and includes the caller identifier as an argument. Subsequent patches define READING_KEXEC_IMAGE, READING_KEXEC_INITRAMFS, READING_FIRMWARE, READING_MODULE, and READING_POLICY. Changelog v3: - Replace the IMA specific enumeration with a generic one. Signed-off-by:Mimi Zohar <zohar@linux.vnet.ibm.com> Acked-by:
Kees Cook <keescook@chromium.org> Acked-by:
Luis R. Rodriguez <mcgrof@kernel.org> Cc: Al Viro <viro@zeniv.linux.org.uk>
Showing
- fs/exec.c 2 additions, 2 deletionsfs/exec.c
- include/linux/fs.h 6 additions, 1 deletioninclude/linux/fs.h
- include/linux/lsm_hooks.h 3 additions, 1 deletioninclude/linux/lsm_hooks.h
- include/linux/security.h 5 additions, 2 deletionsinclude/linux/security.h
- security/security.c 3 additions, 2 deletionssecurity/security.c
Loading
Please register or sign in to comment