Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3814721imm; Tue, 29 May 2018 14:21:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKMzeVephrbRoJB+bmOSVXv4YLV9ZPEUyTlPbONRwfJNJam5Tv8/2RIuV8mnUorrKwtvANv X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr52260plb.299.1527628867377; Tue, 29 May 2018 14:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527628867; cv=none; d=google.com; s=arc-20160816; b=qqi9fN3egut5QB36WcNWOicVXKXItkiI3iPwmvxIameshRAfi0Wp4tUlqJOEkoGPfi XvcnLuHo6N3meijyH0Xig6gEKcmFDdDWB8AK7JkazEFmelEcQ5SxUIvgK7B/LNNp1Yz2 fBoOUH2+2uo3BgKQoguk3QxRQ/8QkAoQgisMzFIbtLDQjgJfhl77U+zB4dO2ifag63YB 56wfH7+H5n9TpOcTIwrOuutGhTwmFrSGclAifRIOB+jdE8FlgJRyQYenptzpw6Vjl6SL ecS5oaMnJcHS9A9vrTxSidhF7qCh+NdzWHa7cYEif9yZMo2VWa0DEuMxaRjrGK1Una4H s+Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Ag3Y2EI9jvHLLd+Hv9JzeFxkUeDxYPhzErsbOkKhy5o=; b=DygthcKZzSubRt6+rQWTjuroReaTSSzrytMxF6e4jYEqpG8u4GFHTPHhTl07nK/p3M 9vyPjj+QMiPj4D2Zb7icEAHkQFHlg/MiB2AC8Xt8kcD2YCdn8gm39I/6C+rGB5s0xOx/ Oqlxhx92D9utrTdIhocmn4/Od0mEKmoDtfkAdQ2AA/jP65lA0aRu8r0/SCfL+BRDlT4Q m8Vo7K9B9Q9y90yMUA2AWB2f8mBQM6gjMfXjspEPsUk1PRSKs2EnnILPCa3bMjKS4+MI ZvXOtsCbxRI4L3qaIMRD5Y8l0/Bbscrs2+GHHcLBK49GH6JKvWt4AZBhEQeBuS0iM9Y+ 6Dgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=gV5ibO23; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17-v6si33380409pfj.10.2018.05.29.14.20.53; Tue, 29 May 2018 14:21:07 -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; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=gV5ibO23; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967281AbeE2VTu (ORCPT + 99 others); Tue, 29 May 2018 17:19:50 -0400 Received: from mail-lf0-f48.google.com ([209.85.215.48]:44848 "EHLO mail-lf0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966952AbeE2VTl (ORCPT ); Tue, 29 May 2018 17:19:41 -0400 Received: by mail-lf0-f48.google.com with SMTP id g25-v6so961310lfb.11 for ; Tue, 29 May 2018 14:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ag3Y2EI9jvHLLd+Hv9JzeFxkUeDxYPhzErsbOkKhy5o=; b=gV5ibO23EZEPeNKt/JSHwyBPkNzVQpbzl1DJWvBO4eWE8v0ymrcWpW+u86ZPqzNCoe tlAMghsgqW0YkPASpoxZipx70FOIYNvzj696veVJtQWTV0IBK1i5nM/2jdTzK3vnvaYP HST/k0oO7c60/Fkmj/IlH0k2oEwQvk4/RrfGfWnZAOZS3dFBfjm+NtO01ViUgZrjaubO L6f7L4g9XBabpYWlTVPI6CzOACi4/is8m9btFadvUYVv+au+MZcbP6fkrS+3reZs0z7r 0VWHgfr1OEYZ3y5ZCME8vcwlBOrYhpI18fTh4nG7C3xhLjI0rNP2DCfDajq/faoFTISF hyRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ag3Y2EI9jvHLLd+Hv9JzeFxkUeDxYPhzErsbOkKhy5o=; b=V/qFcouZjGoNDGfUp/syNaMtsidAlJZ7oLIhNXrOkqYuIXA1Ll/v3XJqhWALlx/S1U J6okeJ71/F/OdF8IWXug1VPcXXOksQEVa6zozIB2qZPGqZ148b3kyKUns1YeIbm3jmRd foeqzfQAHvq8fxu4e80AH6rIExz42C+zvoNek0a2SMKOPs+yEylXVAT+NQNc+EikiZpt dWlquU5dzULeZSs1sB8ZsTgZRapkqsbzFULCHLepuLdUCdqfzJMyu2JBkLhOHCCT8a9B izpXFZ4/cMQ6Z2TpRJou109YwD3RpjejKj5+9E1QE6rNJo/7tPv1XpmPR8orcaxM3SIm NF9w== X-Gm-Message-State: ALKqPwcbDcC4zFFT+zhmZXcbWOo9U9D7M9C4MJ077wxrdxYz3oDyKKMY oyd2TmI1/DRllg+kcKSyFgBq/0f/leVP6lveKsHv X-Received: by 2002:a19:e497:: with SMTP id x23-v6mr46441lfi.40.1527628780069; Tue, 29 May 2018 14:19:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:a911:0:0:0:0:0 with HTTP; Tue, 29 May 2018 14:19:39 -0700 (PDT) X-Originating-IP: [108.20.156.165] In-Reply-To: <20180524201105.3179904-6-stefanb@linux.vnet.ibm.com> References: <20180524201105.3179904-1-stefanb@linux.vnet.ibm.com> <20180524201105.3179904-6-stefanb@linux.vnet.ibm.com> From: Paul Moore Date: Tue, 29 May 2018 17:19:39 -0400 Message-ID: Subject: Re: [PATCH 5/8] integrity: Add exe= and tty= before res= to integrity audits To: Stefan Berger Cc: zohar@linux.vnet.ibm.com, sgrubb@redhat.com, linux-integrity@vger.kernel.org, linux-audit@redhat.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 24, 2018 at 4:11 PM, Stefan Berger wrote: > Use the new public audit functions to add the exe= and tty= > parts to the integrity audit records. We place them before > res=. > > Signed-off-by: Stefan Berger > Suggested-by: Steve Grubb > --- > security/integrity/integrity_audit.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/security/integrity/integrity_audit.c b/security/integrity/integrity_audit.c > index db30763d5525..8d25d3c4dcca 100644 > --- a/security/integrity/integrity_audit.c > +++ b/security/integrity/integrity_audit.c > @@ -56,6 +56,8 @@ void integrity_audit_msg(int audit_msgno, struct inode *inode, > audit_log_untrustedstring(ab, inode->i_sb->s_id); > audit_log_format(ab, " ino=%lu", inode->i_ino); > } > + audit_log_d_path_exe(ab, current->mm); > + audit_log_tty(ab, current); NACK Please add the new fields to the end of the audit record, thank you. > audit_log_format(ab, " res=%d", !result); > audit_log_end(ab); > } -- paul moore www.paul-moore.com