File tree Expand file tree Collapse file tree 2 files changed +21
-11
lines changed
Documentation/admin-guide Expand file tree Collapse file tree 2 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 1477
1477
in crypto/hash_info.h.
1478
1478
1479
1479
ima_policy= [IMA]
1480
- The builtin measurement policy to load during IMA
1481
- setup. Specyfing "tcb" as the value, measures all
1482
- programs exec'd, files mmap'd for exec, and all files
1483
- opened with the read mode bit set by either the
1484
- effective uid (euid=0) or uid=0.
1485
- Format: "tcb"
1480
+ The builtin policies to load during IMA setup.
1481
+ Format: "tcb | appraise_tcb"
1482
+
1483
+ The "tcb" policy measures all programs exec'd, files
1484
+ mmap'd for exec, and all files opened with the read
1485
+ mode bit set by either the effective uid (euid=0) or
1486
+ uid=0.
1487
+
1488
+ The "appraise_tcb" policy appraises the integrity of
1489
+ all files owned by root. (This is the equivalent
1490
+ of ima_appraise_tcb.)
1486
1491
1487
1492
ima_tcb [IMA] Deprecated. Use ima_policy= instead.
1488
1493
Load a policy which meets the needs of the Trusted
Original file line number Diff line number Diff line change @@ -170,19 +170,24 @@ static int __init default_measure_policy_setup(char *str)
170
170
}
171
171
__setup ("ima_tcb" , default_measure_policy_setup );
172
172
173
+ static bool ima_use_appraise_tcb __initdata ;
173
174
static int __init policy_setup (char * str )
174
175
{
175
- if (ima_policy )
176
- return 1 ;
176
+ char * p ;
177
177
178
- if (strcmp (str , "tcb" ) == 0 )
179
- ima_policy = DEFAULT_TCB ;
178
+ while ((p = strsep (& str , " |\n" )) != NULL ) {
179
+ if (* p == ' ' )
180
+ continue ;
181
+ if ((strcmp (p , "tcb" ) == 0 ) && !ima_policy )
182
+ ima_policy = DEFAULT_TCB ;
183
+ else if (strcmp (p , "appraise_tcb" ) == 0 )
184
+ ima_use_appraise_tcb = 1 ;
185
+ }
180
186
181
187
return 1 ;
182
188
}
183
189
__setup ("ima_policy=" , policy_setup );
184
190
185
- static bool ima_use_appraise_tcb __initdata ;
186
191
static int __init default_appraise_policy_setup (char * str )
187
192
{
188
193
ima_use_appraise_tcb = 1 ;
You can’t perform that action at this time.
0 commit comments