Received: by 10.213.65.68 with SMTP id h4csp670097imn; Tue, 13 Mar 2018 17:30:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELub9hPmLRqxw0ielT1A+rmHmq2Cg841IOvwdAeZpyCeKctbe3gKeAHPcJKEVE6/nYWg0P06 X-Received: by 2002:a17:902:7e4a:: with SMTP id a10-v6mr2219412pln.13.1520987409672; Tue, 13 Mar 2018 17:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520987409; cv=none; d=google.com; s=arc-20160816; b=GEhPhjOn6ndDntt42k9C49H9dISEYbN29eWK8imZ6MOLl2MhPtUOMrO1wfP2nDOWz/ RrQSkDfV3fM0oLT2ck/AuZjKMxOXkKLEbYySV/q8UnRR3gQm3RRQg04NOjX5He6yKTV4 OAC0KZOUfjEsNBjKHFlgM60q2tvTQhyNNuDM1rz5TXEvj58v0gk5zBZ/+sZF17mj681q M2uLE4ySpRxEM0nNHzcjV/1IZ56jAg1oSUetiQEj1nmzF4EQj6DfKVpR8oGKgcuXmC8D mEzFjM4TJnSRPEtWD6h6kp73vlaHMIjW6PXkXNL8kdD6ciLUZM6XHDmje//g13IdkhNp xj+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=+OeMhz8ioPEZUIx5XF81cI7u0oTt/eUb8yRxwVKs5Tc=; b=xaaYDMxR1lOD6HtCCAD9MZZ1um59yErbp8RJ3V2POCT7lAV9W4ffZ0HtwjbCCfx7Is Qzgr96aLz4qxmWkvqmxaPJEZC/XvO640hlW6sMBbUAQC2YEwtdk8NvHzYzA90RznMpZi 9VBAqV2CJBjWnWxQibRieM6Qg+kTjdUpt3QO026rZ3m9tZXQvZLmdQCi4fjHlVQxQFYi M2keou9KommLzBKOC3dvThqVLoOPJuITRVJYCRbgERikBFNna9LqQxG3lVxs1LCWqcCa QsJZfyyCNBqHgFvM83gCYWumdFTIyuVLcHO0sR0gymAv5kxwuiPsCVCsd24b1d4QyZUR pxtA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b186si929983pgc.265.2018.03.13.17.29.55; Tue, 13 Mar 2018 17:30:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932858AbeCNA3A (ORCPT + 99 others); Tue, 13 Mar 2018 20:29:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:37601 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932349AbeCNA27 (ORCPT ); Tue, 13 Mar 2018 20:28:59 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5FF86AE82; Wed, 14 Mar 2018 00:28:58 +0000 (UTC) Date: Wed, 14 Mar 2018 01:28:57 +0100 (CET) From: Jiri Kosina To: Andy Lutomirski cc: Steve Grubb , Paul Moore , linux-audit@redhat.com, Andrew Morton , Michal Hocko , Oleg Nesterov , LKML Subject: Re: [PATCH] audit: set TIF_AUDIT_SYSCALL only if audit filter has been populated In-Reply-To: Message-ID: References: <20180310111535.2e3202bc@ivy-bridge> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Mar 2018, Andy Lutomirski wrote: > > Yes...I wished I was in on the beginning of this discussion. Here's the > > problem. We need all tasks auditable unless specifically dismissed as > > uninteresting. This would be a task,never rule. > > > > The way we look at it, is if it boots with audit=1, then we know auditd > > is expected to run at some point. So, we need all tasks to stay > > auditable. If they weren't and auditd enabled auditing, then we'd need > > to walk the whole proctable and stab TIF_AUDIT_SYSCALL into every > > process in the system. It was decided that this is too ugly. > > When was that decided? That's what this patch does. I'd like to see some more justification as well. Namely, if I compare "setting TIF_AUDIT_SYSCALL for every process on a need-to-be-so basis" to "we always go through the slow path and pessimistically assume that audit is enabled and has reasonable ruleset loaded", I have my own (different) opinion of what is too ugly. Thanks, -- Jiri Kosina SUSE Labs