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:
parent
63fd0f0add
commit
4fbc6623eb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue