Set self.sename to sename after calling semanage_seuser_set_sename()

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
This commit is contained in:
Laurent Bigonville 2015-07-14 19:07:56 +02:00 committed by Stephen Smalley
parent 63fd0f0add
commit 4fbc6623eb
1 changed files with 1 additions and 0 deletions

View File

@ -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