[PATCH v4] Allow to exclude specific file types in LoadPin

2019-06-03 Thread Ke Wu
different mechanisms to verify module and kernel image while still use LoadPin to protect the integrity of other files kernel loads. Signed-off-by: Ke Wu --- Changelog since v3: - Undo patch v3 change. - Use ignore_read_file_id rahther than kernel_read_file_str when iterating to prevent out-of-bo

[PATCH v3] Allow to exclude specific file types in LoadPin

2019-05-31 Thread Ke Wu
different mechanisms to verify module and kernel image while still use LoadPin to protect the integrity of other files kernel loads. Signed-off-by: Ke Wu --- Changelog since v2: - Make size of exclude_read_files and ignore_read_file_id to be equal to the size of kernel_read_file_str. Changelo

Re: [PATCH v2] Allow to exclude specific file types in LoadPin

2019-05-30 Thread Ke Wu
Thanks for pushing the patch! On Thu, May 30, 2019 at 7:23 PM Kees Cook wrote: > > On Fri, May 31, 2019 at 06:11:44AM +1000, James Morris wrote: > > On Thu, 30 May 2019, Ke Wu wrote: > > > > > Linux kernel already provide MODULE_SIG and KEXEC_VERIFY_SIG to > >

[PATCH v2] Allow to exclude specific file types in LoadPin

2019-05-30 Thread Ke Wu
different mechanisms to verify module and kernel image while still use LoadPin to protect the integrity of other files kernel loads. Signed-off-by: Ke Wu --- Changelog since v1: - Mark ignore_read_file_id with __ro_after_init. - Mark parse_exclude() with __init. - Use ARRAY_SIZE(ignore_read_file_id)

[PATCH] Allow to exclude specific file types in LoadPin

2019-05-29 Thread Ke Wu
different mechanisms to verify module and kernel image while still use LoadPin to protect the integrity of other files kernel loads. Signed-off-by: Ke Wu --- Documentation/admin-guide/LSM/LoadPin.rst | 10 ++ security/loadpin/loadpin.c| 37 +++ 2 files c