mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
Merge pull request #2966 from wkennington/master.sudo
Update and fix sudo
This commit is contained in:
commit
4eb7fdcc13
@ -83,7 +83,7 @@ in
|
||||
{src = pkgs.writeText "sudoers-in" cfg.configFile; }
|
||||
# Make sure that the sudoers file is syntactically valid.
|
||||
# (currently disabled - NIXOS-66)
|
||||
"${pkgs.sudoWithVisudo}/sbin/visudo -f $src -c &&
|
||||
"${pkgs.sudo}/sbin/visudo -f $src -c &&
|
||||
cp $src $out";
|
||||
target = "sudoers";
|
||||
mode = "0440";
|
||||
|
@ -22,7 +22,6 @@ let
|
||||
isoImage.storeContents =
|
||||
[ pkgs.glibcLocales
|
||||
pkgs.sudo
|
||||
pkgs.sudoWithVisudo
|
||||
pkgs.docbook5
|
||||
pkgs.docbook5_xsl
|
||||
pkgs.grub
|
||||
|
@ -1,14 +1,14 @@
|
||||
{ stdenv, fetchurl, coreutils, pam, groff, keepVisudo ? false }:
|
||||
{ stdenv, fetchurl, coreutils, pam, groff }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "sudo-1.8.9p4";
|
||||
name = "sudo-1.8.10p3";
|
||||
|
||||
src = fetchurl {
|
||||
urls =
|
||||
[ "ftp://ftp.sudo.ws/pub/sudo/${name}.tar.gz"
|
||||
"ftp://ftp.sudo.ws/pub/sudo/OLD/${name}.tar.gz"
|
||||
];
|
||||
sha256 = "19y75bsh4z2kid5jk2r84z7rvmnh90n8cb9fbn9l4rcw83lzjhqr";
|
||||
sha256 = "002l6h27pnhb77b65frhazbhknsxvrsnkpi43j7i0qw1lrgi7nkf";
|
||||
};
|
||||
|
||||
postConfigure = ''
|
||||
@ -32,11 +32,6 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
# ‘visudo’ does not make sense on NixOS - except for checking sudoers
|
||||
# file syntax
|
||||
rm ${if keepVisudo then "" else "$out/sbin/visudo"} \
|
||||
$out/share/man/man8/visudo.8
|
||||
|
||||
rm $out/share/doc/sudo/ChangeLog
|
||||
'';
|
||||
|
||||
|
@ -2082,8 +2082,6 @@ let
|
||||
|
||||
sudo = callPackage ../tools/security/sudo { };
|
||||
|
||||
sudoWithVisudo = sudo.override { keepVisudo = true; };
|
||||
|
||||
suidChroot = builderDefsPackage (import ../tools/system/suid-chroot) { };
|
||||
|
||||
super = callPackage ../tools/security/super { };
|
||||
|
Loading…
Reference in New Issue
Block a user