ziti-tunnel-sdk-c icon indicating copy to clipboard operation
ziti-tunnel-sdk-c copied to clipboard

correct permissions before dropping privs

Open qrkourier opened this issue 2 months ago • 0 comments

The ZET service fails to start as user "ziti" if the IPC socket dir was previously created by user "root" in a scenario where the binary was run manually before the service was started.

Possible solution: correct owner and mode as root with systemd service unit directive ExecStartPre. The directive is currently used to run a script that provides features like enrolling with tokens in the configured identity dir. (link to unit template). We could enhance that script to fix perms.

qrkourier avatar Apr 19 '24 12:04 qrkourier