From patchwork Wed May 29 13:30:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roberto Sassu X-Patchwork-Id: 10967121 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8FAA18A6 for ; Wed, 29 May 2019 13:34:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC59C286B3 for ; Wed, 29 May 2019 13:34:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAB0428717; Wed, 29 May 2019 13:34:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C2F72892B for ; Wed, 29 May 2019 13:34:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726889AbfE2Neg (ORCPT ); Wed, 29 May 2019 09:34:36 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:32971 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726104AbfE2Neg (ORCPT ); Wed, 29 May 2019 09:34:36 -0400 Received: from lhreml709-cah.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id C4463E5CB010485960B9; Wed, 29 May 2019 14:34:34 +0100 (IST) Received: from roberto-HP-EliteDesk-800-G2-DM-65W.huawei.com (10.204.65.154) by smtpsuk.huawei.com (10.201.108.32) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 29 May 2019 14:34:24 +0100 From: Roberto Sassu To: , , CC: , , , , , Roberto Sassu Subject: [PATCH v2 0/3] ima/evm fixes for v5.2 Date: Wed, 29 May 2019 15:30:32 +0200 Message-ID: <20190529133035.28724-1-roberto.sassu@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.204.65.154] X-CFilter-Loop: Reflected Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Changelog v1: - remove patch 2/4 (evm: reset status in evm_inode_post_setattr()); file attributes cannot be set if the signature is portable and immutable - patch 3/4: add __ro_after_init to ima_appraise_req_evm variable declaration - patch 3/4: remove ima_appraise_req_evm kernel option and introduce 'enforce-evm' and 'log-evm' as possible values for ima_appraise= - remove patch 4/4 (ima: only audit failed appraisal verifications) - add new patch (ima: show rules with IMA_INMASK correctly) Roberto Sassu (3): evm: check hash algorithm passed to init_desc() ima: don't ignore INTEGRITY_UNKNOWN EVM status ima: show rules with IMA_INMASK correctly .../admin-guide/kernel-parameters.txt | 3 ++- security/integrity/evm/evm_crypto.c | 3 +++ security/integrity/ima/ima_appraise.c | 8 +++++++ security/integrity/ima/ima_policy.c | 21 +++++++++++-------- 4 files changed, 25 insertions(+), 10 deletions(-)