GNU bug report logs -
#27311
Enlightenment: 'cpufreq binary needs suid or has to be owned by root'
Previous Next
Reported by: ng0 <ng0 <at> pragmatique.xyz>
Date: Sat, 10 Jun 2017 15:05:02 UTC
Severity: normal
Done: Efraim Flashner <efraim <at> flashner.co.il>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27311 in the body.
You can then email your comments to 27311 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#27311
; Package
guix
.
(Sat, 10 Jun 2017 15:05:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
ng0 <ng0 <at> pragmatique.xyz>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sat, 10 Jun 2017 15:05:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
To reproduce (on an desktop computer):
Add enlightenment to your system config, reconfigure,
reboot, log in and click through the Enlightenment
first start dialogue (which itself reveals more bugs ;))
and the first message box you get after you completed
the first start dialogue and E21 has loaded is this:
Cpufreq Permissions Error
The freqset binary in the cpufreq module
is not owned by root or does not have the
setuid bit set. Please ensure this is the
case. For example:
sudo chown root /gnu/store/aaaaaaaaaaa-enlightenment-0.21.7/lib/enlightenment/modules/cpufreq/linux-gnu-x86_64-ver-0.21/freqset
sudo chmod u+s,a+x /gnu/store/aaaaaaaaaaa-enlightenment-0.21.7/lib/enlightenment/modules/cpufreq/linux-gnu-x86_64-ver-0.21/freqset
It seems like we need to have an 'enlightenment-service' similar to
xfce4 and gnome.
There's a number of dysfunctional features at the moment, I like to
track them all in related or unique bugs.
--
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#27311
; Package
guix
.
(Sun, 11 Jun 2017 16:36:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 27311 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
GNU bug Tracking System transcribed 0.7K bytes:
> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
> bug-guix <at> gnu.org
>
> If you wish to submit further information on this problem, please
> send it to 27311 <at> debbugs.gnu.org.
>
> Please do not send mail to help-debbugs <at> gnu.org unless you wish
> to report a problem with the Bug-tracking system.
>
> --
> 27311: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27311
> GNU Bug Tracking System
> Contact help-debbugs <at> gnu.org with problems
>
It seems as if Nix has a solution to some of the problems I encounter
with Enlightenment. I'll try and fix most of the bugs I reported.
--
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#27311
; Package
guix
.
(Sun, 11 Jun 2017 17:26:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 27311 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
ng0 transcribed 2.0K bytes:
> GNU bug Tracking System transcribed 0.7K bytes:
> > Thank you for filing a new bug report with debbugs.gnu.org.
> >
> > This is an automatically generated reply to let you know your message
> > has been received.
> >
> > Your message is being forwarded to the package maintainers and other
> > interested parties for their attention; they will reply in due course.
> >
> > Your message has been sent to the package maintainer(s):
> > bug-guix <at> gnu.org
> >
> > If you wish to submit further information on this problem, please
> > send it to 27311 <at> debbugs.gnu.org.
> >
> > Please do not send mail to help-debbugs <at> gnu.org unless you wish
> > to report a problem with the Bug-tracking system.
> >
> > --
> > 27311: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27311
> > GNU Bug Tracking System
> > Contact help-debbugs <at> gnu.org with problems
> >
>
> It seems as if Nix has a solution to some of the problems I encounter
> with Enlightenment. I'll try and fix most of the bugs I reported.
Nix solved this particular issue (cpufreq) with a hack.
It's okay for me, but do some of you agree with applying this:
# this is a hack and without this cpufreq module is not working. does the following:
# 1. moves the "freqset" binary to "e_freqset",
# 2. linkes "e_freqset" to enlightenment/bin so that,
# 3. wrappers.setuid detects it and places wrappers in /run/wrappers/bin/e_freqset,
# 4. and finally, links /run/wrappers/bin/e_freqset to original destination where enlightenment wants it
postInstall = ''
export CPUFREQ_DIRPATH=`readlink -f $out/lib/enlightenment/modules/cpufreq/linux-gnu-*`;
mv $CPUFREQ_DIRPATH/freqset $CPUFREQ_DIRPATH/e_freqset
ln -sv $CPUFREQ_DIRPATH/e_freqset $out/bin/e_freqset
ln -sv /run/wrappers/bin/e_freqset $CPUFREQ_DIRPATH/freqset
'';
source: https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/enlightenment/enlightenment.nix
--
ng0
OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#27311
; Package
guix
.
(Wed, 21 Jun 2017 08:01:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 27311 <at> debbugs.gnu.org (full text, mbox):
ng0 <ng0 <at> pragmatique.xyz> writes:
> Nix solved this particular issue (cpufreq) with a hack.
> It's okay for me, but do some of you agree with applying this:
>
> # this is a hack and without this cpufreq module is not working. does the following:
> # 1. moves the "freqset" binary to "e_freqset",
> # 2. linkes "e_freqset" to enlightenment/bin so that,
> # 3. wrappers.setuid detects it and places wrappers in /run/wrappers/bin/e_freqset,
> # 4. and finally, links /run/wrappers/bin/e_freqset to original destination where enlightenment wants it
> postInstall = ''
> export CPUFREQ_DIRPATH=`readlink -f $out/lib/enlightenment/modules/cpufreq/linux-gnu-*`;
> mv $CPUFREQ_DIRPATH/freqset $CPUFREQ_DIRPATH/e_freqset
> ln -sv $CPUFREQ_DIRPATH/e_freqset $out/bin/e_freqset
> ln -sv /run/wrappers/bin/e_freqset $CPUFREQ_DIRPATH/freqset
> '';
No, we shouldn’t apply this hack. Setuid binaries are declared
separately in the operating system configuration. See section 6.2.8
Setuid Programs in the manual.
Packages cannot declare setuid binaries.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Reply sent
to
Efraim Flashner <efraim <at> flashner.co.il>
:
You have taken responsibility.
(Sun, 05 Aug 2018 09:45:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
ng0 <ng0 <at> pragmatique.xyz>
:
bug acknowledged by developer.
(Sun, 05 Aug 2018 09:45:04 GMT)
Full text and
rfc822 format available.
Message #19 received at 27311-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Turns out this one was fixed by 122f91bd413df1606a03050808ead4a7306101ef
--
Efraim Flashner <efraim <at> flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 02 Sep 2018 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 237 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.