distributions.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Anna <navi@vlhl.dev>
To: "distributions@lists.linux.dev" <distributions@lists.linux.dev>
Subject: Re: Y2038, glibc and utmp/utmpx on 64bit architectures
Date: Fri, 3 Mar 2023 17:09:24 -0300	[thread overview]
Message-ID: <20230303200924.b6mpmaoh2m62ejkf@lily> (raw)
In-Reply-To: <20230303170729.GA4300@suse.com>

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

> Not really, as I wrote in my blog. utmps does not solve all problems
> with utmp/utmps and it's just another daemon doing the same things as
> systemd-logind is already doing.

In the blog post, it was included the following:
> Proposal
>    1. Change all applications, which read utmp, to query systemd-logind instead
>    2. Stop writing utmp entries after we are sure nobody uses them anymore

> [...]

> What if I don’t use systemd?

> This heavily depends on the libc and init system you are using. For s6 exists e.g.
> a secure utmp (utmps) implementation, while on the other side musl libc has no
> support for utmp/wtmp at all.

My issue with this is basically leaving everyone that doesn't use
systemd to fend for themselves. We patch those apps to use logind,
remove utmp and then what does non-systemd distros do?

While having two daemons (umtps and logind) at the same time is not that
great of a solution either, it would be better to have an interface that
can work with different backends, so that in a systemd system, you'd
just use logind, but in a non-systemd system, you'd use a standalone
daemon, such as utmps, both using options using the same API on the
application side.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

  reply	other threads:[~2023-03-03 20:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-03 10:46 Y2038, glibc and utmp/utmpx on 64bit architectures Thorsten Kukuk
2023-03-03 16:51 ` A. Wilcox
     [not found] ` <3067bd0ec5134b039cdb8be9db8da8e5@DB6PR04MB3255.eurprd04.prod.outlook.com>
2023-03-03 17:07   ` Thorsten Kukuk
2023-03-03 20:09     ` Anna [this message]
2023-03-03 20:25     ` Bruno Haible
     [not found]     ` <c420abff6abd43cabac8c2fa5d812091@DB6PR04MB3255.eurprd04.prod.outlook.com>
2023-03-03 20:55       ` Thorsten Kukuk
2023-03-03 22:11         ` Bruno Haible

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230303200924.b6mpmaoh2m62ejkf@lily \
    --to=navi@vlhl.dev \
    --cc=distributions@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).