Re: [systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-09-01 Thread Lennart Poettering
here's also a "render" group set up to which users can be added which should always get access. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Custom Localed Configuration Location

2023-08-31 Thread Lennart Poettering
hidden backend or so, but a primary interface to this setting. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Additional Locale Variables for Units and Number Format

2023-08-31 Thread Lennart Poettering
t maybe someone at the Linux Foundation can connect you. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Flushing DNS caches items on clock change.

2023-08-31 Thread Lennart Poettering
we should invalidate whatever information we collected so far about the network. Given this is redundant info we can reacquire this should not be an issue. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Assertion '!ether_addr_is_null(addr)'

2023-08-31 Thread Lennart Poettering
ur OS vendor, asking them to maybe backport the fix in question. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Is it possible to change the cgroup uid/gid for a systemd slice?

2023-08-31 Thread Lennart Poettering
ams for slices. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Lennart Poettering
y broken. Even if they are opt-in. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Lennart Poettering
ite()'s size is larger than datagram max size you get EMSGSIZE). Programs trying to write too much usually expect blocking behaviour... Thus this approach is not really an option. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Lennart Poettering
t; To get what is send to stderr I had to do: > journalctl -p 6 -u aptCacheUsage.service > > which gave beside a lot of other things the things send to stdout. > > Now I have two different statements I can do: > journalctl -p 3 -u aptCacheUsage.service > > But it would be nice if I did not need two different statements (and the > logic around that) for that. Still not getting what you are trying to say here. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Append to logfile with year-month

2023-08-25 Thread Lennart Poettering
t rotate files like that, because we cannot externally close the current stdout of a process and replace it with a new file. hence, what you are trying to do is not supported, and is unlikely to ever be supported for multiple reasons. sorry! Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-25 Thread Lennart Poettering
hings send to > stdout. I can't parse that. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Error during SCC_DAEMON installation

2023-08-25 Thread Lennart Poettering
# journalctl -xeu scc_daemon.service > Aug 24 13:41:35 scc_daemon[5574]: scc_Daemon start failed, see > logfile: /opt/sap/scc/scc_daemon.log systemd is just the messenger here. Please contact SAP for help on this SAP product, not the systemd project. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd-cryptenroll with TPM2

2023-08-23 Thread Lennart Poettering
On Di, 22.08.23 22:35, Aleksandar Kostadinov (akost...@redhat.com) wrote: > On Tue, Aug 22, 2023 at 8:10 PM Lennart Poettering > wrote: > > On Di, 22.08.23 19:16, Aleksandar Kostadinov (akost...@redhat.com) wrote: > <...> > > > If attacker replaces volume with

Re: [systemd-devel] systemd-cryptenroll with TPM2

2023-08-22 Thread Lennart Poettering
s > >0-7, 9, 11-13, 15, i.e. everything that is reasonably stable > >locally. > > > > Alas, as mentioned this is WIP, still. > > I didn't expect the unattended server TPM2 encryption to be such a > muddy ground. Probably because serious use cases also involve more > infrastructure and dedicated admins, etc. It is certainly my intention to make this all "just work" and "default on", even on consumer hw. Windows does it, so we should be able to do that as well. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd-cryptenroll with TPM2

2023-08-22 Thread Lennart Poettering
mistakes > that original scripts already avoid. Neither for the literla PCR policies nor for the signed PCR policies the PCRs actailly need to be in the state we expected states when enrolling. Support for the former was recently added upstream. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd-cryptenroll with TPM2

2023-08-22 Thread Lennart Poettering
thing inherently local that is hard to predict from the outside (and for good measure also covers the vendor supplied stuff, because why not). This would then cover PCRs 0-7, 9, 11-13, 15, i.e. everything that is reasonably stable locally. Alas, as mentioned this is WIP, still. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Can AppArmor be used with NoNewPrivileges=true enabled

2023-08-21 Thread Lennart Poettering
e ask about AA compat with that. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd-coredump stack traces

2023-08-11 Thread Lennart Poettering
ebug info available in current fedora distros built-in. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Feedback sought: can we drop cgroupv1 support soon?

2023-08-07 Thread Lennart Poettering
ng anything on its own, such as a cgroupv2 tree. that should be enough to make old systemd happy. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Feedback sought: can we drop cgroupv1 support soon?

2023-08-07 Thread Lennart Poettering
for longer. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Dropping SysV init script support? (was: systemd prerelease 254-rc3)

2023-08-07 Thread Lennart Poettering
time. Which doesn't make much sense to me. Consider this NEWS file entry your "stimulation" to transition the holdouts. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] sd-bus: get size of array container in D-Bus message

2023-08-07 Thread Lennart Poettering
ey parse messages. Yeah, this is not fun, but hey, this is C, so nothing is "fun". Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Dropping SysV init script support? (was: systemd prerelease 254-rc3)

2023-08-07 Thread Lennart Poettering
already doing that, I've not seen it). That has been in place for a while: https://github.com/systemd/systemd/blob/main/src/sysv-generator/sysv-generator.c#L767 Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Dropping SysV init script support? (was: systemd prerelease 254-rc3)

2023-08-07 Thread Lennart Poettering
mework like systemd-initctl was? Perhaps it could even be a > pattern for others to implement translation for their own things to > systemd (e.g. runit, et al). Once the hooks from systemctl's client side are gone, they are gone. You can't really work around that. I am sorry, you want to convert runit service definitions to systemd? huh? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] sd-event: sd_event_source_set_io_handler()

2023-08-07 Thread Lennart Poettering
ent_source *source, > sd_event_io_handler_t handler); > > and similar for the other event types? Noone needed this so far. Usually people track states in enums, not by replacing function pointers... I see no reason to not add support for this. If this is important to you, please submit a PR adding

Re: [systemd-devel] Using systemd-creds for sharing secrets between services

2023-07-12 Thread Lennart Poettering
o. Until then, the way to go is shelling out to the tool. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Systemd-cryptsetup triggers a black screen after upgrading to 6.4.1

2023-07-10 Thread Lennart Poettering
> ask me the rescue password. please provide boot logs, otherwise this is not actionable. A black screen usually indicates some graphics problem. What makes you think cryptsetup has anything to do with that? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] bind-mount of /run/systemd for chrooted bind9/named

2023-07-10 Thread Lennart Poettering
On Mo, 10.07.23 11:37, Marc Haber (mh+systemd-de...@zugschlus.de) wrote: > Hi Lennart, > > On Mon, Jul 10, 2023 at 10:28:52AM +0200, Lennart Poettering wrote: > > On So, 09.07.23 20:14, Marc Haber (mh+systemd-de...@zugschlus.de) wrote: > > > > > > It should suff

Re: [systemd-devel] bind-mount of /run/systemd for chrooted bind9/named

2023-07-10 Thread Lennart Poettering
ways be a tmpfs, hence unless you mount a tmpfs to /var/local/chroot/bind/run/ first, the above is a bit ugly. Instead of this .mount unit, consider using in the .service file: TemporaryFileSystem=/var/local/chroot/bind/run BindPaths=/run/systemd/notify:/var/local/chroot/bind/run/systemd/notify (Under the assumption bind chroots itself into /var/local/chroot/bind) Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Enrolling PCR11 does not work as expected

2023-07-05 Thread Lennart Poettering
o re-sign the PCR measurements > in /boot without needing to re-do cryptenroll.) Actually, my recommendation is to embed the signature file in the UKI itself, after all the signatures are specific to specific UKIs, and hence it makes sense to glue them into the UKIs. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Enrolling PCR11 does not work as expected

2023-07-05 Thread Lennart Poettering
that match signatures of those PCR values. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] timing issue in mounting systemd filesystems

2023-07-05 Thread Lennart Poettering
stemd/Debugging/#diagnosingbootproblems Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Enrolling PCR11 does not work as expected

2023-07-05 Thread Lennart Poettering
am enrolling the wrong PCR value? > Otherwise... what am I doing wrong? We mesaure the "boot phase" into PCR 11 too. See systemd-pcrphase.service(8) for details. Generally the assumption is that PCR 11 is used for signed PCR policies, i.e. under vendor control. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] PAMName=login, systemctl stop

2023-07-04 Thread Lennart Poettering
On Mo, 03.07.23 15:21, Andrei Borzenkov (arvidj...@gmail.com) wrote: > On 03.07.2023 14:17, Lennart Poettering wrote: > > On Mo, 03.07.23 10:58, Valentijn Sessink (valent...@sessink.nl) wrote: > > > > > Now my remaining question is probably so very basic, that y

Re: [systemd-devel] bind-mount of /run/systemd for chrooted bind9/named

2023-07-04 Thread Lennart Poettering
aemon in question then does further lockdown, that's great (as sometimes a daemon might need privs during startup but not later), but generally systemd should be better at locking things down, given the seccomp stuff and all that other stuff it nowadays does. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] PAMName=login, systemctl stop

2023-07-03 Thread Lennart Poettering
can use this to kill your own session: loginctl kill-session $XDG_SESSION_ID if you want to know which systemd unit your process belongs to use: ps --pid $$ -o unit= Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] PAMName=login, systemctl stop

2023-07-03 Thread Lennart Poettering
On Fr, 30.06.23 15:11, Valentijn Sessink (valent...@sessink.nl) wrote: > Hi, > > On 28-06-2023 18:04, Lennart Poettering wrote: > > > "PAMName=login", then starts a script and a few (old X11 related) > > > programs. > [...]>> Is there a way to

Re: [systemd-devel] PAMName=login, systemctl stop

2023-06-28 Thread Lennart Poettering
, from systemd's PoV they are part of the login session, not the original service anymore. You can't have it both ways: be a session and a service. In system it's either/or. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Anonymous SYSTEMD_NOTIFY socket

2023-06-28 Thread Lennart Poettering
bstract namespace sockets are nice for things like this, but they are inherently vulnerable to DoS attacks if you use a fixed name since the namespace knows not access controls: everyone can grab any socket they like. Make sure to look at the source PID (i..e SCM_CREDENTIALS) before using incoming data. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemctl logs to journal/kmsg intended?

2023-06-20 Thread Lennart Poettering
system. If you are not the intended recipient, you may not use, > disclose, distribute, copy, print, or rely on this email. You are posting this to a public mailing list, you know this? I presume you don't actually mean this confidentiality notice, do you? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] sd-boot setup and PCRs

2023-06-19 Thread Lennart Poettering
e that gets loaded. Do you guys think this would be > needed, or is overkill? If you use UKIs, bind to the signature for PCR 11. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Children of systemd user instance can't see root user

2023-06-15 Thread Lennart Poettering
github.com/systemd/systemd/pull/28037 Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Support for unmerged-usr systems will be REMOVED in the second half of 2023

2023-06-13 Thread Lennart Poettering
at some points trying to be nice has ends: if yocto can't find the maintainance resources for updating CI, for running good reporting infra, or for maintaining systemd there's not that much stuff we can do, but it doesn't stll doesn't become our upstream problem then. We refuse to be held back by that indefinitely. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Image based OS, CopyBlocks, verity and duplicate UUIDs

2023-06-13 Thread Lennart Poettering
e6633430e8b240b87f should address your issue, no? because then we'll not mount by uuid anymore, but purely by diskseq ensuring that the stuff gpt-auto-generator finds is also the stuff we'll end up mounting eventually. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd-repart very slow creation of partitions with Encrypt=

2023-06-05 Thread Lennart Poettering
On Mo, 05.06.23 11:09, Lennart Poettering (lenn...@poettering.net) wrote: > On Mo, 05.06.23 10:41, Valentin David (valentin.da...@canonical.com) wrote: > > > On Mon, Jun 5, 2023 at 9:56 AM Lennart Poettering > > wrote: > > > > > On So, 04.06.23 14:25, Valentin Da

Re: [systemd-devel] systemd-repart very slow creation of partitions with Encrypt=

2023-06-05 Thread Lennart Poettering
On Mo, 05.06.23 10:41, Valentin David (valentin.da...@canonical.com) wrote: > On Mon, Jun 5, 2023 at 9:56 AM Lennart Poettering > wrote: > > > On So, 04.06.23 14:25, Valentin David (valentin.da...@canonical.com) > > wrote: > > > > > I have been trying to

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-06-05 Thread Lennart Poettering
for UKIs btw, precisely to deal with the problems around sizing ESP. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-06-05 Thread Lennart Poettering
gn PCR values and then bind disk encryption to the public key used for that signing, and include the signature matching a kernel in the UKI. That means updating becomes trivial, as every UKI comes with all data needed to unlock the disk safely. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd-repart very slow creation of partitions with Encrypt=

2023-06-05 Thread Lennart Poettering
-QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMM > ON +UTMP +SYSVINIT default-hierarchy=unified) > > Cryptsetup: v2.6.1 I am a bit puzzled by this. WOuld be good to figure out what actually is so slow here? formatting luks? formatting ext4? discarding? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] triggering a remove handker manually via cmd

2023-06-05 Thread Lennart Poettering
On Mo, 05.06.23 07:46, daggs (da...@gmx.com) wrote: > Greetings, > > given a rule file which has a add and remove handlers, is there a > way to manually trigger the remove handler of that file? I cannot parse this, sorry. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Monotonic time went backwards, rotating log

2023-05-26 Thread Lennart Poettering
On Do, 25.05.23 14:32, Phillip Susi (ph...@thesusis.net) wrote: > > Lennart Poettering writes: > > > We want that within each file all records are strictly ordered by all > > clocks, so that we can find specific entries via bisection. > > Why *all* clocks?

Re: [systemd-devel] udev rule, continue to next rule only if preb failed

2023-05-26 Thread Lennart Poettering
s part of rule processing, but it can only be used for very quickly running programs, and you have to communicate results of your script via properties you write to stdout rather than exit status. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-05-25 Thread Lennart Poettering
On Do, 25.05.23 10:08, Andrea Pappacoda (and...@pappacoda.it) wrote: > Il giorno mer 24 mag 2023 alle 14:35:05 +02:00:00, Lennart Poettering > ha scritto: > > Note that in systemd git main there's already support for generating > > UKIs dynamically when a kernel RPM/DEB is

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-05-25 Thread Lennart Poettering
f both the UKI and the add-ons are done via regular UEFI SecureBoot or via shim. Both UKIs and add-ons are just PE files after all that thus can be verified that way. Because the files can be authenticated via shim you get MOK and so on. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-05-24 Thread Lennart Poettering
ept we call "add-on", which would we could extend to initrds too i guess, see https://github.com/systemd/systemd/pull/27358 Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Monotonic time went backwards, rotating log

2023-05-24 Thread Lennart Poettering
ed" stream, so that you can't see that they are stored in separate journal files. > If it is intentional that journals be rotated after a reboot, could it > at least be done without complaining about it? The message is debug level, no? Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-05-24 Thread Lennart Poettering
led (as long as the "kernel-install" infra is in use). It can be signed with a local key, that can be enrolled with MOK. With that we make it reasonably easy to run a setup with a locally signed initrd – but it means that you'll get a MOK prompt during at least one boot. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] why systemd-boot (seems as everyone else) does not check the signatures of initramfs?

2023-05-24 Thread Lennart Poettering
? Where is that stored? In the ESP? That would be pointless, as you could swap it out. You could use a MOK key, but that means intraction at at least one boot, which generic distros don't like. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] setting up systemd-boot with separate EFI and boot partitions

2023-05-23 Thread Lennart Poettering
ur /boot/ partition as XBOOTLDR and format it is vfat it should just work. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-22 Thread Lennart Poettering
a large log message > looks like. Well, I think rsyslog has no idea about the journal's structured logging, because it lives in its own world. It won't see the _LINE_BREAK= structured logging. Hence you cannot reasonably reassamble I guess, the info is simply lost once rsyslog takes over. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-22 Thread Lennart Poettering
ing possible? As mentioned you can use the _LINE_BREAK= field to reassemble the lines. But seriously, if you are logging megabytes of data in single log messages you are doing things wrong. Rivisit what you are doing there, you are trying to hammer a square log message into a round log transport. Bad idea. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-22 Thread Lennart Poettering
I saw was the 1.5MB long message > that was truncating earlier went through this time without truncation and a > split happened the way I wanted it to be. So apparently your are logging via stdout/stderr. In that case LineMax= as mentioned above will help you. Still though: bad idea to send a 1.5

Re: [systemd-devel] Why does stopping mount units kill user sessions?

2023-05-19 Thread Lennart Poettering
obably should change systemd-logind to implicitly and unconditionally keep an open fd to the home dir of a user around as long as there's at least one session of them around, simply to make clear that sessions keep home dirs busy. This, as side effect would then also mean that autofs wouldn#t be tempted to consider the home dir idle as long as there's a session. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Reg: systemd boot up hung after sysroot.mount in initrd phase

2023-05-15 Thread Lennart Poettering
ogs excerpt one cannot figure anything out. This looks a lot like an integration issue, i.e. something you shoul first ask your distro about. Other than that, there's this: https://freedesktop.org/wiki/Software/systemd/Debugging/#diagnosingbootproblems Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Completing the boot process for systemd inside the chroot

2023-04-26 Thread Lennart Poettering
ot support booting in a classic chroot(). Use a container manager for that, for example "systemd-nspawn -D /some/directory -b" Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Failed to start up manager. Freezing execution.

2023-04-25 Thread Lennart Poettering
gain it freezes.The shells do start, however, when the hook is not > activated. Anyway, without debug logs as suggested in my earlier mail this is really hard to debug. Enable debug logging. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Failed to start up manager. Freezing execution.

2023-04-24 Thread Lennart Poettering
am pretty sure the above message has little to do with amount of memory required. Enable debug output if output is too terse. https://freedesktop.org/wiki/Software/systemd/Debugging/#diagnosingbootproblems Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Lennart Poettering
titute a sysv runlevel-lookalike have started. If you order rc-local.service after that then you create a cyclic dependency, because it would mean s-u-u-r.s is both before *and* after rc-local.service and that cannot be. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Lennart Poettering
On Mo, 24.04.23 11:57, Aki Ketolainen (a...@mykolab.com) wrote: > Would it be possible to change the rc-local.service configuration as > follows, so that it could be used similarly as before > i.e. running close to the end of the "runlevel" or systemd target: > > [Unit] > After=crond.service Why

Re: [systemd-devel] help with portable service

2023-04-18 Thread Lennart Poettering
On Mo, 17.04.23 06:48, Chuck Tuffli (ctuf...@gmail.com) wrote: > On Mon, Apr 17, 2023 at 4:48 AM Lennart Poettering > wrote: > > > > On Fr, 14.04.23 09:14, Chuck Tuffli (ctuf...@gmail.com) wrote: > > > > > On Thu, Apr 13, 2023 at 4:14 PM Luca Boccassi >

Re: [systemd-devel] help with portable service

2023-04-17 Thread Lennart Poettering
mount it via "mkdir t && mount /dev/loopXp1 t" or something like that. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] How to make vtable entry as SD_BUS_VTABLE_UNPRIVILEGED

2023-04-03 Thread Lennart Poettering
example. We usually recommend starting out with the docs first. Yes, they are incomplete, in which case the mailing list can fill in the gaps, but please, consult the docs, it saves us all time, and we wrote them for that. https://www.freedesktop.org/software/systemd/man/sd_bus_add_object.html Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-04-03 Thread Lennart Poettering
for you then! Since it doesn't look likely that anyone can convince you otherwise, let's end this dicussion here. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-04-03 Thread Lennart Poettering
misbehaving application, the system may still go into trashing. > Or is the kernel smart enough to prevent this? Things like systemd-oomd are supposed to detect misbehaving services and apps and shut them down cleanly before they can misbehave too much. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-31 Thread Lennart Poettering
g like this, if you use it properly. Swap is part of using it "properly". Oversized hw is typically a bad investment. In particular in today's cloud world where costs multiply with every node you have. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-31 Thread Lennart Poettering
On Do, 30.03.23 13:16, Phillip Susi (ph...@thesusis.net) wrote: > > Lennart Poettering writes: > > > oomd/PSI looks at memory allocation latencies to determine memory > > pressure. Since you disallow anonymous memory to be paged out and thus > > increase IO on file

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-31 Thread Lennart Poettering
f, at the price of degrading peformance of the apparently never used stuff. Overall win! Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-31 Thread Lennart Poettering
ut that's kinda wasteful. Resource-management through oversized hw is certainly a way to solve problems, no doubt. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-31 Thread Lennart Poettering
On Do, 30.03.23 18:56, Michael Chapman (m...@very.puzzling.org) wrote: > On Thu, 30 Mar 2023, Lennart Poettering wrote: > > On Mi, 29.03.23 13:53, Christoph Anton Mitterer (cales...@scientia.org) > > wrote: > > > > > > > That's a bad idea btw. I'd

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-31 Thread Lennart Poettering
Might make it easier for people to use it properly :-) It's a bad idea to do what you are doing. I don't think we need to make Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] How to make vtable entry as SD_BUS_VTABLE_UNPRIVILEGED

2023-03-31 Thread Lennart Poettering
uld like to allow this by satisfying the condition c->vtable->flags & > SD_BUS_VTABLE_UNPRIVILEGED There are roughly a bazillion examples in the systemd source tree for that. For example here: https://github.com/systemd/systemd/blob/main/src/login/logind-session-dbus.c#L857 Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-29 Thread Lennart Poettering
hibernation > > Does that mean it's the same problem as with the desktop environment? > I.e. systemdctl first asking logind whether hibernate was available, > before even starting hibernate.target? Yeah, all requests that go through logind check that. You can override the check via an env

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-29 Thread Lennart Poettering
nyway rather against running without swap > you probably wouldn't accept a feature request that asks for some > method to override that auto-detection (something like > AdvertiseHibernate=(auto|always|never) )? I fail to see the point of the concept these days. Systems where hibernation should be used, should generally also benefit from swap. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] how to let systemd hibernate start/stop the swap area?

2023-03-29 Thread Lennart Poettering
idea that we mount a swap partition only for hibernation appears to be a bad idea to me. We should drop it from the TODO list. If a swap partition is good for hibernation it is also good for proper swap operation, and not using it for that makes things worth in almost all ways. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-29 Thread Lennart Poettering
On Mi, 29.03.23 09:19, Stephan Bergmann (sberg...@redhat.com) wrote: > On 28/03/2023 22:58, Lennart Poettering wrote: > > On Di, 28.03.23 08:13, Stephan Bergmann (sberg...@redhat.com) wrote: > > > * Is it guaranteed for system-run --scope that the wrapped comma

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-28 Thread Lennart Poettering
On Di, 28.03.23 08:13, Stephan Bergmann (sberg...@redhat.com) wrote: > On 27/03/2023 13:38, Lennart Poettering wrote: > > another idea: can't you just wrap your tests in "systemd-run --scope > > --user --name=somtestid47110815.scope" or so? we pick up unit >

Re: [systemd-devel] coredumpctl: matching by e.g. env var?

2023-03-27 Thread Lennart Poettering
r --name=somtestid47110815.scope" or so? we pick up unit names in coredump handling. With that you'd run yur tests inside a scope unit, and can then use that as key in logs+coredump. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd-resolved: performance question

2023-03-24 Thread Lennart Poettering
a simple goal of performance to reduce these stat calls. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] CPUAffinity=all ?

2023-03-24 Thread Lennart Poettering
ding CPUAffinity=all would certainly be a useful concept to have. Consider submitting an issue asking for that on systemd Github. Or even better, send a patch! Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd-devel Digest, Vol 155, Issue 8

2023-03-13 Thread Lennart Poettering
ies come into the mix though, as mentioned in the other mail: we cannot use them for authenticating in userspace securely. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] systemd-devel Digest, Vol 155, Issue 8

2023-03-13 Thread Lennart Poettering
On Sa, 11.03.23 08:29, Lal, Arun (arun@intel.com) wrote: > Hi Lennart Poettering, > > Can you give me some more clarity on why this cannot safely be > implemented? > Do you mean the use of polkit? No. I mean authentication via linux process credentials cannot work in usersp

Re: [systemd-devel] How to make sd_bus_creds_has_effective_cap return success.

2023-03-10 Thread Lennart Poettering
the AF_UNIX. It was a safe concept when kdbus was a thing. Ignore it. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Immutable Images: Single Data Patition

2023-03-03 Thread Lennart Poettering
On Fr, 03.03.23 10:09, Lennart Poettering (mzq...@0pointer.de) wrote: > > > And suddenly we'd have a spec that would be particularly powerful > > > and generic: you could use it for subvols, for dirs, or for > > > loopback files, and mix and match freely, and it would a

Re: [systemd-devel] Smooth upgrades for socket activated services

2023-03-03 Thread Lennart Poettering
dog logic, … it's a race to the bottom if you never want to make use of the *good* stuff. But then you shouldn't be surprised if you can't do certain things... Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Immutable Images: Updating

2023-03-03 Thread Lennart Poettering
can work on this. Execellent! > > So my idea was to eventually have "systemd-sysupdate --all" which would > > iterate through all places we might have DDIs: > > Sounds reasonable. I can work on this as well. That'd be excellent. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Immutable Images: Single Data Patition

2023-03-03 Thread Lennart Poettering
d grow and shrink, but if some code immediately needs something it might fail because we didn't notice. Ideally, we would be able to tell btrfs natively "hey, so if you need more space, feel free to extend the fs up to a size of X GB as you see fit" or so. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Smooth upgrades for socket activated services

2023-03-03 Thread Lennart Poettering
a > > way this is possible > > Right. I think that'd be quite hard to do especially with servers > written in portable languages that don't expose stuff unavailable on > Windows e.g. the JVM. Why would that be? portable services are just regular services that happen to come with their own disk images, that's all. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Smooth upgrades for socket activated services

2023-03-02 Thread Lennart Poettering
you solve the problem properly and fully: after the restart only new code is in place, and all old code is flushed out. But of course such an approach requires that services are written in a way this is possible, i.e. are capable of serializing their fully state for all ongoing connections along with the

Re: [systemd-devel] Postgres Server start failure

2023-02-28 Thread Lennart Poettering
it might contain the reason. Either way, not a systemd issue, but a postgresql one. talk to the postresql community. Lennart -- Lennart Poettering, Berlin

Re: [systemd-devel] Immutable Images: Single Data Patition

2023-02-27 Thread Lennart Poettering
ply combine them all with dm-linear. Thus, if we want to extend a partition that we cannot just grow because there's another partition right behind it, we'd instead create a new "extension" partition at the end of the disk, and then chain them up. Interesting that ChromeOS and Android came to different solutions there. Lennart -- Lennart Poettering, Berlin

<    1   2   3   4   5   6   7   8   9   10   >