summaryrefslogtreecommitdiffstats
path: root/bin/nova-rootwrap
diff options
context:
space:
mode:
authorThierry Carrez <thierry@openstack.org>2013-01-17 11:36:22 +0100
committerThierry Carrez <thierry@openstack.org>2013-01-17 13:32:30 +0100
commit476f15d610b84a7a5fe97a88f46dea38dc409794 (patch)
tree40300cedd0b7a78d21e171f0d7876b57f48a6fca /bin/nova-rootwrap
parentd806266d2367535f19f542a0716cadf6c64d243b (diff)
Use common rootwrap from oslo-incubator
Make Nova use common rootwrap code from oslo-incubator. Implements bp nova-common-rootwrap Change-Id: I3282d65940375589fceb8485829097380d84d946
Diffstat (limited to 'bin/nova-rootwrap')
-rwxr-xr-xbin/nova-rootwrap14
1 files changed, 6 insertions, 8 deletions
diff --git a/bin/nova-rootwrap b/bin/nova-rootwrap
index c8e880d79..72a8c6309 100755
--- a/bin/nova-rootwrap
+++ b/bin/nova-rootwrap
@@ -16,20 +16,18 @@
# License for the specific language governing permissions and limitations
# under the License.
-"""Root wrapper for Nova
+"""Root wrapper for OpenStack services
- Filters which commands nova is allowed to run as another user.
+ Filters which commands a service is allowed to run as another user.
- To use this, you should set the following in nova.conf:
+ To use this with nova, you should set the following in nova.conf:
rootwrap_config=/etc/nova/rootwrap.conf
You also need to let the nova user run nova-rootwrap as root in sudoers:
nova ALL = (root) NOPASSWD: /usr/bin/nova-rootwrap /etc/nova/rootwrap.conf *
- To make allowed commands node-specific, your packaging should only
- install {compute,network,volume}.filters respectively on compute, network
- and volume nodes (i.e. nova-api nodes should not have any of those files
- installed).
+ Service packaging should deploy .filters files only on nodes where they are
+ needed, to avoid allowing more than is necessary.
"""
import ConfigParser
@@ -75,7 +73,7 @@ if __name__ == '__main__':
if os.path.exists(os.path.join(possible_topdir, "nova", "__init__.py")):
sys.path.insert(0, possible_topdir)
- from nova.rootwrap import wrapper
+ from nova.openstack.common.rootwrap import wrapper
# Load configuration
try: