Reland "Stop removing rpath_for_built_shared_libraries from chrome_sandbox"

This is a reland of 43a48785f23a65d5b3f0cefac086d67c3dea4eb0

After [1], the RPATH is no longer set for sanitizer builds.  Also, after [2],
the setuid bit is no longer set on chrome_sandbox anyway.


Original change's description:
> Stop removing rpath_for_built_shared_libraries from chrome_sandbox
> For instrumented builds like tsan, this causes chrome_sandbox to reference the
> wrong due to a missing RPATH.
> Since all configurations we ship don't set RPATH, we don't have to worry about
> security vulnerabilities introduced by RPATH=$ORIGIN.  There's also a check to
> enforce this in chrome/installer/linux/common/installer.include.
> BUG=850682
> Change-Id: I25307bd9de388009acffdbb8de6717210873655b
> Reviewed-on:
> Reviewed-by: Jorge Lucangeli Obes <>
> Reviewed-by: Dirk Pranke <>
> Commit-Queue: Thomas Anderson <>
> Cr-Commit-Position: refs/heads/master@{#566099}

Bug: 850682
Change-Id: I82fda0bd5b8f0222d64dcf6c4b7d1199c7e5e585
Reviewed-by: Nico Weber <>
Reviewed-by: Robert Sesek <>
Commit-Queue: Thomas Anderson <>
Cr-Commit-Position: refs/heads/master@{#578346}
2 files changed