! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
double fork breaks desktop files containing pkexec
Status:
RESOLVED: FIXED
Product:
Libxfce4util
Component:
General

Comments

Description Yves-Alexis Perez editbugs 2012-10-13 13:47:10 CEST
Hi,

I just had a report from a gnome maintainer in Debian about that. It seems that, when an app ship a .desktop file containing a command using pkexec (for example gnome-system-log which has: Exec=pkexec gnome-system-log), the app won't run (either from panel menu or from desktop menu) and .xsession-errors has:

Refusing to render service to dead parents.

Few pointers:

http://bugs.debian.org/690339
http://bugs.debian.org/650038
https://bugzilla.gnome.org/show_bug.cgi?id=686059
Comment 1 colin@mageia.org 2013-12-04 10:48:11 CET
Created attachment 5254 
Fix the double forking
Comment 2 Jannis Pohlmann editbugs 2014-07-27 16:29:37 CEST
Pushed to master (although sadly I forgot to put Colin's name in as the commit author):

commit 4742d095a21ddced8406af3a80035bd840af23c7
Author: Jannis Pohlmann <jannis@xfce.org>
Date:   Sun Jul 27 16:25:57 2014 +0200

    Avoid double forking when spawning external apps (bug #9373)
    
    Some security conscious applications such as pkexec detect double forks
    and refuse to operate. Avoiding the double fork here is very simple.
    
    See https://bugzilla.xfce.org/show_bug.cgi?id=9373
    and https://bugzilla.gnome.org/show_bug.cgi?id=686059
Comment 3 colin@mageia.org 2014-07-27 16:44:39 CEST
Thanks for that, and no worries about authorship :)

Bug #9373

Reported by:
Yves-Alexis Perez
Reported on: 2012-10-13
Last modified on: 2014-07-27

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Version:
4.10.0

Attachments

Fix the double forking (2.09 KB, text/plain)
2013-12-04 10:48 CET , colin@mageia.org
no flags

Additional information