linux-pam: make it use SUID wrapped version of unix_ckpwd

main
Vladimír Čunát 2 years ago committed by Jonathan Ringer
parent a10d11b59f
commit fd8f6de4b8
  1. 2
      pkgs/os-specific/linux/pam/default.nix
  2. 6
      pkgs/os-specific/linux/pam/suid-wrapper-path.patch

@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
sha256 = "sha256-IB1AcwsRNbGzzeoJ8sKKxjTXMYHM0Bcs7d7jZJxXkvw=";
};
patches = [ ./suid-wrapper-path.patch ];
outputs = [ "out" "doc" "man" /* "modules" */ ];
depsBuildBuild = [ buildPackages.stdenv.cc ];

@ -0,0 +1,6 @@
It needs the SUID version during runtime, and that can't be in /nix/store/**
--- a/modules/pam_unix/Makefile.in
+++ b/modules/pam_unix/Makefile.in
@@ -651 +651 @@
- -DCHKPWD_HELPER=\"$(sbindir)/unix_chkpwd\" \
+ -DCHKPWD_HELPER=\"/run/wrappers/bin/unix_chkpwd\" \
Loading…
Cancel
Save