public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Fix untangling ima mess, part 2 with counters
@ 2010-01-20 20:35 Mimi Zohar
  2010-01-20 20:35 ` [RFC PATCH 1/2] Fix 1 " Mimi Zohar
  2010-01-20 20:35 ` [RFC PATCH 2/2] Fix 2 " Mimi Zohar
  0 siblings, 2 replies; 11+ messages in thread
From: Mimi Zohar @ 2010-01-20 20:35 UTC (permalink / raw)
  To: linux-kernel
  Cc: Mimi Zohar, Al Viro, Eric Paris, Hugh Dickins, James Morris,
	David Safford, Serge E. Hallyn

The "Untangling ima mess, part 2 with counters" patch not
only messed up the counters, but also doesn't measure files
which should be measured. The "Untangling ima mess ..."
patchset, applied some of Eric's patches, but not all, leaving
inodes allocated before late_initcall() not allocated/measured.
(8262bb85da ima: initialize ima before inodes can be allocated)

Up to now, measuring files and updating the IMA open/read/write
counters associated with the file were done at the same time
in ima_path_check().  An imbalanced counter was an indication
that the file hadn't been measured. Each case needed to be
inspected, resulting in adding either a new ima_counts_get()
or ima_path_check() call (e.g. nfsd, ecryptfs, openAFS).

This patchset separates incrementing the counters from measuring
the file.  However, the underlying assumption is that all regular
files are opened via do_filp_open(). Is this assumption correct or,
by incrementing the file counters separately, have we inadvertently
hidden the fact that a file wasn't measured?

Mimi

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

end of thread, other threads:[~2010-01-26 22:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-20 20:35 [RFC PATCH 0/2] Fix untangling ima mess, part 2 with counters Mimi Zohar
2010-01-20 20:35 ` [RFC PATCH 1/2] Fix 1 " Mimi Zohar
2010-01-23 23:07   ` Al Viro
2010-01-25 19:24     ` Mimi Zohar
2010-01-25 21:30       ` Al Viro
2010-01-26 13:03       ` Al Viro
2010-01-26 15:16         ` Mimi Zohar
2010-01-26 16:27           ` Al Viro
     [not found]         ` <1264520125.3789.32.camel@dyn9002018117.watson.ibm.com>
     [not found]           ` <20100126163143.GJ19799@ZenIV.linux.org.uk>
     [not found]             ` <1264528747.3062.11.camel@dyn9002018117.watson.ibm.com>
2010-01-26 19:41               ` Open Intents, lookup_instantiate_filp() And All That Shit(tm) Al Viro
2010-01-26 22:01         ` [RFC PATCH 1/2] Fix 1 untangling ima mess, part 2 with counters Mimi Zohar
2010-01-20 20:35 ` [RFC PATCH 2/2] Fix 2 " Mimi Zohar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox