Re: [systemd-devel] systemd-tty-ask-password-agent, new warning

2025-07-09 Thread James Muir (jamesmui)
> Does it also move "systemd-ask-password" to -extra? Yes, systemd-ask-password is/was also part of systemd-extra-utils, along with several other files. > For a distro that targets embedded devices (i.e. where services aren't going > to use > systemd's ask-password facility because nobody will

Re: [systemd-devel] systemd-tty-ask-password-agent, new warning

2025-07-09 Thread James Muir (jamesmui)
>> Any comment on my other question: is systemd-tty-ask-password an optional >> component? > > It is optional. You can skip it with --no-ask-password. If you did not, > it is assumed you wanted password agent and the warning is correct. It > is just a message, systemctl does not fail if it could

Re: [systemd-devel] systemd-tty-ask-password-agent, new warning

2025-07-08 Thread James Muir (jamesmui)
> Is systemd-tty-ask-password real or a typo? Sorry, I meant systemd-tty-ask-password-agent. I dropped “-agent” by mistake (at least I had it right in the subject). > Also if you're already in a root session, why is it asking for more > authentication? I suspect some services need to query for

Re: [systemd-devel] systemd-tty-ask-password-agent, new warning

2025-07-08 Thread James Muir (jamesmui)
>>> Is systemd-tty-ask-password still an optional component? >>> >>> Is this new behaviour (where systemd-tty-ask-password is repeatedly >>> executed) intentional? >> >> It is not new behavior. systemctl did it for as long as I remember. > > Okay. But the display of the warning is new behaviour.

Re: [systemd-devel] systemd-tty-ask-password-agent, new warning

2025-07-08 Thread James Muir (jamesmui)
>> Is systemd-tty-ask-password still an optional component? >> >> Is this new behaviour (where systemd-tty-ask-password is repeatedly >> executed) intentional? > > It is not new behavior. systemctl did it for as long as I remember. Okay. But the display of the warning is new behaviour. Was the

[systemd-devel] systemd-tty-ask-password-agent, new warning

2025-07-08 Thread James Muir (jamesmui)
I upgraded from v255.4 to v255.13 (these are tags from https://github.com/systemd/systemd-stable), I now see the following warning when I manually start a service: root@vbox:~/tmp# systemctl start systemd-journald Failed to execute /usr/bin/systemd-tty-ask-password-agent: No such file or direct

Re: [systemd-devel] systemd-tmpfiles, unsafe path transitions

2025-03-27 Thread James Muir (jamesmui)
> > Is there a conf option or an environment variable I can use to disable the > > unsafe path transition check? > > No there is not. It's a security hole what you are doing there... > > > Failing that, is there a way I can change the ownership systemd-tmpfiles > > sees? > > Why not just fix the

[systemd-devel] systemd-tmpfiles, unsafe path transitions

2025-03-26 Thread James Muir (jamesmui)
I am doing dev work on a linux system and I am mounting the root filesystem via NFS to make my work-flow easier. Unfortunately, the directory I am NFS mounting is not owned by root, and this causes some of the directives processed by the systemd-tmpfiles utility during boot (e.g. in systemd-tmp

Re: [systemd-devel] switch-root, init, SIGHUP

2025-01-21 Thread James Muir (jamesmui)
> > I think the SIGHUP must come from the new PID 1. > > I don't know if this will help you, however here is a program that I > wrote last year that starts a service in the initramfs, it survives > the systemd killing spree during the transition to the root > filesystem, a new copy of the program i

Re: [systemd-devel] switch-root, init, SIGHUP

2025-01-20 Thread James Muir (jamesmui)
> > It is not clear to me if the '@' is necessary because the process is > > invoked using the "init" kernel parameter. > > That detail doesn't matter. It's irrelevant how the process gets > started. In particular as I understand you you fork()ed once, > i.e. init= starts PID 1, but this is not PID

Re: [systemd-devel] switch-root, init, SIGHUP

2025-01-20 Thread James Muir (jamesmui)
> > I have a program, init-jm, that forks and executes > > /usr/lib/systemd/systemd in the parent (using execl() ) while the > > child collects some stats in a loop. > > Uh, you can do this, but it's not trivial to get right: you need to > move yourself down the cgroup tree, because otherwise you'l

Re: [systemd-devel] switch-root, init, SIGHUP

2025-01-20 Thread James Muir (jamesmui)
> I suspect that your process has a controlling tty based on this comment > in the killall() function at src/shared/killall.c: > >if (send_sighup) { >/* Optionally, also send a SIGHUP signal, but only if the process > has a controlling > * tty. This is useful to allow h

[systemd-devel] switch-root, init, SIGHUP

2025-01-17 Thread James Muir (jamesmui)
I have a program, init-jm, that forks and executes /usr/lib/systemd/systemd in the parent (using execl() ) while the child collects some stats in a loop. The child sets its argv[0][0] to ‘@’. init-jm is invoked using the “init” kernel parameter on a switch-root system (it’s Fedora 41). Can som

Re: [systemd-devel] systemd-bootchart, switch-root breakage

2025-01-15 Thread James Muir (jamesmui)
> Isn't systemd-bootchart, like, dead? Last release is nine years old or so. The last release of systemd-bootchart, v235, was done in November 2023: https://github.com/systemd/systemd-bootchart/tags There hasn’t been much activity lately, but I wouldn’t call it dead (there are a few PRs open th

Re: [systemd-devel] systemd-bootchart, switch-root breakage

2025-01-15 Thread James Muir (jamesmui)
> I opened https://github.com/systemd/systemd-bootchart/issues/58 to track > this. Could someone explain why systemd-bootchart is being sent SIGHUP? Changing systemd-bootchart to ignore that signal isn’t difficult, but I would like to understand why PID 1 is sending it. Note that systemd-boot

Re: [systemd-devel] systemd-bootchart, switch-root breakage

2025-01-14 Thread James Muir (jamesmui)
> **1. systemd-bootchart stops too early** > > According to "man systemd-bootchart", the recommended way to invoke bootchart > is via a kernel parameter: > > init=/usr/lib/systemd/systemd-bootchart > > That parameter causes systemd-bootchart to be executed as the new init > process when we swit

[systemd-devel] systemd-bootchart, switch-root breakage

2025-01-03 Thread James Muir (jamesmui)
Is anyone else using systemd-bootchart on a system that boots using an initial ramdisk? (e.g. like Fedora 41) I am fighting with two issues and am looking for some advice. **1. systemd-bootchart stops too early** According to “man systemd-bootchart”, the recommended way to invoke bootchart i

Re: [systemd-devel] generators, private /tmp

2024-11-26 Thread James Muir (jamesmui)
> > > > Hi everyone, > > > > > > > > The system manager (as of v253) executes generators in a sandbox with a > > > > fresh tmpfs mount on /tmp: > > > > > > > > > > > > https://github.com/systemd/systemd/blob/a526b9ddfc03a290f20a65c0a73792e73029f1b8/src/core/manager.c#L4274 > > > > > > > > Looki

Re: [systemd-devel] generators, private /tmp

2024-11-20 Thread James Muir (jamesmui)
> > Hi everyone, > > > > The system manager (as of v253) executes generators in a sandbox with a > > fresh tmpfs mount on /tmp: > > > > > > https://github.com/systemd/systemd/blob/a526b9ddfc03a290f20a65c0a73792e73029f1b8/src/core/manager.c#L4274 > > > > Looking at the code, it appears that ther

[systemd-devel] generators, private /tmp

2024-11-19 Thread James Muir (jamesmui)
Hi everyone, The system manager (as of v253) executes generators in a sandbox with a fresh tmpfs mount on /tmp: https://github.com/systemd/systemd/blob/a526b9ddfc03a290f20a65c0a73792e73029f1b8/src/core/manager.c#L4274 Looking at the code, it appears that there is no way to disable that using