nixpkgs-suyu/pkgs/tools/system/suid-chroot/default.nix
Jörg Thalheim 855c1bde42 suid-chroot: do not set suid bit during install
To be useful in nixos, it probably also requires a module to set up a hardening wrapper.
2017-06-28 16:00:38 +01:00

23 lines
597 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "suid-chroot-${version}";
version = "1.0.2";
src = fetchurl {
sha256 = "1a9xqhck0ikn8kfjk338h9v1yjn113gd83q0c50k78xa68xrnxjx";
url = "http://myweb.tiscali.co.uk/scottrix/linux/download/${name}.tar.bz2";
};
postPatch = ''
substituteInPlace Makefile --replace /usr $out
sed -i -e '/chmod u+s/d' Makefile
'';
meta = with stdenv.lib; {
description = "Setuid-safe wrapper for chroot";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ nckx ];
platforms = with platforms; unix;
};
}