policycoreutils: Use GObject introspection binding instead of python-gobject in selinux_server.py

Signed-off-by: Laurent Bigonville <bigon@bigon.be>
This commit is contained in:
Laurent Bigonville 2016-11-12 21:20:21 +01:00 committed by Stephen Smalley
parent 1270be188a
commit 917f398d7c
1 changed files with 2 additions and 2 deletions

View File

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