Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3519724imu; Mon, 28 Jan 2019 06:20:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN7FxOqP1+AUEOb0nLkvaY97ltpoJmGh5PY3qOJYJiQUDP+1W7182bRcod7l9RC2iZ+CiHBe X-Received: by 2002:a17:902:503:: with SMTP id 3mr22188594plf.233.1548685240457; Mon, 28 Jan 2019 06:20:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548685240; cv=none; d=google.com; s=arc-20160816; b=k3l/ZXmze4MV8XlsKC3i3VrHhmntGF2rBV03ZrxGCcrL7UFVbG0qBiEQwiFPm107cV ovtCq5UBejTEIRA5u2M7KAJPDSnSMJc4aFrWp/uc+GzV0HSOE352x1eO8ungX9lYsW4n QZZ+zzTEr7VgTme1QeTBb9I1cknlsaQ0UfcLWkVTwdN3SqJjk+LhJ14z/kob4ZglrzuC mDJccJh9yvs840DcouzbBE+UySdbTLG1jQowapXipF6yvPKDpNtj1JbdZtdFLudMrain JfcJoq9JRRsGS3DdZe83eMbhOrtWVzczsdByrPHOFZp2gzzQ/ShmFRLWkd1++rGxa14a YShw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=+NbtZQYJjeHEcDc9wYzWR+TQ0tJQnl2YUAbHEtNkk/s=; b=DC4HLfwh4Pq6uBgRKa7E/VqGOugpXdPBVBm18/OngOgKKzFfbfgEh7hUS1zY4Zu1jX HQqnoHnHzaCxoMI6GNnRLN81OeHiwG8ic/zc04Kzg7fd9xD6DH8BAquy29mK/xS8voDi yuLPfyvgRkchPsI7vER9eRGTqJ0kRFstTl9O913yLE8zHkcP+RJUHS+E+vcvlVSr6r8A wf0Wc9QvzLx8hY7GP2NvYRK2ZqAjVzQdajO08iJY+7MVBPGb60BIaLUXEyXuc69T45o6 pipX7lyTOOktF0QjsdvSW30JjQNWETpqtw1gvNtVu0LPesb+BtHS/z1VTPU+Tj1RjZ9T f/FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=ZXZr7C8I; 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 q3si11443825plb.209.2019.01.28.06.20.24; Mon, 28 Jan 2019 06:20:40 -0800 (PST) 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=ZXZr7C8I; 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 S1726926AbfA1OTv (ORCPT + 99 others); Mon, 28 Jan 2019 09:19:51 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:44596 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbfA1OTu (ORCPT ); Mon, 28 Jan 2019 09:19:50 -0500 Received: by mail-lj1-f196.google.com with SMTP id k19-v6so14346988lji.11 for ; Mon, 28 Jan 2019 06:19:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+NbtZQYJjeHEcDc9wYzWR+TQ0tJQnl2YUAbHEtNkk/s=; b=ZXZr7C8IERXC0OTYYI/a2JrxHfK3Zy5olaUzs7907wZePwp+vFhBpbZQl1G2ebnt06 bHuHd29P4tziaR26+/krZ/jfsGn5hBhqroFMpcV0AwPaPc9+X5yI+JjJZTDOUVLSN2lG zK8mvhZnuF+ArEh+skYSLcB8hWwK4NFbwv+h4Rypur7TE0lmXVGsSivCTVw8CR5v/J9j VPkY3Y6bC48VvdwGw7ZApMI/042m0eUCSPD4D2vHoMlp9egFF3ef9DN0XdNeNcXZjr2K HWRJUhZk9eMSs20EmyHQZCcqbD5RE88777BScQfp5fngf/JTqSJ/4aRmHNbqiqNe03ci Kl7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+NbtZQYJjeHEcDc9wYzWR+TQ0tJQnl2YUAbHEtNkk/s=; b=sNpS2Qg+cd5P6yX11UuZhBXZpeuTdUxYxAqYOPOMXeXQ2msAz0R++60uYKhJZoNAOK CVUFmSrciK5CfZr4AmVB6VvZ57VhXdHsduXk7d8cs0C+eKMrcUl5xXhvkorL9khb305w MeOutvaAwyCWPoTFEAPjKfq2ZayM41mHp5axm6Rx/+ueUB2R0kX6RtX4mpjN01d3hgbH mtQTgoftw+XJ0XgeAJxofuSdb2nE+q2mH9rrkQMAFezagQyZWup1+QOqQuO4o23HEIvB 3wwrAT/Of3+FYEU7gAHCyO5EpCdr5tJBzmnjsq0XWdZ0n6OuNokGxq31Ip8syc+XwQZf E1yw== X-Gm-Message-State: AJcUukfdQO6PXYED82D9hhVXxM0cq7m4MN08He1O4JkVcHjRL4zGlexY SSmjkgpkc1l8n7uXF4ZG3TE/HecZAeBCjwN5tg36 X-Received: by 2002:a2e:3803:: with SMTP id f3-v6mr17597973lja.169.1548685187990; Mon, 28 Jan 2019 06:19:47 -0800 (PST) MIME-Version: 1.0 References: <20151208164237.15736.42955.stgit@localhost> <5490ae28-251b-bfda-38a6-5be201a4a8d8@nokia.com> In-Reply-To: <5490ae28-251b-bfda-38a6-5be201a4a8d8@nokia.com> From: Paul Moore Date: Mon, 28 Jan 2019 09:19:36 -0500 Message-ID: Subject: Re: [PATCH] audit: always enable syscall auditing when supported and audit is enabled To: "Sverdlin, Alexander (Nokia - DE/Ulm)" Cc: Paul Moore , "linux-audit@redhat.com" , Richard Guy Briggs , Greg Kroah-Hartman , Alexei Starovoitov , Daniel Borkmann , "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 Mon, Jan 28, 2019 at 4:04 AM Sverdlin, Alexander (Nokia - DE/Ulm) wrote: > Hello Paul, > > On 08/12/2015 17:42, Paul Moore wrote: > > To the best of our knowledge, everyone who enables audit at compile > > time also enables syscall auditing; this patch simplifies the Kconfig > > menus by removing the option to disable syscall auditing when audit > > is selected and the target arch supports it. > > > > Signed-off-by: Paul Moore > > this patch is responsible for massive performance degradation for those > who used only CONFIG_SECURITY_APPARMOR. > > And the numbers are, take the following test for instance: > > dd if=/dev/zero of=/dev/null count=2M > > ARM64: 500MB/s -> 350MB/s > ARM: 400MB/s -> 300MB/s Hi there. Out of curiosity, what kernel/distribution are you running, or is this a custom kernel compile? Can you also share the output of 'auditctl -l' from your system? The general approach taken by everyone to turn-off the per-syscall audit overhead is to add the "-a never,task" rule to their audit configuration: # auditctl -a never,task If you are using Fedora/CentOS/RHEL, or a similarly configured system, you can find this configuration in the /etc/audit/audit.rules file (be warned, that file is automatically generated based on /etc/audit/rules.d). -- paul moore www.paul-moore.com