-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
privilege manage (escalation & degradation) when running as root #113
Conversation
Great! 👍 |
@titansnow I do not understand why it is safe to do this, and now it seems that |
@waruqi when running as root, module
The way is
An example $ sudo xmake l
> os.exec('id -u')
1000 |
@titansnow This means that when the store privilege (uid, gid 1000), some operations that require root(uid,gid 0) will still fail. So it's safe when run |
@waruqi The script inside xmake process could use |
@waruqi When root privilege is needed, for example installation, call |
Got it! It's great! 👍 ❤️ |
|
I understand it. Thanks! 😄 |
privilege manage (escalation & degradation) when running as root (cherry picked from commit ffa5787)
#111
Privilege manage when running as root. Store the root privilege and degrade, when root privilege is needed, escalate privilege
With this,
sudo xmake install
is safe and ok