Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Issue 85403011: Linux sandbox: move CurrentProcessHasOpenDirectories (Closed)

Created:
7 years ago by jln (very slow on Chromium)
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, agl, jln+watch_chromium.org, mostynb
Visibility:
Public.

Description

Linux sandbox: move CurrentProcessHasOpenDirectories Move CurrentProcessHasOpenDirectories() to the Credentials class and rename it to HasOpenDirectory(). Also add some unittests. BUG=312380 R=jorgelo@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237242

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -59 lines) Patch
M content/common/sandbox_linux.cc View 3 chunks +2 lines, -56 lines 0 comments Download
M sandbox/linux/services/credentials.h View 2 chunks +16 lines, -3 lines 0 comments Download
M sandbox/linux/services/credentials.cc View 4 chunks +61 lines, -0 lines 4 comments Download
M sandbox/linux/services/credentials_unittest.cc View 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jln (very slow on Chromium)
Jorge, please take a look!
7 years ago (2013-11-26 01:33:27 UTC) #1
Jorge Lucangeli Obes
https://codereview.chromium.org/85403011/diff/1/sandbox/linux/services/credentials.cc File sandbox/linux/services/credentials.cc (right): https://codereview.chromium.org/85403011/diff/1/sandbox/linux/services/credentials.cc#newcode164 sandbox/linux/services/credentials.cc:164: proc_self_fd = openat(AT_FDCWD, "/proc/self/fd", O_DIRECTORY | O_RDONLY); Any reason ...
7 years ago (2013-11-26 01:45:27 UTC) #2
jln (very slow on Chromium)
https://codereview.chromium.org/85403011/diff/1/sandbox/linux/services/credentials.cc File sandbox/linux/services/credentials.cc (right): https://codereview.chromium.org/85403011/diff/1/sandbox/linux/services/credentials.cc#newcode164 sandbox/linux/services/credentials.cc:164: proc_self_fd = openat(AT_FDCWD, "/proc/self/fd", O_DIRECTORY | O_RDONLY); On 2013/11/26 ...
7 years ago (2013-11-26 01:52:17 UTC) #3
Jorge Lucangeli Obes
lgtm
7 years ago (2013-11-26 01:53:41 UTC) #4
jln (very slow on Chromium)
Committed patchset #1 manually as r237242.
7 years ago (2013-11-26 03:33:36 UTC) #5
jln (very slow on Chromium)
7 years ago (2013-11-26 04:12:15 UTC) #6
Message was sent while issue was closed.
On 2013/11/26 03:33:36, jln wrote:
> Committed patchset #1 manually as r237242.

This was somehow the first time capabilities.cc was actually needed to link
content/ and something weird happened on the "Official" bot:

FAILED: cd ../../chrome; flock -- /tmp/linux_package_lock bash
../out/Release/installer/rpm/build.sh -o../out/Release -b ../out/Release -a x64
-c stable
Staging common install files in '/tmp/rpm.build.WSrMSY'...
Staging RPM install files in '/tmp/rpm.build.WSrMSY'...
Packaging x86_64...
5a6
> libcap.so.2()(64bit)

ERROR: Shared library dependencies changed!
If this is intentional, please update:
chrome/installer/linux/rpm/expected_deps_i386
chrome/installer/linux/rpm/expected_deps_x86_64

FAILED: cd ../../chrome; flock -- /tmp/linux_package_lock bash
../out/Release/installer/debian/build.sh -o../out/Release -b ../out/Release -a
x64 -c unstable
5a6
> libcap2 (>= 2.10)

ERROR: Shared library dependencies changed!
If this is intentional, please update:
chrome/installer/linux/debian/expected_deps

Cleaning...
FAILED: cd ../../chrome; flock -- /tmp/linux_package_lock bash
../out/Release/installer/debian/build.sh -o../out/Release -b ../out/Release -a
x64 -c beta
5a6
> libcap2 (>= 2.10)

ERROR: Shared library dependencies changed!
If this is intentional, please update:
chrome/installer/linux/debian/expected_deps

Cleaning...
FAILED: cd ../../chrome; flock -- /tmp/linux_package_lock bash
../out/Release/installer/debian/build.sh -o../out/Release -b ../out/Release -a
x64 -c stable
5a6
> libcap2 (>= 2.10)

ERROR: Shared library dependencies changed!
If this is intentional, please update:
chrome/installer/linux/debian/expected_deps

Cleaning...
FAILED: cd ../../chrome; flock -- /tmp/linux_package_lock bash
../out/Release/installer/rpm/build.sh -o../out/Release -b ../out/Release -a x64
-c beta
Staging common install files in '/tmp/rpm.build.Xm3oJk'...
Staging RPM install files in '/tmp/rpm.build.Xm3oJk'...
Packaging x86_64...
5a6
> libcap.so.2()(64bit)

ERROR: Shared library dependencies changed!
If this is intentional, please update:
chrome/installer/linux/rpm/expected_deps_i386
chrome/installer/linux/rpm/expected_deps_x86_64

../out/Release/chrome, section '.eh_frame': the call frame entry at offset
0x91e648 uses a DWARF expression to describe how to recover register '.cfa', 
but this translator cannot yet translate DWARF expressions to Breakpad postfix
expressions
FAILED: cd ../../chrome; flock -- /tmp/linux_package_lock bash
../out/Release/installer/rpm/build.sh -o../out/Release -b ../out/Release -a x64
-c unstable
Staging common install files in '/tmp/rpm.build.njSkFA'...
Staging RPM install files in '/tmp/rpm.build.njSkFA'...
Packaging x86_64...
5a6
> libcap.so.2()(64bit)

ERROR: Shared library dependencies changed!
If this is intentional, please update:
chrome/installer/linux/rpm/expected_deps_i386
chrome/installer/linux/rpm/expected_deps_x86_64

Powered by Google App Engine
This is Rietveld 408576698