From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Paris Subject: Re: [PATCH] audit: don't attempt to lookup PIDs when changing PID filtering audit rules Date: Mon, 15 Dec 2014 13:51:52 -0500 Message-ID: <1418669512.3145.4.camel@redhat.com> References: <20141215171414.30169.46068.stgit@localhost> <1418664592.3145.3.camel@redhat.com> <20141215185057.GA6439@madcap2.tricolour.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141215185057.GA6439@madcap2.tricolour.ca> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Richard Guy Briggs Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Mon, 2014-12-15 at 13:50 -0500, Richard Guy Briggs wrote: > On 14/12/15, Eric Paris wrote: > > Lets say I and in the non-init pid namespace. > > > > I run audictl -a exit,always -S all -F pid=1 > > That's easy (for now). Line 675 of kernel/audit.c in audit_netlink_ok() > called from audit_receive_msg() will prevent that with: > > if ((task_active_pid_ns(current) != &init_pid_ns)) > return -EPERM; > > > Is the audit system going to show records for what I think is pid=1 or > > what the initial pid namespace thinks is pid=1 ? ACK from me then.