Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systemd hardening and Debian upgrades #369

Open
nuxeh opened this issue Dec 16, 2020 · 2 comments
Open

Systemd hardening and Debian upgrades #369

nuxeh opened this issue Dec 16, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@nuxeh
Copy link
Owner

nuxeh commented Dec 16, 2020

Following the merge of f64f4c5, upgrading via Debian package will now fail. The default configuration path is found via XDG environment variables, yet with DynamicUser, this appears to still point to /home/url-bot-rs rather than /var/lib/url-bot-rs

Dec 16 18:10:46 dinkydos url-bot-rs[484396]: INFO - directory `/home/url-bot-rs/.config/url-bot-rs` doesn't exist, cr>
Dec 16 18:10:46 dinkydos url-bot-rs[484396]: ERROR - Permission denied (os error 13)

There is an additional concern about copying the existing configuration, which would likely require user intervention (manual copying of the data) for the service to run. Not sure of a graceful way to handle this automatically.

@nuxeh nuxeh added the bug Something isn't working label Dec 16, 2020
@mweinelt
Copy link
Contributor

AFAIR systemd notices when a service toggles DynamicUser and moves state back and forth as needed.

The reason why it still points to /home/url-bot-rs is likely because that is the pre-existing users home directory which would need to be changed.

@polyzen
Copy link
Contributor

polyzen commented Dec 16, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants