linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* appraisal reset safety
@ 2019-04-05 12:46 Janne Karhunen
  2019-04-06  6:16 ` Janne Karhunen
  0 siblings, 1 reply; 11+ messages in thread
From: Janne Karhunen @ 2019-04-05 12:46 UTC (permalink / raw)
  To: linux-integrity

Hi,

I've setup an android based mobile device with pretty complete ima/evm
setup that covers just about all the standard use cases (imasig based
filesystems, ota support, factory reset support etc). All that is fine
and ima runs like a clock.

Since this is a mobile device, running out of battery or getting shot
in the head by something is always a realistic option. The random
resets seem to be leading into random appraisal failures as android
seems to be keeping surprisingly many files constantly open for
writing. So many actually, that I feel somewhat uneasy starting to
whitelist these files from the ima policy. That sounds like a viable
route only when it comes to the log files as those files primarily
move data only one way.

Now, is there any prior art on this how to make this work right? The
improvements that I can instantly think of are,
1) whitelist everything that can be,
2) reduce the vfs flush delays,
3) make it detect the reset condition and fix the known files when
that happened. Unsafe and requires a patch (but that seems easy).

Anything else?


--
Janne

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-04-11  6:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-05 12:46 appraisal reset safety Janne Karhunen
2019-04-06  6:16 ` Janne Karhunen
2019-04-08  9:22   ` Janne Karhunen
2019-04-08 13:10     ` Mimi Zohar
2019-04-08 13:57       ` Janne Karhunen
2019-04-09  7:58       ` Janne Karhunen
2019-04-09 11:46         ` Janne Karhunen
2019-04-09 12:04           ` Mimi Zohar
2019-04-09 12:25             ` Janne Karhunen
2019-04-09 12:32               ` Mimi Zohar
2019-04-11  6:39                 ` Janne Karhunen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).