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

f773496775 access table structure's digest should be trusted #72

Conversation

C-Duv
Copy link
Contributor

@C-Duv C-Duv commented Jul 25, 2024

This PR aims to fix #70 by adding f773496775 to the list of macOS 14 trusted access table structure's digests because it's a simple variation of an already trusted one.

The SELECT sql FROM sqlite_master WHERE name='access' and type='table' was producing the almost-same SQL:

  • Non working (unknown): CREATE TABLE access (…
  • Working (trusted): CREATE TABLE "access" (…

Note: This is a "simple" fix. A better one would be to lint obtained SQL in a common format.

Feel free to comment with more information.

On some setups (in my case macOS v14.4.1 (build 23E224) and macOS v14.2.1 (build 23C71) with Intel CPU) the computed digest on the access table's structure was not part of the expected macOS 14.x digests.

By comparing working and non-working output of `SELECT sql FROM sqlite_master WHERE name='access' and type='table'` I've discovered the only difference is cosmetic: a double-quote around access in the `CREATE TABLE` part (got `CREATE TABLE "access"` where `CREATE TABLE access` would have been accepted

Before a possible better fix to handle such small syntax changes, this commit adds f773496775 to the list of trusted digests.

Issue: jacobsalmela#70
@jacobsalmela jacobsalmela merged commit 7d03385 into jacobsalmela:main Jul 26, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error "TCC Database structure is unknown (f773496775)" on macOS 14.2.1 Intel
2 participants