[Bug 1713311] Re: Unable to launch applications which use su-to-root from menu package as root on Wayland session
Launchpad Bug Tracker
1713311 at bugs.launchpad.net
Sun Dec 31 18:04:04 UTC 2017
This bug was fixed in the package hannah-foo2zjs - 1:3
---------------
hannah-foo2zjs (1:3) unstable; urgency=medium
* QA upload.
* Switch source format to "3.0 (native)".
* Do not ship the generated hannah binary, and the Makefile, and make sure
to remove them on clean.
* Drop the menu file, since hannah-foo2zjs already provides a .desktop file.
* Use an install file to install all the files, using dh-exec to rename the
files:
- add a new executable hannah-foo2zjs.install file
- add the dh-exec build dependency
* Rewrite rule to use the dh sequencer.
* Bump the debhelper compatibility to 10:
- bump compat to 10
- bump the debhelper build dependency to 10~
* Switch versioned conflict to versioned break.
* Cleanup hannah.pro.
* Build the application with Qt 5: (Closes: #874903)
- set the QT modules in the .pro file
- switch the libqt4-dev build dependency to qtbase5-dev
- set QT_SELECT=5 in rules, to make sure to build even when Qt 4 is
installed too
* Various improvements to the application itself:
- reindent code
- forward-declare classes, including only what needed, and where needed
- do not hardcode the font, use the default one
- use better QMessageBox APIs
- create & lay out widgets in the right order
- add a checkbox -> firmware mapping, so there is not a separate list for
the latter
- turn the "Mark all" from a checkbox into a button, and add also a new
"Unmark all" button
- switch from QStatusBar to QLabel for the status messages
- disable the download button while downloading
- set the "printer" icon for the application
- harden the build with extra defines, and fix the code accordingly
(slot -> Q_SLOTS, QStringLiteral, etc)
- group checkboxes & mark/unmark buttons in a group box, with the
checkboxes laid in two columns
- improve the text in the about dialog
- add accelerators for buttons
* Fix path of getweb to /usr/sbin/getweb. (Closes: #772447)
* Use pkexec to run getweb, instead of su-to-root for the whole application:
(LP: #1713311)
- depend on policykit-1
- drop the gksu|kdebase-bin|kde-runtime|kdebase-runtime|ktsuss|sux
dependency (Closes: #885545)
- directly exec hannah-foo2zjs in the desktop file
* Make hannah.desktop file valid:
- set the value of the 'Terminal' key to false (as it is a boolean)
- add the Qt category, and remove the Settings one
* Link in as-needed mode.
* Bump Standards-Version to 4.1.3, no changes required.
* Add myself to copyright, for both code and packaging.
-- Pino Toscano <pino at debian.org> Sun, 31 Dec 2017 11:03:05 +0100
** Changed in: hannah-foo2zjs (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ndisgtk in Ubuntu.
https://bugs.launchpad.net/bugs/1713311
Title:
Unable to launch applications which use su-to-root from menu package
as root on Wayland session
Status in bleachbit package in Ubuntu:
New
Status in caja-extensions package in Ubuntu:
Won't Fix
Status in ddccontrol package in Ubuntu:
New
Status in debian-installer-launcher package in Ubuntu:
New
Status in edubuntu-netboot package in Ubuntu:
New
Status in gadmin-bind package in Ubuntu:
New
Status in gadmin-openvpn-client package in Ubuntu:
New
Status in gadmin-openvpn-server package in Ubuntu:
New
Status in gadmin-proftpd package in Ubuntu:
New
Status in gadmin-rsync package in Ubuntu:
New
Status in gadmin-samba package in Ubuntu:
New
Status in gkdebconf package in Ubuntu:
New
Status in gsmartcontrol package in Ubuntu:
New
Status in gtkorphan package in Ubuntu:
New
Status in gui-apt-key package in Ubuntu:
New
Status in guymager package in Ubuntu:
New
Status in hannah-foo2zjs package in Ubuntu:
Fix Released
Status in i7z package in Ubuntu:
New
Status in keytouch-editor package in Ubuntu:
New
Status in kontrolpack package in Ubuntu:
New
Status in kvpnc package in Ubuntu:
New
Status in lshw package in Ubuntu:
New
Status in luckybackup package in Ubuntu:
New
Status in menu package in Ubuntu:
New
Status in ndisgtk package in Ubuntu:
New
Status in nmap package in Ubuntu:
New
Status in prey package in Ubuntu:
New
Status in sbackup package in Ubuntu:
New
Status in spacefm package in Ubuntu:
New
Status in usbview package in Ubuntu:
New
Status in wifi-radar package in Ubuntu:
New
Bug description:
List of pkexec'ed applications is located in bug 1713313.
*****************************
Main upstream discussion & fixes example to deal with wayland:
https://bugzilla.gnome.org/show_bug.cgi?id=776437
************************************************************
the Gnome Porting Way: https://wiki.gnome.org/Initiatives/Wayland/Applications/Porting
************************************************************
Steps to reproduce:
1. Install Ubuntu 17.10
2. Install application from above list and menu package (if missed, for zenmap, see bug 1713274) - full list from - https://codesearch.debian.net/search?q=Exec%3Dsu-to-root+filetype%3Adesktop+path%3A*%2Fapplications%2F*&perpkg=1 , https://codesearch.debian.net/search?q=Exec%3Dgksudo+filetype%3Adesktop+path%3A*%2Fapplications%2F* and https://codesearch.debian.net/search?q=Exec%3Dgksu+filetype%3Adesktop+path%3A*%2Fapplications%2F* .
3. Try to launch $APP_NAME from shortcut
4. Get error window:
Failed to run $APP_NAME as user root.
Unable to copy the user's Xauthorization file.
Expected results:
* $APP_NAME may be run as root
Actual results:
* unable to run $APP_NAME as root
Additional info:
$ xhost
access control enabled, only authorized clients can connect
SI:localuser:artful
$ export | grep "SESSION\|DESK"
declare -x DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
declare -x DESKTOP_AUTOSTART_ID="1082dacfd3a20e972150382958079482700000012280008"
declare -x DESKTOP_SESSION="gnome"
declare -x GDMSESSION="gnome"
declare -x GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
declare -x SESSION_MANAGER="local/artful:@/tmp/.ICE-unix/1228,unix/artful:/tmp/.ICE-unix/1228"
declare -x XDG_CURRENT_DESKTOP="GNOME"
declare -x XDG_SESSION_DESKTOP="gnome"
declare -x XDG_SESSION_ID="2"
declare -x XDG_SESSION_TYPE="wayland"
and this operations does not help:
artful at artful:~$ xhost +si:localuser:root
localuser:root being added to access control list
artful at artful:~$ gksudo zenmap
Error copying '/home/artful/.Xauthority' to '/tmp/libgksu-AgXCxW': No such file or directory
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: zenmap 7.50-1
ProcVersionSignature: Ubuntu 4.12.0-11.12-generic 4.12.5
Uname: Linux 4.12.0-11-generic i686
ApportVersion: 2.20.6-0ubuntu7
Architecture: i386
CurrentDesktop: GNOME
Date: Sun Aug 27 13:28:31 2017
InstallationDate: Installed on 2017-08-26 (0 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha i386 (20170826)
PackageArchitecture: all
SourcePackage: nmap
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bleachbit/+bug/1713311/+subscriptions
More information about the foundations-bugs
mailing list