Received: by 10.213.65.68 with SMTP id h4csp1222869imn; Wed, 14 Mar 2018 13:22:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELu/1fAtw9HX1ruKWbVT2MMfcRTF2dPAM3z+9AJWZe1YA5V33G33J15jn2ck9Kw1C5Q8rUb3 X-Received: by 10.99.172.84 with SMTP id z20mr4643929pgn.273.1521058977722; Wed, 14 Mar 2018 13:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521058977; cv=none; d=google.com; s=arc-20160816; b=dum0gV5vq0jWKUiepg19Xb7Xvjwcxs7fUIbfndRnkbmenEm7mbBp8DdCsnIMRex4df N59kpR5y7YM79jcJ6YIm8UqnpUA7Bqx9y/5efTEq5BsZQ1E/4BK6+K4viH/jFEDALEA8 1vY+1j7Cl4chruuUsezMt+S7vNhGCJkZGXbOvGHzHULKnJcGBtTolrlgtka4AQSR1URQ fbNoD4FnLBYbor/XRaO0gZY2CHY4KQDiWo7rrtSGvKQKcmr+djB+7ptqKTkvkvKb34ZC 3UDmOcHoGm0mZv5XJ1lkdhX3V69lae1bZMrVPw5P1WPZgkNLvHSeaANo5XY8TESJ90BA nPCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=d50zel6Znqy/dkhPNk/ZVdqw2gqnU0Bhr8X+Bx4fga4=; b=HIdCE5z/Zz3sJaDSTycDRzPdoxpBknCDNXfRnw7GBKv3SrnZ/IIYAGzvv7P0Kt/GWD mVdOG2eTrmbxBNVELPQCzux1NI4dPD0o0H2cCX16fXq8x175w7t9o//cqzLTkvgBE2ca fYILY968bk/XWH8kBY+6Ib2K3kPxsq5VTz0PMjFavSN4j5cEoO/AnxFDdZkxBsRALoL5 vcLOuYzNPzLCrTwf190Q6Maid6SK9aVR55L4jLyQfzwSQwgMHU4QM6YspF6QPZwyBSsN 9vMU8SJjQbQEl8NxdpDoeN338+WrYiQmjryipeQGa0j2ldAJnT3pBEf30nyLLoPc4wzN o9NQ== 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 l69si2610004pfk.180.2018.03.14.13.22.43; Wed, 14 Mar 2018 13:22:57 -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 S1752099AbeCNUUk (ORCPT + 99 others); Wed, 14 Mar 2018 16:20:40 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:52420 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751626AbeCNUUi (ORCPT ); Wed, 14 Mar 2018 16:20:38 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2EKJpHq017964 for ; Wed, 14 Mar 2018 16:20:38 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gqaa38w7c-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Wed, 14 Mar 2018 16:20:37 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 Mar 2018 16:20:36 -0400 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 14 Mar 2018 16:20:33 -0400 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2EKKX2U52101182; Wed, 14 Mar 2018 20:20:33 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D64E7AC048; Wed, 14 Mar 2018 16:21:48 -0400 (EDT) Received: from morokweng.localdomain.com (unknown [9.85.137.56]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP id 3AD79AC03A; Wed, 14 Mar 2018 16:21:47 -0400 (EDT) From: Thiago Jung Bauermann To: linux-integrity@vger.kernel.org Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, James Morris , "Serge E. Hallyn" , Mimi Zohar , Dmitry Kasatkin , Thiago Jung Bauermann Subject: [PATCH 0/4] Code improvements in integrity and IMA Date: Wed, 14 Mar 2018 17:20:16 -0300 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 18031420-0024-0000-0000-000003368E28 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008674; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000254; SDB=6.01003063; UDB=6.00510447; IPR=6.00782393; MB=3.00020035; MTD=3.00000008; XFM=3.00000015; UTC=2018-03-14 20:20:35 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031420-0025-0000-0000-000047540424 Message-Id: <20180314202020.3794-1-bauerman@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-14_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803140218 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, These patches come from the "appended signatures support for IMA appraisal" series. They are code improvements and cleanups and I decided to submit them separately for a couple of reasons: 1. they stand on their own and could be included in v4.17; 2. this will simplify the original patch series a bit, by having it contain only the patches actually necessary to implement the feature. These are the changes made to them since v5 of the modsig series: - Patch "integrity: Remove unused macro IMA_ACTION_RULE_FLAGS" - New patch. - Patch "ima: Improvements in ima_appraise_measurement()" - Moved is_ima_sig() to its own patch (not in this series). Mimi Zohar (1): ima: Improvements in ima_appraise_measurement() Thiago Jung Bauermann (3): integrity: Remove unused macro IMA_ACTION_RULE_FLAGS ima: Simplify ima_eventsig_init() integrity: Introduce struct evm_xattr security/integrity/evm/evm_crypto.c | 4 ++-- security/integrity/evm/evm_main.c | 10 ++++---- security/integrity/ima/ima_appraise.c | 40 ++++++++++++++++++------------- security/integrity/ima/ima_template_lib.c | 11 +++------ security/integrity/integrity.h | 6 ++++- 5 files changed, 39 insertions(+), 32 deletions(-)