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

LED fix RPi permission check and message #68

Merged
merged 1 commit into from Oct 12, 2020
Merged

Conversation

CrazyIvan359
Copy link
Owner

RPi array class in LED module would check with real UID/GID for read/write permission on /dev/mem but this will fail for regular users running sudo. Added effective_ids=True to os.access call.

Following a failure on this check, the log message suggested giving the user access to /dev/mem, which I have since learned is a horrendous security hole and such suggestion has not been removed.

@CrazyIvan359 CrazyIvan359 added bug Something isn't working LED LED Module labels Oct 12, 2020
@CrazyIvan359 CrazyIvan359 merged commit 48c74c0 into master Oct 12, 2020
@CrazyIvan359 CrazyIvan359 deleted the led-fixrpiperms branch October 12, 2020 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LED LED Module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant