summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/policycoreutils/policycoreutils-semanage-edit-user.patch
blob: f5aaa7443ceab78ec17512f4f41ef559a4d9c61b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
policycoreutils: semanage

When modifying selinux login records, self.sename might not be
needed, but it IS passed to a log function, so it must be set
to something or the log attempt will fail.

Upstream-Status: Pending

Signed-off-by: Joe Slater <jslater@windriver.com>


--- a/semanage/seobject.py
+++ b/semanage/seobject.py
@@ -576,6 +576,7 @@ class loginRecords(semanageRecords):
 
 		if sename != "":
 			semanage_seuser_set_sename(self.sh, u, sename)
+			self.sename = sename
 		else:
 			self.sename = self.oldsename