[PATCH 53/74] Return the level when looking at the customized changes

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

 



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

semanage user -l -C was not reporting initial level which we want to capture
in extract.

   This patch looks good to me. acked.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJpNjEACgkQrlYvE4MpobOHPQCffycM9PLrK9760+Ces2m7Wxgw
GsAAoN2OC47v2JAolIVVFeaopSxFlYvY
=n2vW
-----END PGP SIGNATURE-----
>From 4334191476201b88bdf4a68b15d1be6375e2dd85 Mon Sep 17 00:00:00 2001
From: Dan Walsh <dwalsh@xxxxxxxxxx>
Date: Fri, 11 Oct 2013 08:57:33 -0400
Subject: [PATCH 53/74] Return the level when looking at the customized changes
 of users.

If someone specifies an initial level other then s0, we want to catch this and
report it in customized.
---
 policycoreutils/semanage/seobject.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/policycoreutils/semanage/seobject.py b/policycoreutils/semanage/seobject.py
index 4c18810..b32c4d9 100644
--- a/policycoreutils/semanage/seobject.py
+++ b/policycoreutils/semanage/seobject.py
@@ -958,7 +958,7 @@ class seluserRecords(semanageRecords):
                 keys = ddict.keys()
                 keys.sort()
                 for k in keys:
-                       l.append("-a -r %s -R '%s' %s" % (ddict[k][2], ddict[k][3], k))
+                       l.append("-a -l %s -r %s -R '%s' %s" % (ddict[k][1], ddict[k][2], ddict[k][3], k))
                 return l
 
 	def list(self, heading = 1, locallist = 0):
-- 
1.8.3.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