Files
android_kernel_samsung_msm8226/include/linux
Kees Cook 58bb6cdba7 CHROMIUM: module: add syscall to load module from fd
Instead of (or in addition to) kernel module signing, being able to reason
about the origin of a kernel module would be valuable in situations
where an OS already trusts a specific file system, file, etc, due to
things like security labels or an existing root of trust to a partition
through things like dm-verity.

This introduces a new syscall (currently only on x86), similar to
init_module, that has only two arguments. The first argument is used as
a file descriptor to the module and the second argument is a pointer to
the NULL terminated string of module arguments.

Signed-off-by: Kees Cook <keescook@chromium.org>

[accepted into Rusty's modules-wip tree for linux-next:
 http://git.kernel.org/?p=linux/kernel/git/rusty/linux.git;a=shortlog;h=refs/heads/modules-wip]
BUG=chromium-os:34134
TEST=parrot build, manual testing

Change-Id: I51122d61d0085ed40d2ac9b542646b28d066d5e3
Reviewed-on: https://gerrit.chromium.org/gerrit/34302
Tested-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Olof Johansson <olofj@chromium.org>
Commit-Ready: Kees Cook <keescook@chromium.org>
2020-12-10 21:34:01 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-23 18:05:04 +02:00
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
2013-06-20 10:46:21 -07:00
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-02 15:14:10 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-06 10:44:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-02 15:14:10 +02:00
2020-09-23 17:37:32 +02:00
…
…
…
…
…
…
…
…
…
…
2019-08-06 10:44:15 +02:00
…
…
…
…
2013-06-14 13:34:03 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-06 12:26:30 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-08-08 16:42:41 +02:00
…
…
…
…
…
…
…
2019-08-02 15:14:10 +02:00
…
…
…
…
2020-08-08 16:42:41 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
2019-08-02 15:14:10 +02:00
…
2019-08-05 14:20:47 +02:00
2020-09-23 17:38:55 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
2019-08-06 10:41:58 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
2019-08-06 10:44:38 +02:00
…
…
…
…
…
…
…
…
…
2020-09-23 17:38:52 +02:00
…
…
…
…
…
…
…
…
…
…
…
2019-08-06 10:44:40 +02:00
…
…
2019-08-02 15:14:10 +02:00
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
2019-08-05 14:20:47 +02:00
2019-08-09 09:13:49 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
2019-08-08 12:09:23 +02:00
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
…
…
…
2019-08-02 15:14:10 +02:00
…
…
…
…
…
…
…
…
2020-09-23 17:32:10 +02:00
…
…
2019-08-05 09:13:24 +02:00
…
…
…
…
…
…
2014-01-16 18:16:12 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
2019-08-05 14:20:47 +02:00
…
…
2019-08-02 15:14:10 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-23 17:37:32 +02:00
…
…
2019-08-05 09:13:25 +02:00
2019-08-05 14:20:47 +02:00
…
…
…
…
…
2014-07-22 14:33:44 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
2020-09-23 18:05:05 +02:00
…
…
…
…
2013-10-07 12:28:53 +05:30
…
2019-08-05 14:20:47 +02:00
…
…
…
…
2019-08-09 12:04:26 +02:00
…
…
…
…
2019-08-05 14:20:47 +02:00
2019-08-06 12:26:30 +02:00
…
…
…
…
…
…
…
2013-11-17 11:31:01 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2013-12-26 14:33:32 -08:00
…
…
2019-08-05 14:20:47 +02:00
…
…
…
…
2019-08-05 14:20:47 +02:00
…
…
2019-08-02 15:14:10 +02:00
2019-08-06 08:16:29 +02:00
…
…
…
…