[PATCH 57/67] policycoreutils: semanage: FIXME Catch RuntimeErrors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


This patch looks good to me. acked.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5yWbMACgkQrlYvE4MpobMN+wCeM0MGkXxbUo49rBm4XW+L5gbe
sqcAnisL9rZaUiNjZPVhGzYtRrhD308D
=Xyad
-----END PGP SIGNATURE-----
>From 4a03de6efe8c6b6fa0b6ea730898128c3e9371f1 Mon Sep 17 00:00:00 2001
From: Dan Walsh <dwalsh@xxxxxxxxxx>
Date: Thu, 1 Sep 2011 10:50:27 -0400
Subject: [PATCH 57/67] policycoreutils: semanage: FIXME Catch RuntimeErrors,
 that can be generated when SELinux is disabled

Needs Review.

Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>
---
 policycoreutils/semanage/semanage |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/policycoreutils/semanage/semanage b/policycoreutils/semanage/semanage
index 656a028..ca31483 100644
--- a/policycoreutils/semanage/semanage
+++ b/policycoreutils/semanage/semanage
@@ -575,3 +575,5 @@ Object-specific Options (see above):
 		errorExit(error.args[1])
 	except OSError, error:
 		errorExit(error.args[1])
+	except RuntimeError, error:
+		errorExit(error.args[1])
-- 
1.7.6.2


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux