This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import libvirt | |
import os | |
import sys | |
import time | |
import uuid | |
try: | |
instance_name = sys.argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- policy.json 2013-05-22 04:29:47.939198317 +0000 | |
+++ policy.json.dpkg-dist 2013-05-20 05:02:36.000000000 +0000 | |
@@ -1,5 +1,9 @@ | |
{ | |
"admin_required": [["role:admin"], ["is_admin:1"]], | |
+ "owner" : [["user_id:%(user_id)s"]], | |
+ "admin_or_owner": [["rule:admin_required"], ["rule:owner"]], | |
+ | |
+ "default": [["rule:admin_required"]], |