Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1324747ybn; Wed, 25 Sep 2019 16:23:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVluuxfiXl4VUQUeDRvZHW/9oaqfFnVhPjEg0Pu9yBPtOQ4w57OxgBv72Csl9QnmPNkm2G X-Received: by 2002:a17:906:c5b:: with SMTP id t27mr614715ejf.180.1569453806285; Wed, 25 Sep 2019 16:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569453806; cv=none; d=google.com; s=arc-20160816; b=DYK7rmmo0wfAMq0M9Q56CbXR8sq2QdJBnWvaeZidDl0tjIcL+ONlLIgh8g6h9xOeU+ Znl2obtTTTeWbRZx+Ol35E4Jp+Rb5xwyR8f7tnT56I/WPvWC/LG5nNWDUk+GMGkBckB5 Bp+HB2fXPeD8cZ8y+/X0Jo/5kwfI7xb6yggv6LvqaSxpn1WeOyhvOdJkfGT4a2/uAeGU MWf6MVfBj7p7fd9WqYZ1bsFQDtQv0M35iaZDe1OSahs6mDlDNpsq54Bz2CVgAu18cvk9 X18Qvdp6a6hHKp3Pik82Vgx4BZX7wDwEwpr80yvZeC8G7e5mbgtjxFeQSi/NjabfNK8b dTLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=7kuT+LkV+yM8FFDG/9vzA7SxWrL0IYltLf10fkN/AQY=; b=Bx5LFW+BFySxFxvkOjW0Q920AlF3JttCpSwPDD4lFCOzy7+5enBKsOlBx7HQochvet pDpp+k8iM/0Z8DjBZS/PrJkRCgrX/wk+yprU0QRUfw3H1E+HJUjyuDLxYuBOr83qUGio irQwoYTsHN9dcmeyNf31pdjGP4Fx9vsk2eB/3udAQlKSOtHBBhcfrize7Ei3eHA4vw3i IdjrcWCrqGTnXpYMqi9yWWg7u5NnxjeOk3oslYQXKyhVY23lxTU2rQbzPnTioDNNi/Z+ X2nmKhE4bmP1heqttWQlDNYgxK8wcqAUvu/O8ucJ/9+Pqy4UZqEjFGpLRpA7YkhTPwCZ Q5Sw== 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 x25si301610edd.350.2019.09.25.16.23.02; Wed, 25 Sep 2019 16:23:26 -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 S2502426AbfIWTtz (ORCPT + 99 others); Mon, 23 Sep 2019 15:49:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52486 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502394AbfIWTtz (ORCPT ); Mon, 23 Sep 2019 15:49:55 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 147E48980F5; Mon, 23 Sep 2019 19:49:55 +0000 (UTC) Received: from localhost.localdomain (unknown [10.11.216.102]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4CD911001B05; Mon, 23 Sep 2019 19:49:52 +0000 (UTC) Message-ID: Subject: Re: ntp audit spew. From: Eric Paris To: Dave Jones , Paul Moore Cc: Linux Kernel , linux-audit@redhat.com Date: Mon, 23 Sep 2019 15:49:52 -0400 In-Reply-To: <20190923194901.GA2787@codemonkey.org.uk> References: <20190923155041.GA14807@codemonkey.org.uk> <20190923165806.GA21466@codemonkey.org.uk> <20190923194901.GA2787@codemonkey.org.uk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.0 (3.34.0-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.67]); Mon, 23 Sep 2019 19:49:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Is this the thing where systemd is listening on the multicast netlink socket and causes everything to come out kmesg as well? On Mon, 2019-09-23 at 15:49 -0400, Dave Jones wrote: > On Mon, Sep 23, 2019 at 02:57:08PM -0400, Paul Moore wrote: > > On Mon, Sep 23, 2019 at 12:58 PM Dave Jones < > davej@codemonkey.org.uk> 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 < > davej@codemonkey.org.uk> 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 >