diff mbox

[2/2] policycoreutils: Use GObject introspection binding instead of python-gobject in selinux_server.py

Message ID 20161112202021.4469-2-bigon@debian.org (mailing list archive)
State Not Applicable
Headers show

Commit Message

Laurent Bigonville Nov. 12, 2016, 8:20 p.m. UTC
From: Laurent Bigonville <bigon@bigon.be>

Signed-off-by: Laurent Bigonville <bigon@bigon.be>
---
 policycoreutils/sepolicy/selinux_server.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Stephen Smalley Nov. 15, 2016, 3:57 p.m. UTC | #1
On 11/12/2016 03:20 PM, Laurent Bigonville wrote:
> From: Laurent Bigonville <bigon@bigon.be>
> 
> Signed-off-by: Laurent Bigonville <bigon@bigon.be>

Thanks, applied both patches.

> ---
>  policycoreutils/sepolicy/selinux_server.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/policycoreutils/sepolicy/selinux_server.py b/policycoreutils/sepolicy/selinux_server.py
> index cdf4d16..8bd1fe5 100644
> --- a/policycoreutils/sepolicy/selinux_server.py
> +++ b/policycoreutils/sepolicy/selinux_server.py
> @@ -3,7 +3,7 @@
>  import dbus
>  import dbus.service
>  import dbus.mainloop.glib
> -import gobject
> +from gi.repository import GObject
>  import slip.dbus.service
>  from slip.dbus import polkit
>  import os
> @@ -128,7 +128,7 @@ class selinux_server(slip.dbus.service.Object):
>          raise ValueError("%s does not exist" % path)
>  
>  if __name__ == "__main__":
> -    mainloop = gobject.MainLoop()
> +    mainloop = GObject.MainLoop()
>      dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
>      system_bus = dbus.SystemBus()
>      name = dbus.service.BusName("org.selinux", system_bus)
>
diff mbox

Patch

diff --git a/policycoreutils/sepolicy/selinux_server.py b/policycoreutils/sepolicy/selinux_server.py
index cdf4d16..8bd1fe5 100644
--- a/policycoreutils/sepolicy/selinux_server.py
+++ b/policycoreutils/sepolicy/selinux_server.py
@@ -3,7 +3,7 @@ 
 import dbus
 import dbus.service
 import dbus.mainloop.glib
-import gobject
+from gi.repository import GObject
 import slip.dbus.service
 from slip.dbus import polkit
 import os
@@ -128,7 +128,7 @@  class selinux_server(slip.dbus.service.Object):
         raise ValueError("%s does not exist" % path)
 
 if __name__ == "__main__":
-    mainloop = gobject.MainLoop()
+    mainloop = GObject.MainLoop()
     dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
     system_bus = dbus.SystemBus()
     name = dbus.service.BusName("org.selinux", system_bus)