From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BF9AC2BA2B for ; Tue, 7 Apr 2020 14:19:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F073D20719 for ; Tue, 7 Apr 2020 14:19:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728966AbgDGOTX convert rfc822-to-8bit (ORCPT ); Tue, 7 Apr 2020 10:19:23 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47543 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728737AbgDGOTW (ORCPT ); Tue, 7 Apr 2020 10:19:22 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jLp4K-000768-PN; Tue, 07 Apr 2020 16:19:12 +0200 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 64BBF101303; Tue, 7 Apr 2020 16:19:12 +0200 (CEST) From: Thomas Gleixner To: "Michael Kerrisk \(man-pages\)" , Andrei Vagin Cc: mtk.manpages@gmail.com, Andrei Vagin , Dmitry Safonov , linux-man , Vincenzo Frascino , Linux API , Containers , Dmitry Safonov <0x7f454c46@gmail.com>, lkml , Cyrill Gorcunov , "Eric W. Biederman" , Andy Lutomirski , Adrian Reber Subject: Re: RFC: time_namespaces(7) manual page In-Reply-To: References: <7221df0a-435b-f8bc-ff91-c188af535e73@gmail.com> <20200407032318.GA494464@gmail.com> <87r1wzk2p5.fsf@nanos.tec.linutronix.de> Date: Tue, 07 Apr 2020 16:19:12 +0200 Message-ID: <87lfn7js4f.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-man-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org "Michael Kerrisk (man-pages)" writes: > I've tried to capture this info, as well some other relevant errors > in the following text. Does it look okay? > > Writes to the timens_offsets file can fail with the following > errors: > > EINVAL An offset-nanosecs value is greater than 999,999,999. > > EINVAL A clock-id value is not valid. > > EPERM The caller does not have the the CAP_SYS_TIME capability. > > ERANGE An offset-secs value is out of range. In particular; > > · offset-secs can't be set to a value which would make the > current time on the corresponding clock inside the names‐ > pace a negative value; and > > · offset-secs can't be set to a value such that the time on > the corresponding clock inside the namespace would exceed > half of the value of the kernel constant KTIME_SEC_MAX > (this limits the clock value to a maximum of approxi‐ > mately 146 years). Yes. Thanks, tglx