New issue
Advanced search Search tips

Issue 622489 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug

Blocking:
issue 622481



Sign in to add a comment

kSBXProfilePureComputation is deprecated with a 10.8 deployment target

Project Member Reported by thakis@chromium.org, Jun 22 2016

Issue description

https://codereview.chromium.org/1855303003/ cunningly moved sandbox_init() behind a wrapper, since Apple deprecated it with a 10.7 deployment target. (Now that I look at it, chrome/utility/safe_browsing/mac/crdmg.cc doesn't use that wrapper yet, but that's not what this bug here is about.)

However, those meddling Apple engineers now also deprecated kSBXProfilePureComputation when using a 10.8 deployment target, so ipc_send_fds_test.cc gets another deprecation warning for that.

Should the wrapper have a symbol for that too? Or maybe the test doesn't need that profile?
 

Comment 1 by thakis@chromium.org, Jun 22 2016

Oh, the warning:

../../ipc/ipc_send_fds_test.cc:196:39: error: 'kSBXProfilePureComputation' is deprecated: first deprecated in OS X 10.8 [-Werror,-Wdeprecated-declarations]
  int error = sandbox::Seatbelt::Init(kSBXProfilePureComputation, SANDBOX_NAMED,
                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sandbox.h:97:19: note: 'kSBXProfilePureComputation' has been explicitly marked deprecated here
extern const char kSBXProfilePureComputation[];
                  ^

Comment 2 by rsesek@chromium.org, Jun 22 2016

Yeah, I think adding sandbox::Seatbelt::PROFILE_PURE_COMPUTATION as a |static const char*| would make sense.

Comment 3 by rsesek@chromium.org, Jun 23 2016

Cc: -kerrnel@chromium.org rsesek@chromium.org
Owner: kerrnel@chromium.org
Status: Assigned (was: Untriaged)
Greg: Can you take this? Should be a small change.
Happy to help.
kerrnel: Ping?
Thanks for the ping, this is now on my TODO list for this week.
Since I promised to do it this week, I have a CL I'm getting ready for review.
Status: Fixed (was: Assigned)

Sign in to add a comment