sandbox: Use dbus-run-session instead of dbus-launch when available
PATCH v3 1/1 sandbox: Use dbus-run-session instead of dbus-launch when available
From: Laurent Bigonville <[email protected]>
According to dbus upstream: "dbus-launch is fairly horrible code, complicated by the historical need for it to support X11 autolaunching, so the D-Bus maintainers would like to move it out of the critical path and minimize its use."
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836289
--- policycoreutils/sandbox/sandbox | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
policycoreutils/sandbox/sandbox +6 -2
@@ -285,9 +285,13 @@ class Sandbox: # /usr/bin/test -r ~/.xmodmap && /usr/bin/xmodmap ~/.xmodmap %s & WM_PID=$! -dbus-launch --exit-with-session %s +if which dbus-run-session >/dev/null 2>&1; then + dbus-run-session -- %s +else + dbus-launch --exit-with-session %s +fi kill -TERM $WM_PID 2> /dev/null -""" % (command, wm, command)) +""" % (command, wm, command, command)) fd.close() os.chmod(execfile, 0o700)
Signature · 1 line
2.9.3
Stephen Smalley
AppliedQuoted 10 lines · Laurent Bigonville
From: Laurent Bigonville <[email protected]>
According to dbus upstream: "dbus-launch is fairly horrible code, complicated by the historical need for it to support X11 autolaunching, so the D-Bus maintainers would like to move it out of the critical path and minimize its use."
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836289
Signed-off-by Laurent Bigonville <[email protected]>
Thanks, applied.
Quoted 25 lines
--- policycoreutils/sandbox/sandbox | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)policycoreutils/sandbox/sandbox +6
-2@@ -285,9 +285,13 @@ class Sandbox: # /usr/bin/test -r ~/.xmodmap && /usr/bin/xmodmap ~/.xmodmap %s & WM_PID=$! -dbus-launch --exit-with-session %s +if which dbus-run-session >/dev/null 2>&1; then + dbus-run-session -- %s +else + dbus-launch --exit-with-session %s +fi kill -TERM $WM_PID 2> /dev/null -""" % (command, wm, command)) +""" % (command, wm, command, command)) fd.close() os.chmod(execfile, 0o700)
Quoted 8 lines · Stephen Smalley
Quoted 7 lines · Laurent Bigonville
From: Laurent Bigonville <[email protected]>
According to dbus upstream: "dbus-launch is fairly horrible code, complicated by the historical need for it to support X11 autolaunching, so the D-Bus maintainers would like to move it out of the critical path and minimize its use."
Quoted 4 lines
Quoted 3 lines
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836289
Signed-off-by Laurent Bigonville <[email protected]>Thanks, applied.
Thanks,
Are there any plans to roll a new release of the userspace soon?
Quoted 9 lines · Laurent Bigonville
Quoted 8 lines · Stephen Smalley
Quoted 7 lines · Laurent Bigonville
From: Laurent Bigonville <[email protected]>
According to dbus upstream: "dbus-launch is fairly horrible code, complicated by the historical need for it to support X11 autolaunching, so the D-Bus maintainers would like to move it out of the critical path and minimize its use."
Quoted 7 lines
Quoted 4 lines
Quoted 3 lines
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836289
Signed-off-by Laurent Bigonville <[email protected]>Thanks, applied.
Thanks,
Are there any plans to roll a new release of the userspace soon?
Yes, 2.6-rc1 is planned on 9/30, and then 2.6 will follow once it seems stable.