[PATCH v2 10/10] ima: use existing read file operation method to calculate file hash

From
Christoph Hellwig <hch@lst.de>
Date
2017-07-05 17:18:59
Also in
linux-fsdevel
Reply to
Matthew Garrett, 2017-07-05
On Wed, Jul 05, 2017 at 06:02:15PM +0100, Matthew Garrett wrote:
On Wed, Jul 05, 2017 at 10:50:09AM -0400, Mimi Zohar wrote:
quoted
[Cc'ing linux-ima-users]

On Wed, 2017-06-28 at 16:41 +0200, Christoph Hellwig wrote:
quoted
NAK - we'll need an explicit method for the integrity code.

And just curious - what filesystem that you care about actually
implements ->read instead of ->read_iter?  We shouldn't be doing that
for real file systems anymore.
Right, pseudo filesystems are using ->read. The existing builtin
measurement policies exclude a number of pseudo filesystems, but not
efivarfs. ?Unfortunately, we do not know what type of custom policies
are currently being used.
efi variables contain information that may influence userspace behaviour 
and can also be modified out of band, so I think there's a reasonable 
argument that they should be measured.
Then efivars should grow a ->integrity_read method.
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Thread (22 messages) 22 messages, 3 authors, 2017-07-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help