Received: by 10.213.65.68 with SMTP id h4csp119782imn; Mon, 12 Mar 2018 08:33:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELvC7myRM6053X+AUgBWAAmDsY+wcWcT0GUoHLbB27rbxxKoS5rYZ5y3pPGEUnymFyXagTT8 X-Received: by 10.99.116.28 with SMTP id p28mr6953994pgc.306.1520868792475; Mon, 12 Mar 2018 08:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520868792; cv=none; d=google.com; s=arc-20160816; b=lYiYlK0trmGghY292AZS/b+gQrXDHM1TZ4kPBQK+ZlqKfhF/hDdirY9RYictMcsyn4 Rc6elpNS6dXmodHbmycluMnFqo98X6NYBXhjPooLezaD44eTDIm4iHXFlsZqFk/jtWsZ qsxtvqi6qpA7BJRw53/MHJNAyRJaE3YMkKe9QZhrYwxqdMYJgBd3wdPK3SZM5/I/MM7x AyVmQqwOhHNEW36KcWfv4QmmN5hv14Lnm0RM55zwnnwos08m1CbGdaesTk9NZVx95fKl Iec+n/jJf3VDQLw7KkFM0U99nOtkDAc5DUm+NDBhUFdi2v70z01BadfmWKQKN29NSlX+ b2Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=CYCoBop5KL9J1vTHGPIgMBX3Z62jCFswb/Zl8NLM+Y4=; b=KIgSjxN2uw8ZkIgNlKy0+nNMZNLF9AmsD1Xrem/Gi6zn80ec1ckoE/02StfPvbdA6Y c/LYI10pXNoPyvgJkXbp4HA+8NrXv5QvUVKf9e4j4aVW5bjCSt5lUBftcu8Sm5k8Pvb6 7bm3pA8Lv5khjVTCrrFZoNoSmHFiZKKSbilrDBZCg8EHbQVmvSTkjTCSG69L1w1CFoIT jxN83+A0zZ+mCDxWxm3S28/lpNO9BITJ8ECkJkXHRhZQJ6atwyJtO3VqZGoKwK1mJwGA Im+l4pSPaow37fAe6qKQ95y36rDQcIVdWzm+u2nksSAUNYJ3hY4mh9Nm+0p6Uq2NbIxs 3okA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n59-v6si6062332plb.690.2018.03.12.08.32.58; Mon, 12 Mar 2018 08:33:12 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932190AbeCLPaz (ORCPT + 99 others); Mon, 12 Mar 2018 11:30:55 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47230 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751293AbeCLPay (ORCPT ); Mon, 12 Mar 2018 11:30:54 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 593CD402290A; Mon, 12 Mar 2018 15:30:54 +0000 (UTC) Received: from madcap2.tricolour.ca (ovpn-112-12.rdu2.redhat.com [10.10.112.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6C1132026E03; Mon, 12 Mar 2018 15:30:53 +0000 (UTC) Date: Mon, 12 Mar 2018 11:26:14 -0400 From: Richard Guy Briggs To: Paul Moore Cc: Linux-Audit Mailing List , LKML Subject: Re: [PATCH ghak21 V2 3/4] audit: add refused symlink to audit_names Message-ID: <20180312152614.qvcxng3biug46lms@madcap2.tricolour.ca> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171027 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 12 Mar 2018 15:30:54 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 12 Mar 2018 15:30:54 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'rgb@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-03-12 11:12, Paul Moore wrote: > On Mon, Mar 12, 2018 at 2:31 AM, Richard Guy Briggs wrote: > > Audit link denied events for symlinks had duplicate PATH records rather > > than just updating the existing PATH record. Update the symlink's PATH > > record with the current dentry and inode information. > > > > See: https://github.com/linux-audit/audit-kernel/issues/21 > > Signed-off-by: Richard Guy Briggs > > --- > > fs/namei.c | 1 + > > 1 file changed, 1 insertion(+) > > Why didn't you include this in patch 4/4 like I asked during the > previous review? Please see the last comment of: https://www.redhat.com/archives/linux-audit/2018-March/msg00070.html > > diff --git a/fs/namei.c b/fs/namei.c > > index 50d2533..00f5041 100644 > > --- a/fs/namei.c > > +++ b/fs/namei.c > > @@ -945,6 +945,7 @@ static inline int may_follow_link(struct nameidata *nd) > > if (nd->flags & LOOKUP_RCU) > > return -ECHILD; > > > > + audit_inode(nd->name, nd->stack[0].link.dentry, 0); > > audit_log_link_denied("follow_link", &nd->stack[0].link); > > return -EACCES; > > } > > paul moore - RGB -- Richard Guy Briggs Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada IRC: rgb, SunRaycer Voice: +1.647.777.2635, Internal: (81) 32635