nixpkgs/pkgs/tools
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
..
admin lxd: 2.0.0.rc4 -> 2.0.2 2016-06-19 20:21:03 +01:00
archivers zpaqd: 7.07 -> 7.08 2016-06-23 12:37:54 +02:00
audio gvolicon: c04cafb -> 31cf770 2016-06-17 11:46:19 +02:00
backup attic: unbreak "attic mount" by using old llfuse 0.41 2016-06-24 20:16:41 +02:00
bluetooth bluez-tools: fix sha256 hash. 2016-05-21 16:37:40 +02:00
bootloaders/refind
cd-dvd Captialize meta.description of all packages 2016-06-20 13:55:52 +02:00
compression zstd: set meta.platforms to unix 2016-06-23 19:30:12 +02:00
filesystems btrfs-progs: 4.6 -> 4.6.1 2016-06-26 02:07:20 +02:00
graphics Captialize meta.description of all packages 2016-06-20 13:55:52 +02:00
inputmethods ibus: fix #16292 2016-06-21 20:57:51 +02:00
misc Merge branch 'staging' 2016-06-29 07:47:04 +02:00
networking zerotierone: 1.1.4 -> 1.1.6 2016-06-29 21:45:40 -04:00
package-management gx: add missing meta 2016-06-19 13:45:16 +01:00
security gnupg21: 2.1.12 -> 2.1.13 2016-06-23 00:26:48 -07:00
system cron: fix crontab(5) and cron job PATH 2016-07-02 00:09:07 +02:00
text mecab: init at 0.996 (#16175) 2016-06-26 22:47:23 +02:00
typesetting Revert "stdenv: introduce baseHash() to replace stripHash()" 2016-06-25 14:25:58 +01:00
video Fix lots of fetchgit hashes (fallout from #15469) 2016-06-03 17:17:08 +03:00
virtualization Captialize meta.description of all packages 2016-06-20 13:55:52 +02:00
X11 xpra: 0.17.3 -> 0.17.4 (important fixes) 2016-06-30 14:48:05 +02:00