Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp744307imm; Thu, 13 Sep 2018 07:08:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZi6QjPUSuYDCRDEotyX93ogK59sL52wSWB+2mJi//lYFkirqKX0I+Jyn1DXUC6F4I2R7eX X-Received: by 2002:a17:902:22e:: with SMTP id 43-v6mr7624262plc.118.1536847706283; Thu, 13 Sep 2018 07:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847706; cv=none; d=google.com; s=arc-20160816; b=D4p7bQ9ZF7JiKRYA6CpJNLCPaX8qChDrBOMwTMHKyEtieWahKjBZjVCnWJn8I0WA5k jSUqTrbgW2AmVVqkKcFj/7M/wf4GU3lBB/LiIpHTB5A5s//LjgS/4M5R6H0uIZexFxzV ZWtI3LKutOS3HuC8kF0exXvbv2yB7Ln77fBeMUPVINEi2iP+9lxCDh1AZSBJFoUvxuhi V+k9C9k0K0UoXsq0NbmT4TPzc/lTx2Ic7K26ZN3Ksio6q76i7JVyQn5KG6jFJPmp56U+ mUGczsJUHS7M3tLfXmZ8WD45bU23LhCZSDY+ESHoV2XOVoPXWBai7RONXHiNz4wKXsxA YLuA== 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 :references:in-reply-to:organization:message-id:date:subject:cc:to :from; bh=sn/RVN+JfsajGcUyRp/Wji9X00NGLgsxdcnH3170mAg=; b=pMtjRnS4Bl1C0RwDw/Tl7QBk1E6QeG2nMbDJU9CO2prjF81T+b6hrVBLVCYaomkg5i y9YhjQfO5IEH/Xz/dnM0LqtbFP+FQIn15kTwN2dQn0AO1SjO9KLJ8XaNAX7HQUeiAX5Y 2xr6G1wwgYnZjzipmcElid7DKTVoHda++cCXCwqSNXalt2OxRFzCoALF4bwMBj0lyXZM ynGtkWhx6qDOk6q5R30lWmC6zFZ43Mm6yZyQ0N9BmEywL7cn+E2djkRkhn9Bky5RMKaB Vx69pfOP1ZgDJyXkLg/aaMLdt8kAjGt/mb63WXg8zvooPhy1NnJ/8lYYpDna2/WYGSsz WiEA== 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 71-v6si4299983pfv.139.2018.09.13.07.08.10; Thu, 13 Sep 2018 07:08: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 S1729721AbeIMTRk (ORCPT + 99 others); Thu, 13 Sep 2018 15:17:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48580 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727566AbeIMTRk (ORCPT ); Thu, 13 Sep 2018 15:17:40 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7DD10317C40E; Thu, 13 Sep 2018 14:08:00 +0000 (UTC) Received: from x2.localnet (ovpn-122-199.rdu2.redhat.com [10.10.122.199]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2F5735D6B5; Thu, 13 Sep 2018 14:07:55 +0000 (UTC) From: Steve Grubb To: Ondrej Mosnacek Cc: Paul Moore , Miroslav Lichvar , Thomas Gleixner , Linux-Audit Mailing List , Richard Guy Briggs , John Stultz , Stephen Boyd , Linux kernel mailing list Subject: Re: [RFC PATCH ghak10 v4 0/2] audit: Log modifying adjtimex(2) calls Date: Thu, 13 Sep 2018 10:07:54 -0400 Message-ID: <192111258.UpI01XQOzn@x2> Organization: Red Hat In-Reply-To: References: <20180820123818.27547-1-omosnace@redhat.com> <2148764.ODNUjEgRWb@x2> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 13 Sep 2018 14:08:00 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, September 13, 2018 9:58:32 AM EDT Ondrej Mosnacek wrote: > On Fri, Aug 24, 2018 at 4:56 PM Steve Grubb wrote: > > On Wednesday, August 22, 2018 5:27:17 PM EDT Paul Moore wrote: > > > On Tue, Aug 21, 2018 at 3:21 AM Miroslav Lichvar > > > > wrote: > > > > > On Mon, 20 Aug 2018, Ondrej Mosnacek wrote: > > > > > > @John or other timekeeping/NTP folks: We had a discussion on the > > > > > > audit > > > > > > ML on which of the internal timekeeping/NTP variables we should > > > > > > actually > > > > > > log changes for. We are only interested in variables that can > > > > > > (directly > > > > > > or indirectly) cause noticeable changes to the system clock, but > > > > > > since we > > > > > > have only limited understanding of the NTP code, we would like to > > > > > > ask > > > > > > you for advice on which variables are security relevant. > > > > > > > > I guess that mostly depends on whether you consider setting the clock > > > > to run faster or slower than real time to be an important event for > > > > the audit. > > > > > > > > > > - NTP value adjustments: > > > > > > - time_offset (probably important) > > > > > > > > This can adjust the clock by up to 0.5 seconds per call and also > > > > speed > > > > it up or slow down by up to about 0.05% (43 seconds per day). > > > > > > This seems worthwhile. > > > > > > > > > - time_freq (maybe not important?) > > > > > > > > This can speed up or slow down by up to about 0.05%. > > > > > > This too. > > > > > > > > > - time_status (likely important, can cause leap second injection) > > > > > > > > Yes, it can insert/delete leap seconds and it also enables/disables > > > > synchronization of the hardware real-time clock. > > > > > > This one as well. > > > > > > > > > - time_maxerror (maybe not important?) > > > > > > - time_esterror (maybe not important?) > > > > > > > > These two change the error estimates that are reported to > > > > applications > > > > using ntp_gettime()/adjtimex(). If an application was periodically > > > > checking that the clock is synchronized with some specified accuracy > > > > and setting the maxerror to a larger value would cause the > > > > application to abort, would it be an important event in the audit? > > > > > > Since these don't really affect the time, just the expected error, I'm > > > not sure this is important. > > > > I don't think so. > > Sorry, just to make sure I understand it right - do you (also) not > think it is important or do you not think it is not important? :) I do not think its important to record the errors since the exit code tells us there's a problem. IOW, I'm agreeing with Paul. -Steve