From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40597C4CEC4 for ; Mon, 23 Sep 2019 19:49:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1CCD920665 for ; Mon, 23 Sep 2019 19:49:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502363AbfIWTtE (ORCPT ); Mon, 23 Sep 2019 15:49:04 -0400 Received: from scorn.kernelslacker.org ([45.56.101.199]:49876 "EHLO scorn.kernelslacker.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728561AbfIWTtD (ORCPT ); Mon, 23 Sep 2019 15:49:03 -0400 Received: from [2601:196:4600:6634:ae9e:17ff:feb7:72ca] (helo=wopr.kernelslacker.org) by scorn.kernelslacker.org with esmtp (Exim 4.92) (envelope-from ) id 1iCUKU-0003vq-1Z; Mon, 23 Sep 2019 15:49:02 -0400 Received: by wopr.kernelslacker.org (Postfix, from userid 1026) id 9B7E3560162; Mon, 23 Sep 2019 15:49:01 -0400 (EDT) Date: Mon, 23 Sep 2019 15:49:01 -0400 From: Dave Jones To: Paul Moore Cc: Linux Kernel , Eric Paris , linux-audit@redhat.com Subject: Re: ntp audit spew. Message-ID: <20190923194901.GA2787@codemonkey.org.uk> Mail-Followup-To: Dave Jones , Paul Moore , Linux Kernel , Eric Paris , linux-audit@redhat.com References: <20190923155041.GA14807@codemonkey.org.uk> <20190923165806.GA21466@codemonkey.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 23, 2019 at 02:57:08PM -0400, Paul Moore wrote: > On Mon, Sep 23, 2019 at 12:58 PM Dave Jones wrote: > > On Mon, Sep 23, 2019 at 12:14:14PM -0400, Paul Moore wrote: > > > On Mon, Sep 23, 2019 at 11:50 AM Dave Jones wrote: > > > > > > > > I have some hosts that are constantly spewing audit messages like so: > > > > > > > > [46897.591182] audit: type=1333 audit(1569250288.663:220): op=offset old=2543677901372 new=2980866217213 > > > > [46897.591184] audit: type=1333 audit(1569250288.663:221): op=freq old=-2443166611284 new=-2436281764244 > > > > [48850.604005] audit: type=1333 audit(1569252241.675:222): op=offset old=1850302393317 new=3190241577926 > > > > [48850.604008] audit: type=1333 audit(1569252241.675:223): op=freq old=-2436281764244 new=-2413071187316 > > > > [49926.567270] audit: type=1333 audit(1569253317.638:224): op=offset old=2453141035832 new=2372389610455 > > > > [49926.567273] audit: type=1333 audit(1569253317.638:225): op=freq old=-2413071187316 new=-2403561671476 > > > > > > > > This gets emitted every time ntp makes an adjustment, which is apparently very frequent on some hosts. > > > > > > > > > > > > Audit isn't even enabled on these machines. > > > > > > > > # auditctl -l > > > > No rules > > > > > > What happens when you run 'auditctl -a never,task'? That *should* > > > silence those messages as the audit_ntp_log() function has the > > > requisite audit_dummy_context() check. > > > > They still get emitted. > > > > > FWIW, this is the distro > > > default for many (most? all?) distros; for example, check > > > /etc/audit/audit.rules on a stock Fedora system. > > > > As these machines aren't using audit, they aren't running auditd either. > > Essentially: nothing enables audit, but the kernel side continues to log > > ntp regardless (no other audit messages seem to do this). > > What does your kernel command line look like? Do you have "audit=1" > somewhere in there? nope. ro root=LABEL=/ biosdevname=0 net.ifnames=0 fsck.repair=yes systemd.gpt_auto=0 pcie_pme=nomsi ipv6.autoconf=0 erst_disable crashkernel=128M console=tty0 console=ttyS1,57600 intel_iommu=tboot_noforce Dave