Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp925545ybn; Wed, 25 Sep 2019 09:40:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdT0WHne+86aMMGmcqWoYqu4WndbsdXA6DdOC8ftrP5FaWNkCJ87hM0Aa1IetL13h+d3rK X-Received: by 2002:a17:906:80c3:: with SMTP id a3mr97504ejx.271.1569429645036; Wed, 25 Sep 2019 09:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569429645; cv=none; d=google.com; s=arc-20160816; b=jZLs3xpSTcWULFKB/4LhYbrgGFg9O9VyoDQHmnq8JeZ3on+bbX0q+r90A7/flU9n8i c1bR+IUeKgYItrTyd/1zBg3sodmAB1zOtAxF77urtL1+TIGovNBHbm7ZTVIL0quCrDkF qVCwgYIbqvh5Ydhyqlxz+g4d4Of3Bstw0D8jpIchv5KHnRXMWjBwCAKpMjYSpZKQkbeS uolf15pUahvRChTsvGMI9+/OTVaAUcaSNjdvMMqcYSjtXBabOh2zgSl447eQUqohJS1o v2ONxxFyE/rVw19HeE6j0TRf725ciYYd13nNM0XvCoKOwmWANKg0ZpSku2I0v1b8CveS KM2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=6JWUwYd5UuVB1aaMbvj5Dl/WWE7QAFDa+ZgAxWEIqu0=; b=UHhWjR7DXIhFGEaDBKNd3nTTSKJ4bKG5IZxUVdAmMKOxIMTEwzF+Rv7Eeq+d2rMGKj A6Ai4sQjg7Kbe/sYGSut//ApUOVkQwJ2qZuE+tKUymxRz9xGKj6yDdIaICc/9ha7L4sg By7jSHasXdj3HMpExZEAfV8V9SJem6FwwhNEwbADlTw0Bk4KMp09fBY42A0m2HfGhIG+ YDRFYrLUPHuMkjxURuF8Xq/NWMtQ2FvgQEkP5vE5UpL2AKrFPYJhigcxyNMWcUDOav1w DliIORTkE8lJ4ri1ChX7Axy8KDeHEigLTHXsdixJMvk47VrCBPt8PwiCKzl6w6ugyj8t LIdw== 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 e49si4287174edb.87.2019.09.25.09.40.19; Wed, 25 Sep 2019 09:40:45 -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 S2502151AbfIWQ6J (ORCPT + 99 others); Mon, 23 Sep 2019 12:58:09 -0400 Received: from scorn.kernelslacker.org ([45.56.101.199]:49212 "EHLO scorn.kernelslacker.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390958AbfIWQ6J (ORCPT ); Mon, 23 Sep 2019 12:58:09 -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 1iCRf5-0003Pz-D9; Mon, 23 Sep 2019 12:58:07 -0400 Received: by wopr.kernelslacker.org (Postfix, from userid 1026) id 01610560162; Mon, 23 Sep 2019 12:58:06 -0400 (EDT) Date: Mon, 23 Sep 2019 12:58:06 -0400 From: Dave Jones To: Paul Moore Cc: Linux Kernel , Eric Paris , linux-audit@redhat.com Subject: Re: ntp audit spew. Message-ID: <20190923165806.GA21466@codemonkey.org.uk> Mail-Followup-To: Dave Jones , Paul Moore , Linux Kernel , Eric Paris , linux-audit@redhat.com References: <20190923155041.GA14807@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) X-Spam-Note: SpamAssassin invocation failed 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 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). Dave