-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
DietPi-Software | Sonarr/Radarr/Lidarr: Allow service writes to /media #3561
Comments
@ricardoandren As a rule of thumb: If you face issues with software that was installed via Now coming to the "rubbish", which is a simple failsafe protection against mistakes from users, the system (us or Debian), runtime system devs (mono in this case), the software devs, or any other of the huge amount of possible sources, and of course another layer that protects against wanted harm from who or wherever it is coming from. Enabling exactly these systemd unit hardenings is found quite often, first match e.g. here from Jackett devs: https://github.com/Jackett/Jackett/wiki/systemd-service
The "if" is why we have it in place 😉. When offering automated software installs, which addresses inexperienced users more then experienced ones, then a bulletproof security has even more relevance. Yeah the systemd unit hardenings are by far not the most important place to being with, since DietPi has a bunch of other places where changes could bring a much greater security improve, but they are simple, easy to implement and completely painless, indeed besides when it's about custom directories for downloaders and media organisers. I was exactly thinking about adding
Okay but I agree that the security benefit of blocking write access to |
Hello Michalng, wouldnt a whiptail screen during the installation of lidarr/sonarr/radarr about the mounts (if people use unusual places to mount their drive) be better, if I saw such screen (since the prompt during dietpi-update is only during dietpi-update) I wouldve probably been saved from 3 hours of headache. |
+ DietPi-Software | Sonarr: Install from stable/master branch instead of develop + DietPi-Software | Sonarr/Radarr/Lidarr: Add /media to ReadWritePaths to not break instances where users use /media for their mounts: #3561 + DietPi-Software | Sonarr/Radarr/Lidarr/Jackett: When enabling services for systemd-controlled startup at boot, wait for dietpi-boot.service which is a better measure to ensure network is up and time sync as well, required for any encrypted network access where certificates timestamps must match.
I added
Probably a nice idea is to show a list of links for the online docs of all installed software titles after the install has finished. Generally these are intended to be reviewed by users, containing first run access info like URL path and in case port, setup wizard instructions, currently known issues and such things. When touching them, I tend to add debug infos, where/how to find logs, official docs and source code. Also a simplification of the online docs URLs would be great, e.g. In theory, but that is now a bid more future/maybe work, the docs could be downloaded and shown on in the whiptail menu directly. E.g. you have a list of just installed/reinstalled software titles presented as menu right after it has finished. Selecting one downloads the docs as plain text and shows them scrollable right in your whiptail. So no need to open a browser. Format likely looks bad at start, I guess the docs would require some rework then, but they anyway do at least for some software titles. |
+ CHANGELOG | Sonarr/Radarr/Lidarr: The /media directory as second common mount point can now also be used as download/media directory without manually adding it to the systemd units ReadWritePaths list. Many thanks to @ricardoandren for doing this suggestion: #3561 + CHANGELOG | Sonarr/Radarr/Lidarr: Resolved an issue where those software services crashed once an hour due to faulty SQLite database log file clearing. Many thanks to @Taloth from Sonarr and all the others who reported, investigated and finally solved the mystery: https://dietpi.com/phpbb/viewtopic.php?f=11&t=7598
Remove these service arguments because it causes confusion if you install sonarr or radarr via dietpi-software but have your drive mounted in /media
Hardening
#ProtectSystem=strict
#ProtectHome=true
#PrivateDevices=true
#ProtectKernelTunables=true
#ProtectControlGroups=true
#ReadWritePaths=/opt/NzbDrone /mnt /var/log/sonarr /tmp
Also like a dev from radarr/sonarr its rubbish if you have good permissions anyway, and it just creates a lot of confusion if you dont have it well documented about what it does.
The text was updated successfully, but these errors were encountered: