Changeset 198967 in webkit
- Timestamp:
- Apr 1, 2016, 8:21:38 PM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r198956 r198967 1 2016-04-01 Daniel Bates <dabates@apple.com> 2 3 Attempt to fix the Apple Internal Yosemite and El Capitan builds following 4 <http://trac.webkit.org/changeset/198933> (https://bugs.webkit.org/show_bug.cgi?id=155455) 5 <rdar://problem/25502181> 6 7 Only check the code signature of the client app if the "user-directory-suffix" sandbox 8 initialization parameter will not be used. This parameter is only used/passed as an 9 initialization parameter if the client app is not sandboxed, which seems sufficient 10 criterion to determine whether it is safe to honor it. 11 12 * Shared/mac/ChildProcessMac.mm: 13 (WebKit::ChildProcess::initializeSandbox): 14 1 15 2016-04-01 Jiewen Tan <jiewen_tan@apple.com> 2 16 -
trunk/Source/WebKit2/Shared/mac/ChildProcessMac.mm
r198933 r198967 209 209 } 210 210 211 if (willUseUserDirectorySuffixInitializationParameter) 212 return; 211 213 error = noErr; 212 214 String clientCodeSigningIdentifier = codeSigningIdentifierForProcess(xpc_connection_get_pid(parameters.connectionIdentifier.xpcConnection.get()), error); 213 215 bool isClientCodeSigned = !clientCodeSigningIdentifier.isNull(); 214 if (isClientCodeSigned && willUseUserDirectorySuffixInitializationParameter) {215 WTFLogAlways("%s: Only unsigned clients can specify parameter user-directory-suffix\n", getprogname());216 exit(EX_NOPERM);217 }218 216 if (isClientCodeSigned && clientCodeSigningIdentifier != parameters.clientIdentifier) { 219 217 WTFLogAlways("%s: Code signing identifier of client differs from passed client identifier: %ld\n", getprogname(), static_cast<long>(error));
Note:
See TracChangeset
for help on using the changeset viewer.