linux-pam: make it use SUID wrapped version of unix_ckpwd
This commit is contained in:
committed by
Jonathan Ringer
parent
a10d11b59f
commit
fd8f6de4b8
@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-IB1AcwsRNbGzzeoJ8sKKxjTXMYHM0Bcs7d7jZJxXkvw=";
|
||||
};
|
||||
|
||||
patches = [ ./suid-wrapper-path.patch ];
|
||||
|
||||
outputs = [ "out" "doc" "man" /* "modules" */ ];
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
|
||||
6
pkgs/os-specific/linux/pam/suid-wrapper-path.patch
Normal file
6
pkgs/os-specific/linux/pam/suid-wrapper-path.patch
Normal file
@@ -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\" \
|
||||
Reference in New Issue
Block a user