Re: [systemd-devel] Getting rid of the /run/credentials mount

2022-08-25 Thread Marc Haber
On Thu, Aug 25, 2022 at 11:37:12PM +0300, Topi Miettinen wrote: > On 25.8.2022 22.42, Marc Haber wrote: > > on the system and sends an alert if things change on the system. In the > > Debian package, this is done from cron. I would like to move that to a > > systemd timer and in passing use some

Re: [systemd-devel] The best way to execute kexec via dbus

2022-08-25 Thread Andrei Borzenkov
On 26.08.2022 03:59, Tomáš Hnyk wrote: > Hello,I am trying to be able to reboot with kexec from a GUI (I am > modifying this: https://github.com/varlesh/org.kde.plasma.compact-shutdown > ). As far as I can tell, I need to use qdbus. Via command line, I can > successfully reboot with kexec with:

Re: [systemd-devel] Ordering units and targets with devices

2022-08-25 Thread Michael Cassaniti
On 25/8/22 22:22, Lennart Poettering wrote: On Do, 25.08.22 10:50, Michael Cassaniti (mich...@cassaniti.id.au) wrote: It seems to be somewhat more complicated than that, and perhaps it has more to do with my setup. Here's my /etc/crypttab which just might explain a bit:     # Mount root and

Re: [systemd-devel] Are logs at /run/log/journal automerged?

2022-08-25 Thread Yuri Kanivetsky
Let me first reply to your answers. Then I'll provide more details. And a couple of questions at the end. > > I'm experiencing this on Digital Ocean. The machine id there changes > > (which I think shouldn't happen) on the first boot (supposedly by > > cloud-init). > > The machine ID may change

[systemd-devel] The best way to execute kexec via dbus

2022-08-25 Thread Tomáš Hnyk
Hello,I am trying to be able to reboot with kexec from a GUI (I am modifying this: https://github.com/varlesh/org.kde.plasma.compact-shutdown ). As far as I can tell, I need to use qdbus. Via command line, I can successfully reboot with kexec with: systemctl start kexec.target

Re: [systemd-devel] Getting rid of the /run/credentials mount

2022-08-25 Thread Topi Miettinen
On 25.8.2022 22.42, Marc Haber wrote: Hi, the aide (https://github.com/aide/aide) tool builds checksums of files on the system and sends an alert if things change on the system. In the Debian package, this is done from cron. I would like to move that to a systemd timer and in passing use some

[systemd-devel] Getting rid of the /run/credentials mount

2022-08-25 Thread Marc Haber
Hi, the aide (https://github.com/aide/aide) tool builds checksums of files on the system and sends an alert if things change on the system. In the Debian package, this is done from cron. I would like to move that to a systemd timer and in passing use some of systemd's security features. Here is

Re: [systemd-devel] socket activation selinux context on create

2022-08-25 Thread Ted Toth
I've tested setting the type of the port using semanage port -a however when I start the service netstat still shows the type as init_t. I don't know of any other way to get a type transition of a socket to happen, do you?. I've also posted to the selinux list but haven't gotten any responses yet.

Re: [systemd-devel] Ordering units and targets with devices

2022-08-25 Thread Lennart Poettering
On Do, 25.08.22 10:50, Michael Cassaniti (mich...@cassaniti.id.au) wrote: > It seems to be somewhat more complicated than that, and perhaps it has more > to do with my setup. Here's my /etc/crypttab which just might explain a bit: > >     # Mount root and swap >     # These will initially have an

Re: [systemd-devel] Ordering units and targets with devices

2022-08-25 Thread Michael Cassaniti
On 25/8/22 20:43, Lennart Poettering wrote: On Mi, 17.08.22 13:23, Michael Cassaniti (mich...@cassaniti.id.au) wrote: Hi, I'm trying to order my units and targets during early boot so that: 1. A symlink to the specific FIDO2 token I'm using gets created. I already have a udev rule in place

Re: [systemd-devel] Ordering units and targets with devices

2022-08-25 Thread Lennart Poettering
On Mi, 17.08.22 13:23, Michael Cassaniti (mich...@cassaniti.id.au) wrote: > Hi, > > I'm trying to order my units and targets during early boot so that: > 1. A symlink to the specific FIDO2 token I'm using gets created. I already > have a udev rule in place for this and it successfully creates the

Re: [systemd-devel] Are logs at /run/log/journal automerged?

2022-08-25 Thread Lennart Poettering
On Mo, 22.08.22 13:02, Yuri Kanivetsky (yuri.kanivet...@gmail.com) wrote: > Hi, > > I'm experiencing this on Digital Ocean. The machine id there changes > (which I think shouldn't happen) on the first boot (supposedly by > cloud-init). The machine ID may change during the initrd to host-fs

Re: [systemd-devel] socket activation selinux context on create

2022-08-25 Thread Lennart Poettering
On Mi, 24.08.22 11:50, Ted Toth (txt...@gmail.com) wrote: > I don't see a way to set the context of the socket that systemd > listens on. If there is a way to do this please tell me otherwise I'd > like to see an option (SELinuxCreateContext?) added to be able to set > the context

Re: [systemd-devel] Ordering units and targets with devices

2022-08-25 Thread Andrei Borzenkov
On 17.08.2022 16:23, Michael Cassaniti wrote: > Hi, > > I'm trying to order my units and targets during early boot so that: > 1. A symlink to the specific FIDO2 token I'm using gets created. I > already have a udev rule in place for this and it successfully creates > the symlink under /dev.