1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

chromium: fixup commit 33557ac

Helps with #17460

@cleverca22 saw calls to SetuidSandboxHost::GetSandboxBinaryPath so we
patch this function instead.

cc @joachifm
This commit is contained in:
obadz 2016-08-05 10:55:48 +01:00
parent 3823033107
commit d6528a1b7f

View file

@ -137,8 +137,8 @@ let
# We want to be able to specify where the sandbox is via CHROME_DEVEL_SANDBOX
substituteInPlace sandbox/linux/suid/client/setuid_sandbox_host.cc \
--replace \
'std::string sandbox_binary(GetSandboxBinaryPath().value());' \
'std::string sandbox_binary(GetDevelSandboxPath());'
'return sandbox_binary;' \
'return base::FilePath(GetDevelSandboxPath());'
sed -i -r \
-e 's/-f(stack-protector)(-all)?/-fno-\1/' \