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

2025-03-27 Thread Adrian Vovk
Hello, Isn't there UID mapping support for this purpose? For that specific NFS mount, you could map whatever UID it is to UID 0 Best, Adrian On Thu, Mar 27, 2025, 15:03 James Muir (jamesmui) wrote: > > > Is there a conf option or an environment variable I can use to disable > the unsafe path t

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

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

2025-03-27 Thread Lennart Poettering
On Mi, 26.03.25 17:51, James Muir (jamesmui) (james...@cisco.com) wrote: > 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 dir

[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