selinux/dbus
Petr Lautrbach be0acfb491 dbus: Use text streams in selinux_server.py
subprocess.Popen called without universal_newlines=True opens stdin,
stout and stderr as binary stream which cause problems with Python 3.

Fixes:
Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/sepolicy/gui.py", line 2773, in unconfined_toggle
    self.dbus.semanage("module -e unconfined")
  File "<string>", line 2, in semanage
  File "/usr/lib/python3.4/site-packages/slip/dbus/polkit.py", line 121, in _enable_proxy
    return func(*p, **k)
  File "/usr/lib64/python3.4/site-packages/sepolicy/sedbus.py", line 14, in semanage
    ret = self.dbus_object.semanage(buf, dbus_interface = "org.selinux")
  File "/usr/lib64/python3.4/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib64/python3.4/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: TypeError: 'dbus.String' does not support the buffer interface

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
2017-05-05 11:52:19 -04:00
..
COPYING Add COPYING files for new subdirs. 2016-11-16 11:19:51 -05:00
Makefile Add stub make test targets to new subdirs 2016-11-16 11:20:05 -05:00
VERSION Add VERSION files for new components 2016-11-16 11:19:51 -05:00
org.selinux.conf Move policycoreutils/sepolicy dbus service files to dbus. 2016-11-16 11:19:50 -05:00
org.selinux.policy Move policycoreutils/sepolicy dbus service files to dbus. 2016-11-16 11:19:50 -05:00
org.selinux.service Move policycoreutils/sepolicy dbus service files to dbus. 2016-11-16 11:19:50 -05:00
selinux_client.py Move policycoreutils/sepolicy dbus service files to dbus. 2016-11-16 11:19:50 -05:00
selinux_server.py dbus: Use text streams in selinux_server.py 2017-05-05 11:52:19 -04:00