[PATCH 49/84] policycoreutils: semanage: Fix handling of boolean_sub

[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.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlD+p3QACgkQrlYvE4MpobNBJQCghtBgyWIGeBRAs6I2yh+90T9d
XEIAn2SkJ3s/+jJGH6x4WhADdHCexwm4
=rnjh
-----END PGP SIGNATURE-----
>From f56c80c3df1c9af8d7cd987a5b7876bbdafa5b3f Mon Sep 17 00:00:00 2001
From: rhatdan <dwalsh@xxxxxxxxxx>
Date: Thu, 25 Oct 2012 14:19:01 -0400
Subject: [PATCH 49/84] policycoreutils: semanage: Fix handling of boolean_sub
 names when using the -F flag

Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>
---
 policycoreutils/semanage/seobject.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/policycoreutils/semanage/seobject.py b/policycoreutils/semanage/seobject.py
index d9432d2..9b1c12a 100644
--- a/policycoreutils/semanage/seobject.py
+++ b/policycoreutils/semanage/seobject.py
@@ -1993,6 +1993,8 @@ class booleanRecords(semanageRecords):
 			self.modify_local = False
 
 	def __mod(self, name, value):
+                name = selinux.selinux_boolean_sub(name)
+
                 (rc, k) = semanage_bool_key_create(self.sh, name)
                 if rc < 0:
                        raise ValueError(_("Could not create a key for %s") % name)
@@ -2022,8 +2024,6 @@ class booleanRecords(semanageRecords):
 		semanage_bool_free(b)
 
 	def modify(self, name, value = None, use_file = False):
-                name = selinux.selinux_boolean_sub(name)
-
                 self.begin()
                 if use_file:
                        fd = open(name)
-- 
1.8.1


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

  Powered by Linux