Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5618765imm; Mon, 27 Aug 2018 00:51:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYZJdTPKijpRxiwMzhIMAQndiCl8v10tmBW7RaBnonSTvchWxs4DE/pk2V6LmNe9JVDSmmW X-Received: by 2002:a62:25c5:: with SMTP id l188-v6mr12939250pfl.179.1535356310224; Mon, 27 Aug 2018 00:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535356310; cv=none; d=google.com; s=arc-20160816; b=pVvl8fBcV1kdsgEcKX/mq0DmcyIWjssUw2izeI4Eel7DdijV4UbhAhe3aoDHu44dAK SPhBJZraCxP6+JH6ANXqkU/O0w6KT6RD96jC4/+wIUNMjwxsbVYsG1vWxq5vtDQ1NwGv jPo+e/d48UlASk5s63KtiFwQWhE/1IYXjg/eWcxESGTMZJYuwruxS9gIAxh7Wx2zHzdm MKOECn2fhfBI9g4FIIDca3R8OBBOgStuyq/Xy7tyys4B9XGLCeE6od4lRS+HcpjT+GFS H+V5mjLe5QmpxGfNmPqkMZPXFsu+QOLOc1xvklZZWLcWoP3B54Vx4+OuERnOFRxRGVoe bpyQ== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=akOQH7VH6nwVPF1VHKMEWoiSI2QuFUTlQnDVezBzv7A=; b=rIEsobET8LpLmLtevmItceQFDKLJF9PBYl8fnYk7qQ3ZLFPm6GlpqMCrHD9O7yz83/ Pkw2g6fffEXHknRc0kPXjHHE5/cRVdDmlu9S1SD+v8kAEyfk8GWDGQF/fZ4j3eRf0SKv MgFzWA3trkypSiewndO+++VVLIwy566+by9cFDxD6C8yo7oSiUCvEs7214yKVbBWagGo +0zAKyJdgJOsBeQOapFMFS7gTE50hNK4GUxx+0fFiC3KBzerqIqJAgrOxb50Fd4d+1Ji 1CwwHPhBY7KNzAZGamUQkkZuvocOrjxzXpwrsPn51CClJ6vyPtYW3KvIGtjoIaaw6neN 0Ypw== 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 24-v6si11433122pft.235.2018.08.27.00.51.34; Mon, 27 Aug 2018 00:51:50 -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 S1727193AbeH0Lf7 (ORCPT + 99 others); Mon, 27 Aug 2018 07:35:59 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40152 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727049AbeH0Lf7 (ORCPT ); Mon, 27 Aug 2018 07:35:59 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0B6498011059; Mon, 27 Aug 2018 07:50:29 +0000 (UTC) Received: from localhost (unknown [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C53F02166B41; Mon, 27 Aug 2018 07:50:23 +0000 (UTC) Date: Mon, 27 Aug 2018 09:50:20 +0200 From: Miroslav Lichvar To: Ondrej Mosnacek Cc: linux-audit@redhat.com, Paul Moore , Richard Guy Briggs , Steve Grubb , John Stultz , Thomas Gleixner , Stephen Boyd , linux-kernel@vger.kernel.org Subject: Re: [PATCH ghak10 v5 1/2] audit: Add functions to log time adjustments Message-ID: <20180827075020.GL27091@localhost> References: <20180824120001.20771-1-omosnace@redhat.com> <20180824120001.20771-2-omosnace@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180824120001.20771-2-omosnace@redhat.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 27 Aug 2018 07:50:29 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 27 Aug 2018 07:50:29 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mlichvar@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 24, 2018 at 02:00:00PM +0200, Ondrej Mosnacek wrote: > This patch adds two auxiliary record types that will be used to annotate > the adjtimex SYSCALL records with the NTP/timekeeping values that have > been changed. It seems the "adjust" function intentionally logs also calls/modes that don't actually change anything. Can you please explain it a bit in the message? NTP/PTP daemons typically don't read the adjtimex values in a normal operation and overwrite them on each update, even if they don't change. If the audit function checked that oldval != newval, the number of messages would be reduced and it might be easier to follow. -- Miroslav Lichvar