3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
Christian Kauhaus 0c0f068f35
cron: fix crontab(5) and cron job PATH
Switch off HAVE_SAVED_UIDS since it activates a code path for temporary
privilege dropping which does not work on NixOS.

Vixie-cron's sources ship with two implementations. Unfortunately, the
one activated by HAVE_SAVED_UIDS (using setuid()) does not work on
NixOS. Saved UIDs work only if the program which is using them has the
setuid bit set on its own executable, not if called from a setuid
wrapper (as we do it in NixOS). The other implementation (using
setreuid()) works without problems.

Quote from
<http://stackoverflow.com/questions/8499296/realuid-saved-uid-effective-uid-whats-going-on>:

    If you're euid is root and you change the uid, the privileges gets
    dropped permanently.If effective user id is not root then saved user
    id is never touched and you can regain the root privilege back
    anytime you want in your program.

Also extend the default PATH with NixOS-specific bin directories as
vixie-cron's default is not really usable on NixOS.

Re #16518

Closes #16522
2016-07-02 00:09:07 +02:00
..
applications errbot: init at 4.2.2 (#16551) 2016-07-01 16:04:01 +02:00
build-support Merge branch 'staging' 2016-06-29 07:47:04 +02:00
data geolite-legacy: 2016-06-20 -> 2016-06-30 2016-06-30 15:36:42 +02:00
desktops Merge branch 'staging' 2016-06-29 07:47:04 +02:00
development fix 32bit android emulator 2016-07-01 21:41:32 +02:00
games Merge branch 'staging' 2016-06-29 07:47:04 +02:00
misc Merge pull request #16533 from avnik/wine-update 2016-07-01 16:07:11 +04:00
os-specific btfs: 2.9 -> 2.10 (#16603) 2016-06-30 23:39:15 +02:00
servers Merge branch 'staging' 2016-06-29 07:47:04 +02:00
shells zsh-completions: init at version 0.18.0 (#16512) 2016-06-27 00:39:18 +02:00
stdenv make-bootstrap-tools*: fixup after #16406 2016-06-28 09:54:22 +02:00
test
tools cron: fix crontab(5) and cron job PATH 2016-07-02 00:09:07 +02:00
top-level perl-Test2-Suite: 0.000032 -> 0.000042 2016-07-01 22:38:47 +02:00