! 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 !
Pkexec policy needed for OS using pkexec
Status:
RESOLVED: FIXED
Product:
Mousepad
Component:
General

Comments

Description flocculant 2014-08-18 17:30:03 CEST
Created attachment 5609 
policy file

Policy file required for mousepad where pkexec is used in place of gksu
Comment 1 Matthew Brush editbugs 2014-08-19 01:00:29 CEST
Pardon my ignorance but I'm not really sure what I'm supposed to do with this file. I assume it's meant to be distributed and installed, but...

- Where does it need to be installed to relative to $prefix?
- Does it need to be processed by configure script replace hardcoded binary path and gettext domain?
- Does it need to go in po/POTFILES.in for translating?
- Should it be unconditionally installed even where pkexec is not installed or used?
Comment 2 Eric Koegel editbugs 2014-08-30 20:19:16 CEST
Created attachment 5617 
Git patch for pkexec

This patch does all the automake magic to substitute the path to the binary and add in the translations. 

There are some security downsides to running mousepad as root but users typically end up doing it anyway with gksu or sudo. This just allows them to continue doing the same with pkexec while keeping all the translations in one spot.
Comment 3 Matthew Brush editbugs 2014-08-30 20:43:36 CEST
Assuming this doesn't affect it, there is that giant red banner when run as root, warning the user, so it's probably ok :)

I will try to review/test the changes soon, thanks.
Comment 4 Git Bot editbugs 2018-06-05 01:25:52 CEST
Eric Koegel referenced this bugreport in commit 13d1a9541461fe5bcd95f24f230229e56ff7e6d7

Add pkexec policy (Bug #11088)

https://git.xfce.org/apps/mousepad/commit?id=13d1a9541461fe5bcd95f24f230229e56ff7e6d7

Bug #11088

Reported by:
flocculant
Reported on: 2014-08-18
Last modified on: 2018-06-05

People

Assignee:
Matthew Brush
CC List:
3 users

Version

Version:
Unspecified
Target Milestone:
Mousepad 0.2.x

Attachments

policy file (740 bytes, text/plain)
2014-08-18 17:30 CEST , flocculant
no flags
Git patch for pkexec (3.52 KB, patch)
2014-08-30 20:19 CEST , Eric Koegel
no flags

Additional information