aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/security
diff options
context:
space:
mode:
authorJames Morris <james.l.morris@oracle.com>2014-11-19 05:36:07 -0500
committerJames Morris <james.l.morris@oracle.com>2014-11-19 05:36:07 -0500
commita6aacbde406eeb6f8fc218b2c6172825f5e73fcf (patch)
treeb79e1a17c38090915085f0dbb501a0970cb79b28 /Documentation/security
parentb10778a00d40b3d9fdaaf5891e802794781ff71c (diff)
parent6fb5032ebb1c5b852461d64ee33829081de8ca61 (diff)
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity into next
Diffstat (limited to 'Documentation/security')
-rw-r--r--Documentation/security/IMA-templates.txt29
1 files changed, 14 insertions, 15 deletions
diff --git a/Documentation/security/IMA-templates.txt b/Documentation/security/IMA-templates.txt
index a4e102dddfea..839b5dad9226 100644
--- a/Documentation/security/IMA-templates.txt
+++ b/Documentation/security/IMA-templates.txt
@@ -27,25 +27,22 @@ Managing templates with these structures is very simple. To support
27a new data type, developers define the field identifier and implement 27a new data type, developers define the field identifier and implement
28two functions, init() and show(), respectively to generate and display 28two functions, init() and show(), respectively to generate and display
29measurement entries. Defining a new template descriptor requires 29measurement entries. Defining a new template descriptor requires
30specifying the template format, a string of field identifiers separated 30specifying the template format (a string of field identifiers separated
31by the '|' character. While in the current implementation it is possible 31by the '|' character) through the 'ima_template_fmt' kernel command line
32to define new template descriptors only by adding their definition in the 32parameter. At boot time, IMA initializes the chosen template descriptor
33template specific code (ima_template.c), in a future version it will be 33by translating the format into an array of template fields structures taken
34possible to register a new template on a running kernel by supplying to IMA 34from the set of the supported ones.
35the desired format string. In this version, IMA initializes at boot time
36all defined template descriptors by translating the format into an array
37of template fields structures taken from the set of the supported ones.
38 35
39After the initialization step, IMA will call ima_alloc_init_template() 36After the initialization step, IMA will call ima_alloc_init_template()
40(new function defined within the patches for the new template management 37(new function defined within the patches for the new template management
41mechanism) to generate a new measurement entry by using the template 38mechanism) to generate a new measurement entry by using the template
42descriptor chosen through the kernel configuration or through the newly 39descriptor chosen through the kernel configuration or through the newly
43introduced 'ima_template=' kernel command line parameter. It is during this 40introduced 'ima_template' and 'ima_template_fmt' kernel command line parameters.
44phase that the advantages of the new architecture are clearly shown: 41It is during this phase that the advantages of the new architecture are
45the latter function will not contain specific code to handle a given template 42clearly shown: the latter function will not contain specific code to handle
46but, instead, it simply calls the init() method of the template fields 43a given template but, instead, it simply calls the init() method of the template
47associated to the chosen template descriptor and store the result (pointer 44fields associated to the chosen template descriptor and store the result
48to allocated data and data length) in the measurement entry structure. 45(pointer to allocated data and data length) in the measurement entry structure.
49 46
50The same mechanism is employed to display measurements entries. 47The same mechanism is employed to display measurements entries.
51The functions ima[_ascii]_measurements_show() retrieve, for each entry, 48The functions ima[_ascii]_measurements_show() retrieve, for each entry,
@@ -86,4 +83,6 @@ currently the following methods are supported:
86 - select a template descriptor among those supported in the kernel 83 - select a template descriptor among those supported in the kernel
87 configuration ('ima-ng' is the default choice); 84 configuration ('ima-ng' is the default choice);
88 - specify a template descriptor name from the kernel command line through 85 - specify a template descriptor name from the kernel command line through
89 the 'ima_template=' parameter. 86 the 'ima_template=' parameter;
87 - register a new template descriptor with custom format through the kernel
88 command line parameter 'ima_template_fmt='.