Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp670371imm; Thu, 31 May 2018 07:26:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK+4iK0DmKmavjmpxbnCh5+TAnmY7oygmnW82ZQPVGXFR0+ZUCNMj8FfbkAxlQMtZg7KgW8 X-Received: by 2002:a63:93:: with SMTP id 141-v6mr5845297pga.322.1527776796240; Thu, 31 May 2018 07:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527776796; cv=none; d=google.com; s=arc-20160816; b=tBG5Ley8ziVWFKliKHK+ECOeddiDsiNc5DJDBazL7LR26hydJRy6D/ZpxhzKidDBZh YXM1nMuooTVLNJhHb9UUyOqc2jqTYsy1nnkkjJJiHj1BZQ+BluskfXsRqypMtgJq/T26 fLC4xM24FIhsdrB+rzTlfCI0yTygRbkfTzyULmojYyxg0xEf8/7xYUfNNN/q0Xj04bv5 SbIp3xI2fP1hhy0+UXjl6E1vSuWBw21r+PwBxfC3+qGson+iJWwQHrKHChGGmlIMcgAA wbU9JyC9pXJIDfeHpCaIA+gGu2HasN6ACMhA/4J6yq/rwL496MdWOQdHIgTIS3KCwuHH 3Oxg== 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=RqFMQcFrqwOk9KJMDePDcexOHMVeNwqCA3eYMq5w298=; b=nVigPJFwpik1mxFHwCrx7gPrNuJNvj5u2JsCXIJVO3eqAGxLX5paq43aBRWtZXG7QW k5fwqPi1FEirb+BcGsZmOJW5jmhucgsRr8Wd1e0MCeBD8nn6MRBWTBSCH4gxw+CwFPIR 0vX5YplpX6A3UCd4SEVsk4XVrfYPNsOghH1v9rHJ4tx3bsexwCUcJHBskMfyr5+97lK4 E9zIO71TQSMWdq9T2oEMPTlmzwMqHYERNz62PAqd9gXlEvknBU/R+QuYluVTWjd9hRKk P71X85PHx7aL71+B4T1q1JgZv5+hCk4NMtgLY0E4iV8EP/5rqtMBxmNe66XRBmG2n3zY mcRA== 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 83-v6si2204205pfu.274.2018.05.31.07.26.21; Thu, 31 May 2018 07:26:36 -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 S1755317AbeEaOZL (ORCPT + 99 others); Thu, 31 May 2018 10:25:11 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60792 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755195AbeEaOZJ (ORCPT ); Thu, 31 May 2018 10:25:09 -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 w4VEOTiU068355 for ; Thu, 31 May 2018 10:25:09 -0400 Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.153]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jahdf4efw-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 31 May 2018 10:25:08 -0400 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 31 May 2018 08:25:08 -0600 Received: from b03cxnp07029.gho.boulder.ibm.com (9.17.130.16) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 31 May 2018 08:25:04 -0600 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4VEP30V10027508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 31 May 2018 07:25:03 -0700 Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3764E7803F; Thu, 31 May 2018 08:25:03 -0600 (MDT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP id C081D78051; Thu, 31 May 2018 08:25:02 -0600 (MDT) From: Stefan Berger To: zohar@linux.vnet.ibm.com, paul@paul-moore.com, linux-integrity@vger.kernel.org, linux-audit@redhat.com Cc: sgrubb@redhat.com, linux-kernel@vger.kernel.org, Stefan Berger Subject: [PATCH v2 0/4] IMA: work on audit records produced by IMA Date: Thu, 31 May 2018 10:24:56 -0400 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 18053114-0012-0000-0000-0000165C4B8E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009102; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000264; SDB=6.01040334; UDB=6.00532531; IPR=6.00819463; MB=3.00021393; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-31 14:25:06 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18053114-0013-0000-0000-0000530FA4B2 Message-Id: <20180531142500.4193818-1-stefanb@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-31_06:,, 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=819 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1805310163 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series of patches cleans up some usages of the audit subsystem's API by IMA. We also introduce a new record type that IMA creates while parsing policy rules. Stefan v1->v2: - dropped several patches that extended existing messages with missing fields - Using audit_log_task_info() for new record type in last patch - rebased on security-next; new message type is now 1807 Stefan Berger (4): ima: Call audit_log_string() rather than logging it untrusted ima: Use audit_log_format() rather than audit_log_string() ima: Do not audit if CONFIG_INTEGRITY_AUDIT is not set ima: Differentiate auditing policy rules from "audit" actions include/uapi/linux/audit.h | 1 + security/integrity/ima/Kconfig | 1 + security/integrity/ima/ima_policy.c | 17 +++++++++++++---- security/integrity/integrity.h | 15 +++++++++++++++ security/integrity/integrity_audit.c | 6 +----- 5 files changed, 31 insertions(+), 9 deletions(-) -- 2.13.6