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

Issue 2914693002: Add IsSandboxed() function to seatbelt wrapper. (Closed)

Created:
3 years, 6 months ago by Greg K
Modified:
3 years, 6 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add IsSandboxed() function to seatbelt wrapper. This adds a function that checks whether or not the process is currently sandboxed. It uses the underlying sandbox_check() functionality, which is not yet further exposed. BUG=689306 Review-Url: https://codereview.chromium.org/2914693002 Cr-Commit-Position: refs/heads/master@{#476370} Committed: https://chromium.googlesource.com/chromium/src/+/60afdae0e313e3af409e9c13776520525f34c0bc

Patch Set 1 #

Total comments: 7

Patch Set 2 : Switch to IsSandboxed() #

Patch Set 3 : Improve function documentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -0 lines) Patch
M sandbox/mac/sandbox_mac_compiler_unittest.mm View 1 2 chunks +24 lines, -0 lines 0 comments Download
M sandbox/mac/seatbelt.h View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M sandbox/mac/seatbelt.cc View 1 3 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
Greg K
PTAL. Thanks, Greg
3 years, 6 months ago (2017-05-30 21:53:31 UTC) #6
Robert Sesek
https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h File sandbox/mac/seatbelt.h (right): https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h#newcode16 sandbox/mac/seatbelt.h:16: enum sandbox_filter_type { Why is this extern C? I ...
3 years, 6 months ago (2017-05-31 17:31:08 UTC) #7
Greg K
https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h File sandbox/mac/seatbelt.h (right): https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h#newcode35 sandbox/mac/seatbelt.h:35: int sandbox_check(pid_t pid, On 2017/05/31 17:31:08, Robert Sesek wrote: ...
3 years, 6 months ago (2017-05-31 17:36:25 UTC) #8
Robert Sesek
https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h File sandbox/mac/seatbelt.h (right): https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h#newcode35 sandbox/mac/seatbelt.h:35: int sandbox_check(pid_t pid, On 2017/05/31 17:36:25, Greg K wrote: ...
3 years, 6 months ago (2017-05-31 18:09:58 UTC) #9
Greg K
https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h File sandbox/mac/seatbelt.h (right): https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h#newcode35 sandbox/mac/seatbelt.h:35: int sandbox_check(pid_t pid, On 2017/05/31 18:09:58, Robert Sesek wrote: ...
3 years, 6 months ago (2017-05-31 18:14:37 UTC) #10
Robert Sesek
https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h File sandbox/mac/seatbelt.h (right): https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h#newcode35 sandbox/mac/seatbelt.h:35: int sandbox_check(pid_t pid, On 2017/05/31 18:14:37, Greg K wrote: ...
3 years, 6 months ago (2017-05-31 18:19:08 UTC) #11
Greg K
On 2017/05/31 18:19:08, Robert Sesek wrote: > https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h > File sandbox/mac/seatbelt.h (right): > > https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h#newcode35 ...
3 years, 6 months ago (2017-06-01 18:27:46 UTC) #21
Robert Sesek
LGTM
3 years, 6 months ago (2017-06-01 18:34:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2914693002/40001
3 years, 6 months ago (2017-06-01 18:40:29 UTC) #26
Greg K
https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h File sandbox/mac/seatbelt.h (right): https://codereview.chromium.org/2914693002/diff/1/sandbox/mac/seatbelt.h#newcode35 sandbox/mac/seatbelt.h:35: int sandbox_check(pid_t pid, On 2017/05/31 18:19:08, Robert Sesek wrote: ...
3 years, 6 months ago (2017-06-01 18:42:09 UTC) #27
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 18:46:43 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/60afdae0e313e3af409e9c137765...

Powered by Google App Engine
This is Rietveld 408576698