Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove use of mach_absolute_time #15554

Closed
wants to merge 1 commit into from
Closed

Conversation

dmaclach
Copy link
Contributor

mach_absolute_time is one of Apple's required reason APIs (https://developer.apple.com/documentation/kernel/1462446-mach_absolute_time?language=objc). Replace it with the suggested clock_gettime_nsec_np(CLOCK_UPTIME_RAW) so that we don't need a RRA entry in a privacy manifest.

issue #15029

`mach_absolute_time` is one of Apple's required reason APIs (https://developer.apple.com/documentation/kernel/1462446-mach_absolute_time?language=objc). Replace it with the suggested `clock_gettime_nsec_np(CLOCK_UPTIME_RAW)` so that we don't need a RRA entry in a privacy manifest.

issue #15029
@dmaclach dmaclach marked this pull request as ready for review January 23, 2024 23:31
@dmaclach dmaclach requested a review from a team as a code owner January 23, 2024 23:31
@dmaclach dmaclach requested review from sbenzaquen, haberman and zhangskz and removed request for a team January 23, 2024 23:31
@fowles fowles added 🅰️ safe for tests Mark a commit as safe to run presubmits over ios labels Jan 24, 2024
zhangskz pushed a commit to zhangskz/protobuf that referenced this pull request Jan 31, 2024
`mach_absolute_time` is one of Apple's required reason APIs (https://developer.apple.com/documentation/kernel/1462446-mach_absolute_time?language=objc). Replace it with the suggested `clock_gettime_nsec_np(CLOCK_UPTIME_RAW)` so that we don't need a RRA entry in a privacy manifest.

issue protocolbuffers#15029

Closes protocolbuffers#15554

COPYBARA_INTEGRATE_REVIEW=protocolbuffers#15554 from protocolbuffers:dmaclach-mach_absolute_time 295d831
PiperOrigin-RevId: 601370915
zhangskz pushed a commit to zhangskz/protobuf that referenced this pull request Jan 31, 2024
`mach_absolute_time` is one of Apple's required reason APIs (https://developer.apple.com/documentation/kernel/1462446-mach_absolute_time?language=objc). Replace it with the suggested `clock_gettime_nsec_np(CLOCK_UPTIME_RAW)` so that we don't need a RRA entry in a privacy manifest.

issue protocolbuffers#15029

Closes protocolbuffers#15554

COPYBARA_INTEGRATE_REVIEW=protocolbuffers#15554 from protocolbuffers:dmaclach-mach_absolute_time 295d831
PiperOrigin-RevId: 601370915
zhangskz added a commit that referenced this pull request Jan 31, 2024
`mach_absolute_time` is one of Apple's required reason APIs (https://developer.apple.com/documentation/kernel/1462446-mach_absolute_time?language=objc). Replace it with the suggested `clock_gettime_nsec_np(CLOCK_UPTIME_RAW)` so that we don't need a RRA entry in a privacy manifest.

issue #15029

Closes #15554

COPYBARA_INTEGRATE_REVIEW=#15554 from protocolbuffers:dmaclach-mach_absolute_time 295d831
PiperOrigin-RevId: 601370915

Co-authored-by: dmaclach <dmaclach@gmail.com>
zhangskz pushed a commit that referenced this pull request Feb 12, 2024
`mach_absolute_time` is one of Apple's required reason APIs (https://developer.apple.com/documentation/kernel/1462446-mach_absolute_time?language=objc). Replace it with the suggested `clock_gettime_nsec_np(CLOCK_UPTIME_RAW)` so that we don't need a RRA entry in a privacy manifest.

issue #15029

Closes #15554

COPYBARA_INTEGRATE_REVIEW=#15554 from protocolbuffers:dmaclach-mach_absolute_time 295d831
PiperOrigin-RevId: 601370915
copybara-service bot pushed a commit to grpc/grpc that referenced this pull request Mar 21, 2024
… manifest (#36080)

#35923 removed the use of mach_absolute_time in gpr.

There is still one usage in protobuf, which they have removed the usage in protocolbuffers/protobuf#15554 but we haven't update yet.
However gRPC library does not depends on protobuf but upb, so we should no longer need NSPrivacyAccessedAPICategorySystemBootTime any more.

Closes #36080

COPYBARA_INTEGRATE_REVIEW=#36080 from HannahShiSFB:remove-privacy-for-mach_absolute_time dacccaf
PiperOrigin-RevId: 617995787
zhangskz pushed a commit that referenced this pull request Apr 22, 2024
`mach_absolute_time` is one of Apple's required reason APIs (https://developer.apple.com/documentation/kernel/1462446-mach_absolute_time?language=objc). Replace it with the suggested `clock_gettime_nsec_np(CLOCK_UPTIME_RAW)` so that we don't need a RRA entry in a privacy manifest.

issue #15029

Closes #15554

COPYBARA_INTEGRATE_REVIEW=#15554 from protocolbuffers:dmaclach-mach_absolute_time 295d831
PiperOrigin-RevId: 601370915
zhangskz added a commit that referenced this pull request Apr 26, 2024
remove use of mach_absolute_time (#15554)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🅰️ safe for tests Mark a commit as safe to run presubmits over ios
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants