Red Hat Bugzilla – Bug 110701
GUI=no gives graphical error dialog and wrong exit code
Last modified: 2007-11-30 17:10:34 EST
Userhelper variable assignment GUI=no disables pipe conversation in
userhelper and causes it to display a graphical error dialog for the
wrapped application's exit code.
# cat /etc/pam.d/test1
auth sufficient pam_rootok.so
auth required pam_stack.so service=system-auth
session required pam_permit.so
account required pam_permit.so
# cat /etc/security/console.apps/test1
# cat /tmp/test1
echo "Hello World!"
# ln -s /usr/bin/consolehelper /usr/bin/test1
# chmod 755 /tmp/test1
Run above test-case in an X terminal. It gives the following
You are attempting to run "test1" which requires administrative
privileges, but more information is needed in order to do so.
Password for root:
and then opens a graphical error dialog (see attachment). The error
message is due to userhelper not using pipe conversation (like in
default mode) to distinguish userhelper's exit code from the wrapped
application's exit code. When the exit code in /tmp/test1 is changed,
the error dialog matches the description at the bottom of "man
GUI=no should not display a graphical dialog at all and should be able
to distinguish userhelper's exit code from wrapped application's exit
Version-Release number of selected component (if applicable):
Fedora Core 1 is maintained by the Fedora Legacy project for security updates
only. If this problem is a security issue, please reopen and reassign to the
Fedora Legacy product. If it is not a security issue and hasn't been resolved in
the current FC5 updates or in the FC6 test release, reopen and change the
version to match.
NOTE: Fedora Core 1 is reaching the final end of support even by the Legacy
project. After Fedora Core 6 Test 2 is released (currently scheduled for July
26th), there will be no more security updates for FC1. Please use these next two
weeks to upgrade any remaining FC1 systems to a current release.
Still reproducible (with FC5).
Also affects e.g. "/usr/bin/hddtemp" from Fedora Extras.
Fixed in rawhide usermode-1.90-1. Thanks for your report.