public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH-v2 0/3] ima: add support for custom template formats
@ 2013-12-06 12:57 Roberto Sassu
  2013-12-06 12:57 ` [PATCH-v2 1/3] ima: added error messages to template-related functions Roberto Sassu
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Roberto Sassu @ 2013-12-06 12:57 UTC (permalink / raw)
  To: jmorris, zohar
  Cc: d.kasatkin, linux-security-module, linux-kernel, linux-ima-devel,
	Roberto Sassu

[-- Attachment #1: Type: text/plain, Size: 2265 bytes --]

Hi everyone

currently accepted patches for the new template management mechanism allow to
choose among a list of supported templates, statically defined in the code.
This functionality is not flexible enough as users may want to include
in their measurements list only information needed and not use predefined
combinations.

For this reason, this patch set introduces the new kernel command line parameter
'ima_template_fmt' to specify a custom template format at boot time,
i.e. a string of template fields identifiers concatenated with the '|'
separator character. The complete list of defined template fields can be
found in Documentation/security/IMA-templates.txt.

The format string is checked at the very beginning in the setup function
ima_template_fmt_setup() so that, if it is wrong, IMA can go back to the
default template, selected through a kernel configuration option.

To allow userspace tools parse a measurements list with a custom format, IMA
provides as template name the same format string provided by users at boot
time, so that tools know which information are included in a entry and extract
them if they can handle listed template fields.


Changelog:
 - patch 2/3: fixed patch description (Roberto Sassu, suggested by Mimi Zohar)
 - patch 3/3: set 'template_name' variable in ima_fs.c only once
   (Roberto Sassu, suggested by Mimi Zohar)
 - patch 3/3: simplified code of ima_template_fmt_setup()
   (Roberto Sassu, suggested by Mimi Zohar)
 - the patch 'ima: make a copy of template_fmt in template_desc_init_fields()'
   has been removed from this version of the patch set since it has been already
   merged in the mainline kernel (commit: dbc335d2d + fix: af91706d5)

Roberto Sassu


Roberto Sassu (3):
  ima: added error messages to template-related functions
  ima: display template format in meas. list if template name length is
    zero
  ima: added support for new kernel cmdline parameter ima_template_fmt

 Documentation/kernel-parameters.txt      |  4 +++
 Documentation/security/IMA-templates.txt | 29 ++++++++---------
 security/integrity/ima/ima_fs.c          | 16 +++++++---
 security/integrity/ima/ima_template.c    | 55 ++++++++++++++++++++++++++++++--
 4 files changed, 83 insertions(+), 21 deletions(-)

-- 
1.8.1.4


[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2061 bytes --]

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

end of thread, other threads:[~2013-12-08  1:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-06 12:57 [PATCH-v2 0/3] ima: add support for custom template formats Roberto Sassu
2013-12-06 12:57 ` [PATCH-v2 1/3] ima: added error messages to template-related functions Roberto Sassu
2013-12-06 12:57 ` [PATCH-v2 2/3] ima: display template format in meas. list if template name length is zero Roberto Sassu
2013-12-06 12:57 ` [PATCH-v2 3/3] ima: added support for new kernel cmdline parameter ima_template_fmt Roberto Sassu
2013-12-06 19:36   ` Mimi Zohar
2013-12-07  9:57     ` Roberto Sassu
2013-12-08  1:27       ` Mimi Zohar

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