When run with sudo, Anvil changed process real UID
to SUDO_UID thus easily creating files with different owners.
This mechanism can confuse some tools (like pip)
Now, we can almost safely stop changing real UID and run
prepare as non-root and bootstrap, install, start, status,
and stop as root.
Reviewed: https:/ /review. openstack. org/31537 github. com/stackforge/ anvil/commit/ 0ba7f0e03b63006 50d561364448bd6 bbdc78ac0a
Committed: http://
Submitter: Jenkins
Branch: master
commit 0ba7f0e03b63006 50d561364448bd6 bbdc78ac0a
Author: Alessio Ababilov <email address hidden>
Date: Fri May 31 11:09:37 2013 +0400
Do not change process UID
When run with sudo, Anvil changed process real UID
to SUDO_UID thus easily creating files with different owners.
This mechanism can confuse some tools (like pip)
Now, we can almost safely stop changing real UID and run
prepare as non-root and bootstrap, install, start, status,
and stop as root.
Also, this removes dependency on sudo.
Implements: blueprint no-uid-tricks
Fixes: bug #1179747
Fixes: bug #1186440
Fixes: bug #1186448
Change-Id: I7ae293aad7f0a5 ba08962e6b6b709 fe49b8b81ec