Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp106866imm; Mon, 4 Jun 2018 13:58:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIcuWnfhb1M0/jBl2obH/yo8O5Gd5kB6Sjcg5vbA2ohOKqGr8UHkkMttXjs019XFRNSrqYP X-Received: by 2002:a62:8d5:: with SMTP id 82-v6mr8327402pfi.154.1528145880235; Mon, 04 Jun 2018 13:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528145880; cv=none; d=google.com; s=arc-20160816; b=WNwcbY1Ilh9vu4hKczoTaYHm7/alG7N/2cCUcr992/oBsT/3ahrBEz6BKXIjv8QPpY mkHzJ96UGDVljC9M+WTQnIhMu+5eUVotyHB/rJiTj7gdc07UQhMPS9YX8oEa3sZMLPXX 5NolnQGmTnTqK4NCJtbfQcTDNCqTW6QFrYmqGTY+5wmklUSASj3O4IhQb00ujNWAmQh9 NezCsbojldlNIZWllRiFzLhIzdzU8NkkpGCAuoN1n5wLPEmlKSaqSaSVDYIoEk9OIIm0 QLo+fFAuxCDTvtNgnpEsRyXX0uF3yO63Edwzg23zZrisZSDuy453B1FEVvLd/nxCYUAq Rj5Q== 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=YcSVis28xwc/8VzuoMllndhtgvH0HEdYbpaXpZz6S9E=; b=yahHgM9DrJSKjLdwQ6/VvsLCivQlYOEr0zI/p3aTArtzR5exysKJMXUH8jlR5AhoM0 sjKbpTm5M3i8omhzRruANqpbdd2bOQwb8IOHeds2jsDFRkhJRWU2urkSd1lycdLsMik0 3OlzvYvbIenfk/VPCI9e3797RHz5Zaj4F0KpaCkk5n7xYZ8FnEphRsWMm7p1Fj+18ZQV bdyHuEjNO3ZsuWc3NZPLhMwd/LaLFToPxZ0E1QQOSrfBCbj616pM8npcIXaTOPNy54u7 D3R2fQuEuW4twfdKvATlDQp1CJbtw5qces1q0qrpxeAHKx891nFXBZ+6IjpByQZXrqYy XuvA== 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 p21-v6si24424002plq.94.2018.06.04.13.57.44; Mon, 04 Jun 2018 13:58:00 -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 S1751317AbeFDUzF (ORCPT + 99 others); Mon, 4 Jun 2018 16:55:05 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58690 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751267AbeFDUzD (ORCPT ); Mon, 4 Jun 2018 16:55:03 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w54Kidld131674 for ; Mon, 4 Jun 2018 16:55:02 -0400 Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jd9ckgj7a-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 04 Jun 2018 16:55:02 -0400 Received: from localhost by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 4 Jun 2018 14:55:01 -0600 Received: from b03cxnp07029.gho.boulder.ibm.com (9.17.130.16) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 4 Jun 2018 14:54:59 -0600 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w54KswXA10420718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 Jun 2018 13:54:58 -0700 Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 337476E04E; Mon, 4 Jun 2018 14:54:58 -0600 (MDT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 81BF86E050; Mon, 4 Jun 2018 14:54:57 -0600 (MDT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 4 Jun 2018 14:54:57 -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 v3 0/4] IMA: work on audit records produced by IMA Date: Mon, 4 Jun 2018 16:54:51 -0400 X-Mailer: git-send-email 2.14.3 X-TM-AS-GCONF: 00 x-cbid: 18060420-8235-0000-0000-00000DA97C40 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009129; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000265; SDB=6.01042340; UDB=6.00533731; IPR=6.00821470; MB=3.00021461; MTD=3.00000008; XFM=3.00000015; UTC=2018-06-04 20:55:01 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18060420-8236-0000-0000-00004156FE6B Message-Id: <20180604205455.2325754-1-stefanb@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-04_14:,, 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=901 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806040238 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 v2->v3: - reworked patch 4; pass current->audit_context rather than NULL 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 | 9 ++++++--- security/integrity/integrity.h | 15 +++++++++++++++ security/integrity/integrity_audit.c | 6 +----- 5 files changed, 24 insertions(+), 8 deletions(-) -- 2.13.6