The firefox binary in Tor Browser 7.0a3 for Linux is not PIE
The firefox
, plugin-container
and updater
binaries are not PIE.
We can fix that by adding ac_add_options --enable-pie
to the mozconfig file.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
Do you know what changed to make this necessary now? We did not change the compiler version and we still have
export DEB_BUILD_HARDENING_PIE=1
.This is now commit b51157dc9a520a693c2fb27ab3213e3bdf1cb5f1 on
tor-browser-52.1.0esr-7.0-2
. Would still be nice to understand what made this change necessary.Trac:
Status: needs_review to closed
Resolution: N/A to fixedReplying to gk:
Do you know what changed to make this necessary now? We did not change the compiler version and we still have
export DEB_BUILD_HARDENING_PIE=1
.Good question. After looking at what changed, I suspect this might be caused by this commit: https://hg.mozilla.org/mozilla-central/rev/f8cf0fe7c810
Before this commit, I think we were using
c++
as the compiler, and after this commitg++
is being used.In
gitian/descriptors/linux/gitian-firefox.yml
we are doing:mv gcc gcc.real mv c++ c++.real ln -sf hardened-cc gcc ln -sf hardened-cc c++
So we are using the hardened wrapper if the
c++
command is used, but not if theg++
command is used.So maybe a better fix would be to add a
g++ -> hardened-cc
symlink ingitian/descriptors/linux/gitian-firefox.yml
.Trac:
Resolution: fixed to N/A
Status: closed to reopenedCould you test that and provide a patch for the upcoming alpha?
I pushed the branch
bug_22238
adding ag++ -> hardened-cc
symbolic link: https://gitweb.torproject.org/user/boklm/tor-browser-bundle.git/commit/?h=bug_22238I tried a similar change in rbm, without the
--enable-pie
option in mozconfig, and this fixed the problem.Trac:
Status: reopened to needs_reviewThanks, looks better. :) Merged to
master
(commit 48b68f84b34aef3567aeffe6932ff1e40d900f2b) and I backed out the patch ontor-browser-52.1.0esr-7.0-2
(commit c474e8a83bff73cff6a26aac945e110bc44846a0).Trac:
Status: needs_review to closed
Resolution: N/A to fixed- Trac closed
closed