ima_appraise.c (a068d9371f1951bf2a686fc5c8e37fb3edbf0ea0) | ima_appraise.c (311aa6aafea446c2f954cc19d66425bfed8c4b0b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2011 IBM Corporation 4 * 5 * Author: 6 * Mimi Zohar <zohar@us.ibm.com> 7 */ 8#include <linux/init.h> --- 5 unchanged lines hidden (view full) --- 14#include <linux/evm.h> 15#include <keys/system_keyring.h> 16 17#include "ima.h" 18 19static int __init default_appraise_setup(char *str) 20{ 21#ifdef CONFIG_IMA_APPRAISE_BOOTPARAM | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2011 IBM Corporation 4 * 5 * Author: 6 * Mimi Zohar <zohar@us.ibm.com> 7 */ 8#include <linux/init.h> --- 5 unchanged lines hidden (view full) --- 14#include <linux/evm.h> 15#include <keys/system_keyring.h> 16 17#include "ima.h" 18 19static int __init default_appraise_setup(char *str) 20{ 21#ifdef CONFIG_IMA_APPRAISE_BOOTPARAM |
22 if (arch_ima_get_secureboot()) { 23 pr_info("Secure boot enabled: ignoring ima_appraise=%s boot parameter option", 24 str); 25 return 1; 26 } 27 |
|
22 if (strncmp(str, "off", 3) == 0) 23 ima_appraise = 0; 24 else if (strncmp(str, "log", 3) == 0) 25 ima_appraise = IMA_APPRAISE_LOG; 26 else if (strncmp(str, "fix", 3) == 0) 27 ima_appraise = IMA_APPRAISE_FIX; 28#endif 29 return 1; --- 543 unchanged lines hidden --- | 28 if (strncmp(str, "off", 3) == 0) 29 ima_appraise = 0; 30 else if (strncmp(str, "log", 3) == 0) 31 ima_appraise = IMA_APPRAISE_LOG; 32 else if (strncmp(str, "fix", 3) == 0) 33 ima_appraise = IMA_APPRAISE_FIX; 34#endif 35 return 1; --- 543 unchanged lines hidden --- |