systemd / systemd

The systemd System and Service Manager
https://systemd.io
GNU General Public License v2.0
13.3k stars 3.81k forks source link

Should ownerships and perms of Runtime/Logs/Cache directories be preserved between ExecStartPre's and ExecStart's ? #12722

Open fbuihuu opened 5 years ago

fbuihuu commented 5 years ago

This is a grey area as nothing in the documentation clearly describes what the expected behavior should be.

That might explain why the behavior changed a couple of times already: an attempt to make it persistent was done via 30c81ce2ce in order to fix https://bugzilla.redhat.com/show_bug.cgi?id=1508495 (which is likely to be re-opened BTW) and was later changed by 0bf05f0122f0f13cd0c0bc35a31861875d2ead31...

It would be nice if we could agree on definitive behavior for good.

poettering commented 5 years ago

hmm, yeah, @keszybz opinion?

poettering commented 5 years ago

/cc @taro-yamada @jcaamano

poettering commented 5 years ago

/cc @yuwata

fbuihuu commented 4 years ago

Hi guys, can we please clarify this grey area ? Thanks.

poettering commented 4 years ago

I think what is configured should always win, i.e. be enforced every time we fork something off.

fbuihuu commented 4 years ago

OTOH it seems that users might expect that it should be done only once by PID1 before something is forked off.

fbuihuu commented 3 years ago

ping