Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp827984imm; Thu, 13 Sep 2018 08:20:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbtDHWIqsIYbR+HTxy+BNAAJSQ2Z+Je7AwbcdEecfjBvOk7ZGeIsLD7dLGDlA5LQwA8q9ly X-Received: by 2002:a62:8704:: with SMTP id i4-v6mr7938521pfe.62.1536852012447; Thu, 13 Sep 2018 08:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536852012; cv=none; d=google.com; s=arc-20160816; b=jSJjjxfa88VjNBY7BdqbLt/sR3PjLr98i06ZXfZGDT78dQoYYBAWr2LOQ/YNBpmBFo h0aAFxnFQMwfneGMv1XL2hy+1vazZj5cUTawiRWmLKzjTvV1o48oAK5+QhW6wGsr30I0 sa89624/rCpqOJq3fPGqqBZNNPPq+4Yxv8+A1pkX44ByDuUAzaDkYQdpXgFsN79n5dt0 wBA2XMpQshQRxel4MKHuonS9DnECqpZ8wf8rqQrexp2ZJBhvqCP4f+P4rcbH4hcCopIs cX6+Vi0k9EAWFSQqJqvX8fb/5mp+4A2+WCtLWfZTEmzTDpG7B+lUuhX1YAvm7fLr5ocl ydAA== 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; bh=5bI5bhTAjd9HDRbg4godgm70U2nquKuxvXMbctjiRsc=; b=XN3nbsPXX4tx/pvMVcAf3rW2yXcRZczSZ+DRJTa4c44MaJ/VMX23Ub+oKiazgr6v7b 3tu7IVm6EX+ezOdYbVNfHRJtUTBy8ZCO0M4JmUNHfHBGfsxpN4WbX15O2ofsnpfJmDMI nGcmlKwOn5n8Pdu2KJavTrr3Lo2Y/1455QhRA55Y8upWpMoO7x+paRDcKzikuKsA+X+D Q43IvByhQ3nDh9pxZ5KEEjrFhPtBlO0JeMns1O+sQPnJmmGKMYKTjMUl02rFFvTydkcF hxVYgg66sa/2BY9lDKXJAIS4QkZvLkihVh4qmBdEjbwnPV+J4eDrJO3hxPsjlJqD5JYp y1Ew== 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 h20-v6si4488876pgh.573.2018.09.13.08.19.52; Thu, 13 Sep 2018 08:20:12 -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 S1728300AbeIMU3h (ORCPT + 99 others); Thu, 13 Sep 2018 16:29:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56206 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbeIMU3h (ORCPT ); Thu, 13 Sep 2018 16:29:37 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9623C8764D; Thu, 13 Sep 2018 15:19:39 +0000 (UTC) Received: from madcap2.tricolour.ca (ovpn-112-40.phx2.redhat.com [10.3.112.40]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 19953600C8; Thu, 13 Sep 2018 15:19:36 +0000 (UTC) Date: Thu, 13 Sep 2018 11:14:55 -0400 From: Richard Guy Briggs To: Ondrej Mosnacek Cc: Steve Grubb , Miroslav Lichvar , Linux-Audit Mailing List , Paul Moore , John Stultz , Thomas Gleixner , Stephen Boyd , Linux kernel mailing list Subject: Re: [PATCH ghak10 v5 1/2] audit: Add functions to log time adjustments Message-ID: <20180913151455.yxvtcorxakh7vqrq@madcap2.tricolour.ca> References: <20180824120001.20771-1-omosnace@redhat.com> <20180827075020.GL27091@localhost> <4819575.TSNxuEWROA@x2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180512 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 13 Sep 2018 15:19:39 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-09-13 15:59, Ondrej Mosnacek wrote: > On Mon, Aug 27, 2018 at 6:38 PM Steve Grubb wrote: > > On Monday, August 27, 2018 5:13:17 AM EDT Ondrej Mosnacek wrote: > > > On Mon, Aug 27, 2018 at 9:50 AM Miroslav Lichvar > > wrote: > > > > 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. > > > > > > We actually want to log any attempt to change a value, as even an > > > intention to set/change something could be a hint that the process is > > > trying to do something bad (see discussion at [1]). > > > > One of the problems is that these applications can flood the logs very > > quickly. An attempt to change is not needed unless it fails for permissions > > reasons. So, limiting to actual changes is probably a good thing. > > Well, Richard seemed to "violently" agree with the opposite, so now I > don't know which way to go... Paul, you are the official tie-breaker > here, which do you prefer? The circumstances have changed with new information being added. I recall violently agreeing several iterations ago with your previous assessment, which has also changed with this new information. I'd agree with Steve that a flood of information about something that did not change value could hide important information. (BTW: The expression "to violoently agree with" is generally used in a situation where two parties appear to have been arguing two different sides of an issue and then realize they have much more in common than initially apparent.) > > -Steve > > > > > There are valid > > > arguments both for and against this choice, but we have to pick one in > > > the end... Anyway, I should explain the reasoning in the commit > > > message better, right now it just states the fact without explanation > > > (in the second patch), thank you for pointing my attention to it. > > > > > > [1] https://www.redhat.com/archives/linux-audit/2018-July/msg00061.html > > > > > > -- > > > Ondrej Mosnacek > > Ondrej Mosnacek - RGB -- Richard Guy Briggs Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada IRC: rgb, SunRaycer Voice: +1.647.777.2635, Internal: (81) 32635