ima_appraise.c (d4e0045c4ed300781d2d4cbab57d05ed5e665a37) | ima_appraise.c (e1f5e01f4b035ced1c71b40866e4e5c0508fbb0b) |
---|---|
1/* 2 * Copyright (C) 2011 IBM Corporation 3 * 4 * Author: 5 * Mimi Zohar <zohar@us.ibm.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 6 unchanged lines hidden (view full) --- 15#include <linux/magic.h> 16#include <linux/ima.h> 17#include <linux/evm.h> 18 19#include "ima.h" 20 21static int __init default_appraise_setup(char *str) 22{ | 1/* 2 * Copyright (C) 2011 IBM Corporation 3 * 4 * Author: 5 * Mimi Zohar <zohar@us.ibm.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 6 unchanged lines hidden (view full) --- 15#include <linux/magic.h> 16#include <linux/ima.h> 17#include <linux/evm.h> 18 19#include "ima.h" 20 21static int __init default_appraise_setup(char *str) 22{ |
23#ifdef CONFIG_IMA_APPRAISE_BOOTPARAM |
|
23 if (strncmp(str, "off", 3) == 0) 24 ima_appraise = 0; 25 else if (strncmp(str, "log", 3) == 0) 26 ima_appraise = IMA_APPRAISE_LOG; 27 else if (strncmp(str, "fix", 3) == 0) 28 ima_appraise = IMA_APPRAISE_FIX; | 24 if (strncmp(str, "off", 3) == 0) 25 ima_appraise = 0; 26 else if (strncmp(str, "log", 3) == 0) 27 ima_appraise = IMA_APPRAISE_LOG; 28 else if (strncmp(str, "fix", 3) == 0) 29 ima_appraise = IMA_APPRAISE_FIX; |
30#endif |
|
29 return 1; 30} 31 32__setup("ima_appraise=", default_appraise_setup); 33 34/* 35 * ima_must_appraise - set appraise flag 36 * --- 374 unchanged lines hidden --- | 31 return 1; 32} 33 34__setup("ima_appraise=", default_appraise_setup); 35 36/* 37 * ima_must_appraise - set appraise flag 38 * --- 374 unchanged lines hidden --- |