From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Bryan D. Payne" Subject: [PATCH][ACM][UPDATE2] python tools and support for resource labeling Date: Fri, 30 Jun 2006 14:26:11 -0400 Message-ID: <44A56CC3.1040106@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080906050203070605020405" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: ewan@xensource.com, sailer@us.ibm.com, bdpayne@us.ibm.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------080906050203070605020405 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Same functionality as the previous patches in this series. I have updated the error handling to correct the problems discovered by Ewan. This patch successfully completes the xm-test suite on my dev machine. In addition, we have tested out the affected commands by hand to ensure that error handling is being done properly. Hopefully this one will not create any more problems. Signed-off-by: Bryan D. Payne Signed-off-by: Reiner Sailer --------------080906050203070605020405 Content-Type: text/x-patch; name="shype-reslabel-enforce-python-19.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="shype-reslabel-enforce-python-19.diff" --- docs/man/xm.pod.1 | 93 +++++++++++++++++++-- tools/python/xen/util/dictio.py | 50 +++++++++++ tools/python/xen/util/security.py | 98 ++++++++++++++++++++++ tools/python/xen/xend/server/blkif.py | 12 ++ tools/python/xen/xm/addlabel.py | 150 ++++++++++++++++++++++++++-------- tools/python/xen/xm/create.py | 121 ++++++++++++++++++++++++++- tools/python/xen/xm/dry-run.py | 56 ++++++++++++ tools/python/xen/xm/getlabel.py | 114 +++++++++++++++++++++++++ tools/python/xen/xm/main.py | 30 ++++++ tools/python/xen/xm/resources.py | 56 ++++++++++++ tools/python/xen/xm/rmlabel.py | 118 ++++++++++++++++++++++++++ 11 files changed, 849 insertions(+), 49 deletions(-) Index: xen-unstable.hg-shype/docs/man/xm.pod.1 =================================================================== --- xen-unstable.hg-shype.orig/docs/man/xm.pod.1 +++ xen-unstable.hg-shype/docs/man/xm.pod.1 @@ -875,14 +875,43 @@ defined in the I. Unless specifi the currently enforced access control policy. The default for I is 'dom'. The labels are arranged in alphabetical order. -=item B I I