Make unix_chkpwd suid root

svn path=/nixpkgs/trunk/; revision=23164
This commit is contained in:
Yury G. Kudryashov 2010-08-13 14:06:41 +00:00
parent 794c9dd1d7
commit 5ee59b9f2e
1 changed files with 5 additions and 0 deletions

View File

@ -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"
'';