[DSE-Dev] Bug#734806: [PATCH] Set self.sename to sename after calling semanage_seuser_set_sename()

Laurent Bigonville bigon at debian.org
Tue Jul 14 17:07:56 UTC 2015


From: Laurent Bigonville <bigon at bigon.be>

This fixes audit information that are being logged and a crash when the
python-audit binding is not installed.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734806
---
 policycoreutils/semanage/seobject.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/policycoreutils/semanage/seobject.py b/policycoreutils/semanage/seobject.py
index 568ebfd..2edb050 100644
--- a/policycoreutils/semanage/seobject.py
+++ b/policycoreutils/semanage/seobject.py
@@ -575,6 +575,7 @@ class loginRecords(semanageRecords):
 
 		if sename != "":
 			semanage_seuser_set_sename(self.sh, u, sename)
+                        self.sename = sename
 		else:
 			self.sename = self.oldsename
 			
-- 
2.1.4



More information about the SELinux-devel mailing list