Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp732345imm; Thu, 13 Sep 2018 06:59:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbeNDJUflk9lhXGqwMV08sTu8uwGnO3JP0NIddLsKTC/z63IdNWg3I3FzafKx+T1WhSn3mQ X-Received: by 2002:a63:1921:: with SMTP id z33-v6mr7485457pgl.302.1536847191215; Thu, 13 Sep 2018 06:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847191; cv=none; d=google.com; s=arc-20160816; b=ZZtD4hwdyJBEHmpASvEpW4I9dJFhUb57Nue7VXEl5Yv/BZ1Wil6Nm9S4WgPS8jLQho mJ8ybAI9eyZT2ahaONPova9WWLdobi9VWmVwnOPuRcdDZQMlNq5G++s0OGjLwrjpoFt+ Trgh7cqhp89K3Qe7rjQrBsiZhHqwMUHqYygXsQM1L88GkfEroQs9fP++tlrfEJ4B1Fem Q+jEk5o9J8Kov3LAGIC94x+wKxL+NCocQTbFnkMbS2rwjxe7NBK9V37ATRG1H3pZ9/1i 3DKnSwm+8H9W3NtzdgCdW/DebJEDdBkkLfaf2nGA4K0JuVyTg2FAEMsT/5bcqESGnFYn 7/bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=9viuzLyKw1+0ihqQI7BMG0rDHglykTatGiROFnvy3Ms=; b=VEiOIKTGNUvsnTPNvK2BinCFqI4oPqZF7jh1g5NlTWuev9x76cMkIrkbUklwY0hGxc Pc70zcOi8tvokirVCZn2Z3wTlGH/ltHTGalkoG46sWeL0YMm6OBQUvzd0YPknwCeeDiy FfyrJ7YvuH93LB/mDKJ8AhwxUKW0opqJddHxhMw8/Q9dZPivs9hRhTyl1AEZ5Q6TLjEx 3s83Z3iMo+Rxew5sllYjkecpCf8iGlu8ahG/DYuwLXpcMynfPxUimtWizz/UZA3qBo9S gYxWynUKyN2W1qo+We6UfapTfbSwWernop3yseGgxE1wCOAERfnhf63FJt2PhOwe10VQ d9RQ== 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 j125-v6si4023748pfc.243.2018.09.13.06.59.35; Thu, 13 Sep 2018 06:59:51 -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 S1731522AbeIMTJI (ORCPT + 99 others); Thu, 13 Sep 2018 15:09:08 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:44535 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729026AbeIMTJI (ORCPT ); Thu, 13 Sep 2018 15:09:08 -0400 Received: by mail-ot1-f68.google.com with SMTP id 36-v6so1304301oth.11 for ; Thu, 13 Sep 2018 06:59:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9viuzLyKw1+0ihqQI7BMG0rDHglykTatGiROFnvy3Ms=; b=pxso0uxi7bVV7bkF2efo+woxhpsj0fPmWSR9TU0Ts4CkxwXGs4igGMH0YEV7AIbVko x1ZM0iVWnYwgtDaSty1uFkufPKBlV4BJS+QmYmumOSQbmxd922Wrp7tTxj+LJtk6lfuh RxoCPkhUrZJjCddcIEhm/4UdkcfZaXX8nCxbRqjSFJv1k0T4lXtwtwmjubyZqkwnjhWS ysCexak4B2/Okn2CxymvwIr4NMGV2xnLuqnaQDIExuqNdu5YKabjMYQlU7J+S5T79+fk 2WBoRAs0neW0Vz1OgHY1yAz5eZSl35FbFoitW90ZnL44IUAytPHxqKLWynQUrwg440Gu Y1OQ== X-Gm-Message-State: APzg51C4+uGf4VvfPN2100U4bw+t+sNPDqq7qpVODrSvS2fxmbOvUSHC OHJfkO12AAOOugYANy2oGMiAOtcgmobrgTcfM83H8w== X-Received: by 2002:a9d:5745:: with SMTP id x5-v6mr1342461oti.226.1536847170562; Thu, 13 Sep 2018 06:59:30 -0700 (PDT) MIME-Version: 1.0 References: <20180824120001.20771-1-omosnace@redhat.com> <20180827075020.GL27091@localhost> <4819575.TSNxuEWROA@x2> In-Reply-To: <4819575.TSNxuEWROA@x2> From: Ondrej Mosnacek Date: Thu, 13 Sep 2018 15:59:19 +0200 Message-ID: Subject: Re: [PATCH ghak10 v5 1/2] audit: Add functions to log time adjustments To: Steve Grubb Cc: Miroslav Lichvar , Linux-Audit Mailing List , Paul Moore , Richard Guy Briggs , John Stultz , Thomas Gleixner , Stephen Boyd , Linux kernel mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > > -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 > > Associate Software Engineer, Security Technologies > > Red Hat, Inc. > > > > -- Ondrej Mosnacek Associate Software Engineer, Security Technologies Red Hat, Inc.