[systemd-devel] generators, private /tmp
Lennart Poettering
lennart at poettering.net
Tue Nov 19 21:12:57 UTC 2024
On Di, 19.11.24 20:58, James Muir (jamesmui) (jamesmui at cisco.com) wrote:
> 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, say, an environment variable or a config file setting.
>
> Is that correct?
Yes.
Generators run during earliest boot, where /tmp/ is quite likely not
mounted yet, hence generators do not have access to the system's /tmp/
and get a transient one.
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list