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

Do not drop root privilege when running in venv #521

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Conversation

ty-porter
Copy link
Collaborator

https://github.com/hzeller/rpi-rgb-led-matrix/tree/master/bindings/python#user

The matrix drops privileges from root to daemon after it starts up. This is causing all kinds of issues where the daemon user seemingly doesn't have read permissions on a lot of different files. It's also recommended to use absolute paths (fixed in #519 already)

Main symptom this works around is not being able to find a cert from certifi in the new virtual environment, causing the scoreboard to crash on startup

I tried tweaking permissions on venv/* but did not seem to have an effect. It's likely still a pathing issue that would be difficult to work around.

Others are noting similar issues in Pi OS Bookworm so we don't seem to be alone here.
hzeller/rpi-rgb-led-matrix#1607

@ty-porter ty-porter merged commit 1d7d5d8 into dev Feb 28, 2024
5 checks passed
@ty-porter ty-porter deleted the matrix-priv-drop branch February 28, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant