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

Issue 10178029: Make a small change to the API. Instead of passing in a file (Closed)

Created:
8 years, 8 months ago by Markus (顧孟勤)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Markus (顧孟勤), Mark Seaborn
Visibility:
Public.

Description

Make a small change to the API. Instead of passing in a file descriptor to /proc/self/maps, we now pass in a file descriptor to /proc/self and open "maps" ourselves. This is a more generic API that will make it easier to add other features in the future (e.g. merge the setuid sandbox into the seccomp sandbox, if the kernel allow unprivileged calls to chroot). BUG=none TEST=make test Committed: https://code.google.com/p/seccompsandbox/source/detail?r=180

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -14 lines) Patch
M sandbox.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M sandbox.cc View 1 5 chunks +13 lines, -5 lines 0 comments Download
M sandbox_impl.h View 1 2 chunks +9 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Markus (顧孟勤)
This is a changelist in preparation for merging (parts) of the new sandboxing code. It ...
8 years, 8 months ago (2012-04-27 22:39:35 UTC) #1
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/10178029/diff/1/sandbox.h File sandbox.h (left): https://chromiumcodereview.appspot.com/10178029/diff/1/sandbox.h#oldcode8 sandbox.h:8: extern "C" int SupportsSeccompSandbox(int proc_fd); LGTM Could you document ...
8 years, 8 months ago (2012-04-27 23:00:29 UTC) #2
Mark Seaborn
https://chromiumcodereview.appspot.com/10178029/diff/1/sandbox.cc File sandbox.cc (right): https://chromiumcodereview.appspot.com/10178029/diff/1/sandbox.cc#newcode254 sandbox.cc:254: void Sandbox::setProcSelf(int proc_self) { The smallest change would be ...
8 years, 8 months ago (2012-04-27 23:07:38 UTC) #3
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/10178029/diff/1/sandbox.cc File sandbox.cc (right): https://chromiumcodereview.appspot.com/10178029/diff/1/sandbox.cc#newcode268 sandbox.cc:268: NOINTR_SYS(sys.close(proc_self_)); Should we check for close() errors here ? ...
8 years, 8 months ago (2012-04-27 23:08:19 UTC) #4
jln (very slow on Chromium)
> Otherwise it requires a bit more reasoning to check that the sandbox does not ...
8 years, 8 months ago (2012-04-27 23:11:03 UTC) #5
Markus (顧孟勤)
I uploaded a new version that switches both supportsSandbox() and startSandbox() to "/proc/self". That seems ...
8 years, 8 months ago (2012-04-28 01:15:43 UTC) #6
jln (very slow on Chromium)
8 years, 7 months ago (2012-05-01 00:39:49 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698