Giter Club home page Giter Club logo

Comments (6)

jamilbk avatar jamilbk commented on June 1, 2024

Looks like something inside the NetworkExtension uses the API as well.

Hello,

We noticed one or more issues with a recent submission for TestFlight review for the following app:

Firezone
Version 1.0.0
Build 1711660079
Although submission for TestFlight review was successful, you may want to correct the following issues in your next submission for TestFlight review. Once you've corrected the issues, upload a new binary to App Store Connect.

ITMS-91053: Missing API declaration - Your app’s code in the “PlugIns/FirezoneNetworkExtensioniOS.appex/FirezoneNetworkExtensioniOS” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategoryFileTimestamp. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.

Apple Developer Relations

from firezone.

jamilbk avatar jamilbk commented on June 1, 2024

It's probably coming from tracing_appender: https://github.com/tokio-rs/tracing/blob/master/tracing-appender/src/rolling.rs#L605

from firezone.

jamilbk avatar jamilbk commented on June 1, 2024

Unfortunately this is still an issue even without the log roller. Just got the email from Apple. 😢

Perhaps there are other places where tracing_appender is reading file timestamp metadata.

Refs tokio-rs/tracing#2918

from firezone.

jamilbk avatar jamilbk commented on June 1, 2024

Just received the error again. The saga continues.

from firezone.

jamilbk avatar jamilbk commented on June 1, 2024

I think I found the last place it's being used:

https://github.com/tokio-rs/tokio/blob/master/tokio/src/net/unix/pipe.rs#L1376

That means that codepath is likely being hit. I'll see if I can fork and patch around it to test the theory.

from firezone.

jamilbk avatar jamilbk commented on June 1, 2024

I've confirmed that this change successfully removes the last remaining _fstat from the debug target.

HOWEVER, _stat and _fstat are still present in the --release target.

Very strange. --release is actually pulling in more syscalls than the debug target. My current theory is that rustc is pulling in those from the System framework during release builds with -lSystem.

If I run nm on the resulting network extension binary, we can see that's where they're from. This would make sense, System contains the libc headers presumably.

(undefined) external _stat (from libSystem)
(undefined) external _fstat (from libSystem)

from firezone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.