Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520210 - xfce-extra/xfce4-power-manager-1.3.0: uses sudo instead of pkexec and can ask for password before suspend
Summary: xfce-extra/xfce4-power-manager-1.3.0: uses sudo instead of pkexec and can ask...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: XFCE Team
URL: https://mail.xfce.org/pipermail/xfce/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-18 20:08 UTC by Iwan Aucamp
Modified: 2014-08-20 07:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iwan Aucamp 2014-08-18 20:08:11 UTC
xfce-extra/xfce4-power-manager-1.3.0 scans sudoers to determine if password is needed or not for suspend, and then uses sudo. This is not ideal, 1.3.1 uses pkexec and then this only requires user to be in wheel group to achive suspending - which is more optimal. There are also some other issues with 1.3.0. Please make 1.3.1 available in portage.

In mean time, here is overlay with it if someone wants it:

https://github.com/aucampia/aucampia-gentoo-overlay/blob/master/xfce-extra/xfce4-power-manager/xfce4-power-manager-1.3.1.ebuild

Reproducible: Always

Steps to Reproduce:
1. Use default sudoers with only wheel line uncommented
2. Use xfce4-power-manager-1.3.0
3. Close laptop lid

Actual Results:  
Asks for password and does not suspend

Expected Results:  
Suspend normally

1.3.0 wants nopassword in sudoers - I'm not sure to the specifics of where though.
Comment 1 Iwan Aucamp 2014-08-18 20:09:44 UTC
NOTE: the linked ebuild dropped the patch for resotring brightness from 1.3.0 as it did not apply cleanly, if I have time I will rebase it, but probbably wont have time.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2014-08-20 07:05:38 UTC
1.3.1 in portage