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

[BUG-FIX] Adding root_check before set_override method execution #524

Merged
merged 1 commit into from
Jun 24, 2023

Conversation

rootCircle
Copy link
Contributor

@rootCircle rootCircle commented Jun 17, 2023

Fixes permission issue prompt when calling --force flag in non root mode.

This PR, basically calls pre-defined root_check() function before accessing set_override method aimed at implementing the force feature.
And hence ensuring set_override calls are always in su mode.
So, in effect all override using 'force' can clearly access the governer_override_state path file, and write changes to it, without externally tinkering the environment.

Current output Now
Past output Past

Fixes #523

This will ensure that set_override calls are always in su mode.
So, in effect all override using 'force' can clearly access
the governer_override_state path file, and write changes to it,
without externally tinkering the environment.
@AdnanHodzic AdnanHodzic merged commit 486a9a6 into AdnanHodzic:master Jun 24, 2023
@AdnanHodzic
Copy link
Owner

Great catch! Thank you for your contribution, you'll be given credit for your work as part of upcoming release.

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.

[BUG] PermissionError when calling 'force' flag for non-root users
2 participants