From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id CD54D3858C66 for ; Tue, 11 Apr 2023 11:40:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CD54D3858C66 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 0D61321A1B for ; Tue, 11 Apr 2023 11:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1681213253; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1FE9RUSuMj44T7Hf2ZzPZs5oQQo9U3v8IU04ppnw2cM=; b=UGaQISNvtuqsUSDpDc30pjNzvGqRTXWCeipBx55aW9HIz5HBjl5c7JQfxuVxx6YHXw74yf qzXriv74XVOG4n8Mb8bLEprFYlS+G4hlkCxeFjjMKzRGJv4HughA8PwlC8fOXj6scDRvyl QvbGQYFk0jYSLPzMusAzE1GnVB5WsP8= Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 03F0B2C141 for ; Tue, 11 Apr 2023 11:40:53 +0000 (UTC) Received: by wotan.suse.de (Postfix, from userid 358) id EC59064A9; Tue, 11 Apr 2023 11:40:52 +0000 (UTC) Date: Tue, 11 Apr 2023 11:40:52 +0000 From: Thorsten Kukuk To: libc-alpha@sourceware.org Subject: Re: 64-bit time_t and __WORDSIZE_TIME64_COMPAT32 Message-ID: <20230411114052.GA29920@suse.com> References: <0869a6f98f29405eb431f63db593c490@DB6PR04MB3255.eurprd04.prod.outlook.com> <20230208101125.GA5099@suse.com> <20230208102225.GA5543@suse.com> <7485b79473614eaa994d3ea79c91629a@DB6PR04MB3255.eurprd04.prod.outlook.com> <20230208103819.GA6177@suse.com> <901005ca-640f-3a8f-a199-c1374f3cf141@linaro.org> <20230214082409.GA29974@suse.com> <3230d2f8fa214c268cba52e699c14ae2@DB6PR04MB3255.eurprd04.prod.outlook.com> <20230216135920.GA1706@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230216135920.GA1706@suse.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,KAM_NUMSUBJECT,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, to give a short update on this: lastlog: see https://www.thkukuk.de/blog/Y2038_glibc_lastlog_64bit/ openSUSE Tumbleweed and MicroOS use already lastlog2, we are starting now to remove the "old" lastlog code and usage. ALP is currently switching to it. wtmp: see https://www.thkukuk.de/blog/Y2038_glibc_wtmp_64bit/ Even if many applications write wtmp entries in a chaotic or wrong way, there is only one application from relevance reading it: last. lslogins reads it, too, don't know how often it is really used. adjtimex reads it, too, but I haven't found any application writing this type of entries adjtimex tries to read. wtmpdb is currently in security review, afterwards we will switch to it, too. Everything is already prepared for this. utmp: see https://www.thkukuk.de/blog/Y2038_glibc_utmp_64bit/ systemd accepted the necessary patches, v254 should contain them. First upstream projects accepted the necessary adjustements, too. Main usage of utmp is to find out how many users are logged in, else there are wall, write, who and w. For coreutils patches exist beside who, procps accepted already the first bunch, util-linux has open PRs for the next release, Linux-PAM accpeted them, too. Will be in the next release the coming days. Only problem is openssh, since they know the TTY only after PAM authentication and systemd-logind has no interface to adjust the TTY later. I will look into this next. So from my point of view, dropping lastlog and wtmp should be straight forward, utmp will need quite some more work. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg, Germany Managing Director: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman (HRB 36809, AG Nürnberg)