Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1140193imm; Tue, 3 Jul 2018 06:16:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKR/3QQ8tNR+DSastLDQzSg8dSzMjxlo98J2H2zqIHf7wfN/WMQJWwANMNVf2xmGRfBofbX X-Received: by 2002:a17:902:768a:: with SMTP id m10-v6mr30106910pll.293.1530623784764; Tue, 03 Jul 2018 06:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530623784; cv=none; d=google.com; s=arc-20160816; b=x2jKgIXT8gn4KFWnalEG25zXzsaBgcQwGR5XPGOigwTwAO2wLadJ41f0jel5vAdgAa SPXYfT0XxuA5sPhFYjnNlfMhiqz7iuv7PlCsHI69GA8t5zjGV7xr/ydeESGkyX3Dh8zv LS12mxmN6bjAoMfHTC5rfYqJYHRPvr6FkHMGF6FEgZ7EeWnDYfX7FlJkWv0rX+deCciN S/hbJjMAa/IXU9eaoFd3Aweso6KP9Vt0THWNBNbZ0CpS1pmXBptcCtMpjDL6xqILJ3wV Tqz/g4N5QaC4tq1pthCAHzbUX2PoRqqj5noSAe6o+/iSXpMpldHdKmyk73xBFCWMgMWi VPHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject :arc-authentication-results; bh=8Fg4FggnNkYVl5xZA9pi1xjmVesYsg6d1bQv9az6E0s=; b=Ol3u2g2bp6yvqguxVsi/s8u3RjnGCMweEf5qvp9HZvti6e93Bfh7frilrWksomX/+k vgfXsqBvrdDlPH3HCtrbcoU3M0Evyd4ybKl/N4mcv/WvDOD31NpCHAJ//4H9bHX2ZrOA qukhFeXx9J15Cu/cSlWXpxD/k+muZIDmMopkLOMaSgxEhcBqyj56rDqz7LPL2XpZ/JuI L1ivO6K8/m/6P/0r+ffuQPjDYhz9aEp/4aUC5j6GwU/ckwsJ80frI6IxEpxeGYwts2lt r9HFUugV+2oWIY510BS8d+a+zfojxPSKtRMd8qzQ8XKLcoVKRwoTqGHbvAob03jS5spY Bvzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12-v6si1066072pll.461.2018.07.03.06.15.54; Tue, 03 Jul 2018 06:16:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753457AbeGCNOI (ORCPT + 99 others); Tue, 3 Jul 2018 09:14:08 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:42238 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753068AbeGCNOG (ORCPT ); Tue, 3 Jul 2018 09:14:06 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w63DBPlJ042449 for ; Tue, 3 Jul 2018 09:14:06 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2k07bgxw3m-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 03 Jul 2018 09:14:04 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Jul 2018 14:14:02 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 3 Jul 2018 14:13:59 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w63DDw0c40894508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Jul 2018 13:13:58 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2ACD24C046; Tue, 3 Jul 2018 16:14:24 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 625014C044; Tue, 3 Jul 2018 16:14:23 +0100 (BST) Received: from localhost.localdomain (unknown [9.80.97.127]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 3 Jul 2018 16:14:23 +0100 (BST) Subject: Re: [PATCH] ima: Remove unused is_ima_appraise_enabled() function. From: Mimi Zohar To: Stefan Berger , linux-integrity@vger.kernel.org, jarkko.sakkinen@linux.intel.com Cc: jgg@ziepe.ca, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Date: Tue, 03 Jul 2018 09:13:47 -0400 In-Reply-To: <20180703111917.3265212-1-stefanb@linux.vnet.ibm.com> References: <20180703111917.3265212-1-stefanb@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18070313-0012-0000-0000-000002864C69 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070313-0013-0000-0000-000020B7C8DC Message-Id: <1530623627.3452.31.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-03_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807030151 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-07-03 at 07:19 -0400, Stefan Berger wrote: > Remove the unused is_ima_appraise_enabled() function. is_ima_appraise_enabled() was introduced to coordinate between IMA and the lockdown patch set.  Before removing it, let's wait and see if it is still needed by the lockdown patches. Mimi > Signed-off-by: Stefan Berger > --- > include/linux/ima.h | 6 ------ > security/integrity/ima/ima_appraise.c | 10 ---------- > 2 files changed, 16 deletions(-) > > diff --git a/include/linux/ima.h b/include/linux/ima.h > index 0e4647e0eb60..7f6952f8d6aa 100644 > --- a/include/linux/ima.h > +++ b/include/linux/ima.h > @@ -75,17 +75,11 @@ static inline void ima_add_kexec_buffer(struct kimage *image) > #endif > > #ifdef CONFIG_IMA_APPRAISE > -extern bool is_ima_appraise_enabled(void); > extern void ima_inode_post_setattr(struct dentry *dentry); > extern int ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, > const void *xattr_value, size_t xattr_value_len); > extern int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name); > #else > -static inline bool is_ima_appraise_enabled(void) > -{ > - return 0; > -} > - > static inline void ima_inode_post_setattr(struct dentry *dentry) > { > return; > diff --git a/security/integrity/ima/ima_appraise.c b/security/integrity/ima/ima_appraise.c > index 8bd7a0733e51..7bf7fcacfdbb 100644 > --- a/security/integrity/ima/ima_appraise.c > +++ b/security/integrity/ima/ima_appraise.c > @@ -33,16 +33,6 @@ static int __init default_appraise_setup(char *str) > > __setup("ima_appraise=", default_appraise_setup); > > -/* > - * is_ima_appraise_enabled - return appraise status > - * > - * Only return enabled, if not in ima_appraise="fix" or "log" modes. > - */ > -bool is_ima_appraise_enabled(void) > -{ > - return ima_appraise & IMA_APPRAISE_ENFORCE; > -} > - > /* > * ima_must_appraise - set appraise flag > *