All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Set self.sename to sename after calling semanage_seuser_set_sename()
@ 2015-07-14 17:07 Laurent Bigonville
  2015-07-16 16:30 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: Laurent Bigonville @ 2015-07-14 17:07 UTC (permalink / raw)
  To: selinux; +Cc: 734806

From: Laurent Bigonville <bigon@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Set self.sename to sename after calling semanage_seuser_set_sename()
  2015-07-14 17:07 [PATCH] Set self.sename to sename after calling semanage_seuser_set_sename() Laurent Bigonville
@ 2015-07-16 16:30 ` Stephen Smalley
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2015-07-16 16:30 UTC (permalink / raw)
  To: Laurent Bigonville, selinux; +Cc: 734806

On 07/14/2015 01:07 PM, Laurent Bigonville wrote:
> From: Laurent Bigonville <bigon@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

Thanks, applied.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-16 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 17:07 [PATCH] Set self.sename to sename after calling semanage_seuser_set_sename() Laurent Bigonville
2015-07-16 16:30 ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.