Commit graph

36 commits

Author SHA1 Message Date
Tuomas Tynkkynen
8a985d97a1 sudo: Compile with '--with-iologdir' to improve build purity
Otherwise it will try to guess the log directory, and the guess might
not be the same if chroot builds are enabled or not.

The gruesome details from m4/sudo.m4:

````
dnl
dnl Where the I/O log files go, use /var/log/sudo-io if
dnl /var/log exists, else /{var,usr}/adm/sudo-io
dnl
AC_DEFUN([SUDO_IO_LOGDIR], [
    AC_MSG_CHECKING(for I/O log dir location)
    if test "${with_iologdir-yes}" != "yes"; then
        iolog_dir="$with_iologdir"
    elif test -d "/var/log"; then
        iolog_dir="/var/log/sudo-io"
    elif test -d "/var/adm"; then
        iolog_dir="/var/adm/sudo-io"
    else
        iolog_dir="/usr/adm/sudo-io"
    fi
    if test "${with_iologdir}" != "no"; then
        SUDO_DEFINE_UNQUOTED(_PATH_SUDO_IO_LOGDIR, "$iolog_dir")
    fi
    AC_MSG_RESULT($iolog_dir)
])dnl
````
2016-01-02 18:50:11 +01:00
Franz Pletz
3edcc3c669 sudo: 1.8.14p3 -> 1.8.15, fixes #11297 2015-12-03 09:02:17 +01:00
Tobias Geerinckx-Rice
7b30d6a8cb sudo: add withInsults flag (disabled by default)
The feature Nix neither needs nor deserves.
Requires the "insults" to be explicitly enabled in sudoers.
This adds 1.6 MB to your sudo as some kind of cruel meta-joke.
2015-07-31 02:02:08 +02:00
William A. Kennington III
b827583831 sudo: 1.8.14p1 -> 1.8.14p3 2015-07-22 11:26:59 -07:00
William A. Kennington III
8734f01830 sudo: 1.8.13 -> 1.8.14p1 2015-07-19 12:09:14 -07:00
William A. Kennington III
2f02ae037a sudo: 1.8.12 -> 1.8.13 2015-03-26 14:01:07 -07:00
Eelco Dolstra
2ed5c2bd6b Set some meta.platforms
Also fix meta.platform -> meta.platforms in a few places.
2015-03-20 20:04:42 +01:00
Eelco Dolstra
9e9e446880 sudo: Fix incorrect runtime path 2015-02-25 12:39:06 +01:00
Eelco Dolstra
3d3db3550f sudo: Update to 1.8.12 2015-02-24 18:04:35 +01:00
Eelco Dolstra
6866712a39 sudo: Update to 1.8.11p2 2014-12-18 12:31:56 +01:00
Aristid Breitkreuz
5b352c409f sudo: update from 1.8.10p3 to 1.8.11 2014-10-08 20:23:25 +02:00
Bjørn Forsman
c3436c0c4a sudo: change password prompt
The current sudo password prompt is "Password: ", while distros like
e.g. Ubuntu and Arch Linux use "[sudo] password for %p: ", where "%p"
expands to the username of the user running sudo.

Adopt the prompt from other distros because it makes it less confusing
when running commands with sudo that themselves ask for a password.
2014-09-04 15:39:11 +02:00
Bjørn Forsman
89eccb7fb0 sudo: add sendmailPath option (defaults to /var/setuid-wrappers/sendmail)
It currently seems impossible to make sudo send emails. No matter how much
debugging I enable, sudo continues to be silent about sendmail. I tried setting
"Defaults mailerpath=/var/setuid-wrappers/sendmail" but that too was completely
ignored (except for logging that the variable mailerpath exists with the value
I assigned to it...).

This enables sendmail support and sets a default value that works on NixOS.
2014-09-04 13:38:03 +02:00
Chris Farmiloe
fbfdc8e2dc keep fallback visudo editor as nano 2014-06-22 19:50:40 +02:00
Chris Farmiloe
3dec61a8a6 Fix sudo not installing due to timedir deprecation 2014-06-22 19:42:32 +02:00
William A. Kennington III
1bb2a094fd sudo: Update 1.8.9p4 -> 1.8.10p3 2014-06-17 22:41:32 -05:00
William A. Kennington III
ef4ea24420 sudo: Always keepVisudo in order to simplify sudo build 2014-06-17 22:41:32 -05:00
Michael Raskin
4b144de367 Allow to keep visudo. Useful for checking sudoers syntax 2014-06-09 00:54:21 +04:00
Eelco Dolstra
c07559b782 sudo: Update to 1.8.9p4 2014-01-23 11:21:38 +01:00
Eelco Dolstra
0c3f2b718d sudo: update from 1.8.8 to 1.8.9p3 2014-01-15 11:02:22 +01:00
Eelco Dolstra
d207047afc sudo: Update to 1.8.8 2013-11-12 17:58:49 +01:00
Eelco Dolstra
477c53cec0 sudo: Fix building outside of a chroot 2013-04-05 19:38:07 +02:00
Eelco Dolstra
91ff5e33cc sudo: Update to 1.8.7p7
Ouch, our sudo was criminally outdated.

CVE-2013-1775, CVE-2013-1776, CVE-2012-2337, CVE-2011-0010.
2013-04-03 13:15:38 +02:00
Florian Friesdorf
bf95f7fa3c Revert "sudo upgrade to 1.8.3p2 (security fix included)"
before was 1.7.2, which is not affected

svn path=/nixpkgs/trunk/; revision=31944
2012-01-31 14:09:54 +00:00
Florian Friesdorf
8565aba2cd sudo upgrade to 1.8.3p2 (security fix included)
svn path=/nixpkgs/trunk/; revision=31943
2012-01-31 13:49:53 +00:00
Eelco Dolstra
934d30e35f * Fix a broken URL, and update sudo while we're at it.
svn path=/nixpkgs/trunk/; revision=16972
2009-09-06 21:36:51 +00:00
Eelco Dolstra
d095fa0dd9 * Install the sudo manpages. Also updated to 1.7.1.
svn path=/nixpkgs/trunk/; revision=16056
2009-06-26 16:10:38 +00:00
Ludovic Courtès
a8c3cbdf0b Sudo: Set the right LOGFILE' and TIMEDIR' paths.
This fixes `sudo' so that it can actually remember your password
across invocations.


svn path=/nixpkgs/trunk/; revision=14548
2009-03-16 08:31:23 +00:00
Marc Weber
0d159e6a10 version bump sudo to 1.7.0
svn path=/nixpkgs/trunk/; revision=14079
2009-02-13 18:54:56 +00:00
Ludovic Courtès
0233672dc7 Sudo 1.6.9p17.
svn path=/nixpkgs/trunk/; revision=12841
2008-09-11 14:31:37 +00:00
Eelco Dolstra
eeb42a6dae * Doh.
svn path=/nixpkgs/trunk/; revision=9149
2007-08-17 13:37:53 +00:00
Eelco Dolstra
f3b3d53600 * Sudo 1.6.9p4.
svn path=/nixpkgs/trunk/; revision=9148
2007-08-17 13:37:28 +00:00
Andres Löh
b90010367e * update sudo version
svn path=/nixpkgs/trunk/; revision=9050
2007-08-05 18:21:28 +00:00
Michael Raskin
68d6762e0f I hope I disabled ncursesw in Cygwin. Also fixed device-mapper mention in system.nix. Also added pam in the list of sudo dependencies, it should be done anyway, but still only NOPASSWD entries work.
svn path=/nixpkgs/trunk/; revision=8931
2007-06-28 22:14:25 +00:00
Michael Raskin
d80093f2ff Added version suffixes.
svn path=/nixpkgs/trunk/; revision=8921
2007-06-26 12:13:17 +00:00
Michael Raskin
35ae2ce5c3 Adding forgot new files for sudo and BitTornado
svn path=/nixpkgs/trunk/; revision=8899
2007-06-20 09:34:42 +00:00