From: "Serge E. Hallyn" <serge@hallyn.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Mimi Zohar <zohar@linux.vnet.ibm.com>,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
James Morris <jmorris@namei.org>,
Al Viro <viro@ZenIV.linux.org.uk>,
David Safford <safford@watson.ibm.com>,
Serge Hallyn <serue@linux.vnet.ibm.com>,
Mimi Zohar <zohar@us.ibm.com>
Subject: Re: [PATCH 2/6] integrity: Linux Integrity Module(LIM)
Date: Wed, 3 Dec 2008 14:13:20 -0600 [thread overview]
Message-ID: <20081203201320.GA17785@hallyn.com> (raw)
Quoting Christoph Hellwig (hch@infradead.org):
> On Tue, Dec 02, 2008 at 04:47:56PM -0500, Mimi Zohar wrote:
> > +/*
> > + * Integrity API calls:
> > + *
> > + * @collect_measurement:
> > + * Collect template specific measurement data.
> > + * @data contains template specific data used for collecting the
> > + * measurement.
> > + * Return 0 if operation was successful.
> > + *
> > + * @appraise_measurement:
> > + * Appraise the integrity of the template specific measurement data.
> > + * @data contains template specific data used for appraising the
> > + * measurement.
> > + * Return 0 if operation was successful.
> > + *
> > + * @store_measurement:
> > + * Store the template specific data.
> > + * @data contains template specific data used for storing the
> > + * measurement.
> > + *
> > + * @store_template:
> > + * Store the entry containing the template specific data.
> > + * @data contains template name, data length, and data.
> > + *
> > + * @must_measure:
> > + * Measurement decision based on an integrity policy.
> > + * @data contains template specific data used for making policy
> > + * decision.
> > + * Return 0 if operation was successful.
This comment isn't right - return 0 if a measurement must be
taken, no?
> > + *
> > + * @display_template:
> > + * Display template specific data.
> > + *
> > + */
>
> Can you explain what all this template stuff is about? The only method
> of these ever called is display_template,
I'm not sure what you mean here - must_measure for instance is used (in
patch 3) in the integrity hooks (i.e. file_mmap) to decide whether or not
the object (action target) must be measured.
> and that seems to be better
> implented directly as a securityfs file, without the indirection.
That comment doesn't make sense to me (unless you're saying to punt
on the generic integrity infrastructure and hook all of the IMA
code straight into the kernel) so I suspect I'm misreading
something.
-serge
next reply other threads:[~2008-12-03 20:35 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-03 20:13 Serge E. Hallyn [this message]
2008-12-03 20:25 ` [PATCH 2/6] integrity: Linux Integrity Module(LIM) Christoph Hellwig
-- strict thread matches above, loose matches on Subject: below --
2008-12-02 21:47 [PATCH 0/6] integrity Mimi Zohar
2008-12-02 21:47 ` [PATCH 2/6] integrity: Linux Integrity Module(LIM) Mimi Zohar
2008-12-02 22:43 ` Dave Hansen
2008-12-03 18:15 ` Mimi Zohar
2008-12-03 18:25 ` Dave Hansen
2008-12-03 12:30 ` Christoph Hellwig
2008-12-03 18:18 ` Mimi Zohar
2008-12-03 18:23 ` Christoph Hellwig
2008-12-03 22:17 ` Mimi Zohar
2008-12-04 13:09 ` Christoph Hellwig
2008-12-04 19:24 ` Serge E. Hallyn
2008-12-04 20:53 ` david safford
2008-12-05 1:42 ` James Morris
2008-12-05 12:56 ` david safford
2008-12-05 15:23 ` Serge E. Hallyn
2008-12-05 17:14 ` david safford
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081203201320.GA17785@hallyn.com \
--to=serge@hallyn.com \
--cc="In-Reply-To:20081203123021.GA30035"@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=hch@infradead.org \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=safford@watson.ibm.com \
--cc=serue@linux.vnet.ibm.com \
--cc=viro@ZenIV.linux.org.uk \
--cc=zohar@linux.vnet.ibm.com \
--cc=zohar@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox