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:54:14
Also in: linux-api, lkml

On Fri, Mar 9, 2018 at 10:50 AM, Linus Torvalds
[off-list ref] wrote:
On Fri, Mar 9, 2018 at 10:43 AM, Kees Cook [off-list ref] wrote:
quoted
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.
No. kernel_read_file() only does it *during* the read.
Ah, true. And looking at this again, shouldn't deny_write_access()
happen _before_ the LSM check in kernel_read_file()? That looks like a
problem...

-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