Skip to content

Commit

Permalink
fix(digest): Trusts f773496775 access table digest
Browse files Browse the repository at this point in the history
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: #70
  • Loading branch information
C-Duv authored Jul 25, 2024
1 parent 20c8a11 commit 17ef173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tccutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def open_database(digest=False):
accessTableDigest in ["3d1c2a0e97", "cef70648de"]) or
# Sonoma
(osx_version >= version('14.0') and
accessTableDigest in ["34abf99d20", "e3a2181c14"])
accessTableDigest in ["34abf99d20", "e3a2181c14", "f773496775"])
):
print(f"TCC Database structure is unknown ({accessTableDigest})", file=sys.stderr)
sys.exit(1)
Expand Down

0 comments on commit 17ef173

Please sign in to comment.