mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
Merge pull request #17004 from rickynils/openssh_privsep_dir
openssh: Use the default privilege separation dir (/var/empty)
This commit is contained in:
commit
211bed46c4
@ -45,6 +45,9 @@ stdenv.mkDerivation rec {
|
||||
./locale_archive.patch
|
||||
./fix-host-key-algorithms-plus.patch
|
||||
./CVE-2015-8325.patch
|
||||
|
||||
# See discussion in https://github.com/NixOS/nixpkgs/pull/16966
|
||||
./dont_create_privsep_path.patch
|
||||
]
|
||||
++ optional withGssapiPatches gssapiSrc;
|
||||
|
||||
@ -66,11 +69,6 @@ stdenv.mkDerivation rec {
|
||||
++ optional stdenv.isDarwin "--disable-libutil"
|
||||
++ optional (!linkOpenssl) "--without-openssl";
|
||||
|
||||
preConfigure = ''
|
||||
configureFlagsArray+=("--with-privsep-path=$out/empty")
|
||||
mkdir -p $out/empty
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
|
11
pkgs/tools/networking/openssh/dont_create_privsep_path.patch
Normal file
11
pkgs/tools/networking/openssh/dont_create_privsep_path.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -ur openssh-7.2p2_orig/Makefile.in openssh-7.2p2/Makefile.in
|
||||
--- openssh-7.2p2_orig/Makefile.in 2016-03-09 19:04:48.000000000 +0100
|
||||
+++ openssh-7.2p2/Makefile.in 2016-07-16 09:56:05.643903293 +0200
|
||||
@@ -301,7 +301,6 @@
|
||||
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)5
|
||||
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8
|
||||
$(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir)
|
||||
- (umask 022 ; $(srcdir)/mkinstalldirs $(DESTDIR)$(PRIVSEP_PATH))
|
||||
$(INSTALL) -m 0755 $(STRIP_OPT) ssh$(EXEEXT) $(DESTDIR)$(bindir)/ssh$(EXEEXT)
|
||||
$(INSTALL) -m 0755 $(STRIP_OPT) scp$(EXEEXT) $(DESTDIR)$(bindir)/scp$(EXEEXT)
|
||||
$(INSTALL) -m 0755 $(STRIP_OPT) ssh-add$(EXEEXT) $(DESTDIR)$(bindir)/ssh-add$(EXEEXT)
|
Loading…
Reference in New Issue
Block a user