fs/kernel_read_file: Split into separate include file
authorScott Branden <scott.branden@broadcom.com>
Fri, 2 Oct 2020 17:38:15 +0000 (10:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Oct 2020 11:34:18 +0000 (13:34 +0200)
commitb89999d004931ab2e5123611ace7dab77328f8d6
tree053d4dcd3724d4705c5d146ea4820eed3a862177
parent06e67b849ab910a49a629445f43edb074153d0eb
fs/kernel_read_file: Split into separate include file

Move kernel_read_file* out of linux/fs.h to its own linux/kernel_read_file.h
include file. That header gets pulled in just about everywhere
and doesn't really need functions not related to the general fs interface.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: James Morris <jamorris@linux.microsoft.com>
Link: https://lore.kernel.org/r/20200706232309.12010-2-scott.branden@broadcom.com
Link: https://lore.kernel.org/r/20201002173828.2099543-4-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 files changed:
drivers/base/firmware_loader/main.c
fs/exec.c
include/linux/fs.h
include/linux/ima.h
include/linux/kernel_read_file.h [new file with mode: 0644]
include/linux/security.h
kernel/kexec_file.c
kernel/module.c
security/integrity/digsig.c
security/integrity/ima/ima_fs.c
security/integrity/ima/ima_main.c
security/integrity/ima/ima_policy.c
security/loadpin/loadpin.c
security/security.c
security/selinux/hooks.c