Make unix_chkpwd suid root
svn path=/nixpkgs/trunk/; revision=23164
This commit is contained in:
parent
794c9dd1d7
commit
5ee59b9f2e
|
@ -11,6 +11,11 @@ stdenv.mkDerivation {
|
|||
buildInputs = [ flex cracklib ]
|
||||
++ stdenv.lib.optional (stdenv.system != "armv5tel-linux") libxcrypt;
|
||||
|
||||
postInstall = ''
|
||||
mv -v $out/sbin/unix_chkpwd{,.orig}
|
||||
ln -sv /var/setuid-wrappers/unix_chkpwd $out/sbin/unix_chkpwd
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
configureFlags="$configureFlags --includedir=$out/include/security"
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue