Re: [systemd-devel] Where to put unix sockets while SELinux enforces on init_t?

2022-01-30 Thread Daniel Farina
On Sun, Jan 30, 2022 at 3:01 AM Mantas Mikulėnas wrote: > > On Sun, Jan 30, 2022 at 12:47 AM Daniel Farina wrote: >> >> I am using SELinux enforced AlmaLinux, and am wondering where the customary >> place to put a ListenStream directive that is opening a unix socket

[systemd-devel] Where to put unix sockets while SELinux enforces on init_t?

2022-01-29 Thread Daniel Farina
I am using SELinux enforced AlmaLinux, and am wondering where the customary place to put a ListenStream directive that is opening a unix socket should be. Old-school customarily, /tmp suffices, but SELinux blocks that: "init_t" is not allowed to create the socket there. Looking through

[systemd-devel] Porting init script using unshare, overlayfs to systemd

2019-12-03 Thread Daniel Farina
Hello everyone, I'm porting a patch to an init script to systemd, and I have a few questions. More specifically, I'm porting a relatively small patch to the existing PostgreSQL Development Group (PGDG yum) Redhat init scripts to systemd. The patch looks something like this: echo -n