소스 검색

dpkg-buildflags: Disable bind now by default

This option has a startup performance hit on slow systems, particularly
due to slow I/O, the effects of which cannot be reverted except for a
rebuild. It might make sense for long running processes where the
startup time is not that important, and the security improvements do
actually matter. Another option is to set the environment variable
LD_BIND_NOW=1 for the long running process, so that the sysadmin can
disable it if desired.
Guillem Jover 15 년 전
부모
커밋
7af8fb2f01
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      man/dpkg-buildflags.1
  2. 1 1
      scripts/Dpkg/Vendor/Debian.pm

+ 2 - 2
man/dpkg-buildflags.1

@@ -1,4 +1,4 @@
-.TH dpkg\-buildflags 1 "2011-09-09" "Debian Project" "dpkg suite"
+.TH dpkg\-buildflags 1 "2011-09-13" "Debian Project" "dpkg suite"
 .SH NAME
 .SH NAME
 dpkg\-buildflags \- returns build flags to use during package build
 dpkg\-buildflags \- returns build flags to use during package build
 .
 .
@@ -235,7 +235,7 @@ notably this prevents GOT overwrite attacks.
 .
 .
 .TP
 .TP
 .B bindnow
 .B bindnow
-This setting (enabled by default) adds
+This setting (disabled by default) adds
 .B \-Wl,\-z,now
 .B \-Wl,\-z,now
 to \fBLDFLAGS\fP. During program load, all dynamic symbols are resolved,
 to \fBLDFLAGS\fP. During program load, all dynamic symbols are resolved,
 allowing for the entire PLT to be marked read-only (due to \fBrelro\fP
 allowing for the entire PLT to be marked read-only (due to \fBrelro\fP

+ 1 - 1
scripts/Dpkg/Vendor/Debian.pm

@@ -90,7 +90,7 @@ sub add_hardening_flags {
 	"fortify" => 1,
 	"fortify" => 1,
 	"format" => 1,
 	"format" => 1,
 	"relro" => 1,
 	"relro" => 1,
-	"bindnow" => 1
+	"bindnow" => 0
     );
     );
     my $opts = Dpkg::BuildOptions->new(envvar => "DEB_BUILD_MAINT_OPTIONS");
     my $opts = Dpkg::BuildOptions->new(envvar => "DEB_BUILD_MAINT_OPTIONS");
     foreach my $feature (split(",", $opts->get("hardening") // "")) {
     foreach my $feature (split(",", $opts->get("hardening") // "")) {