Thread (21 messages) 21 messages, 6 authors, 2020-11-20

Re: [RESEND][PATCH] ima: Set and clear FMODE_CAN_READ in ima_calc_file_hash()

flat view

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2020-11-16 17:39:05
Also in: linux-fsdevel, linux-integrity, lkml, stable

On Mon, Nov 16, 2020 at 8:47 AM Mimi Zohar [off-list ref] wrote:
This discussion seems to be going down the path of requiring an IMA
filesystem hook for reading the file, again.  That solution was
rejected, not by me.  What is new this time?
You can't read a non-read-opened file. Not even IMA can.

So don't do that then.

IMA is doing something wrong. Why would you ever read a file that can't be read?

Fix whatever "open" function instead of trying to work around the fact
that you opened it wrong.

             Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help