Thread (68 messages) flat view 68 messages, 14 authors, 2018-05-02

Re: [PATCH net-next] modules: allow modprobe load regular elf binaries

From: Kees Cook <hidden>
Date: 2018-03-09 18:43:04
Also in: linux-api, lkml

On Fri, Mar 9, 2018 at 10:35 AM, David Miller [off-list ref] wrote:
From: Linus Torvalds <torvalds@linux-foundation.org>
Date: Fri, 9 Mar 2018 10:17:42 -0800
quoted
 - use deny_write_access() to make sure that we don't have active
writers and cannot get them during the execve.
I agree that this is necessary for image validation purposes.
Module loading (via kernel_read_file()) already uses
deny_write_access(), and so does do_open_execat(). As long as module
loading doesn't call allow_write_access() before the execve() has
started in the new implementation, I think we'd be covered here.

-Kees

-- 
Kees Cook
Pixel Security
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help