From 17ef173d6d4fdb66a6b707fa0a2dafe0ae8480ac Mon Sep 17 00:00:00 2001 From: Duvergier Claude <1466273+C-Duv@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:24:36 +0200 Subject: [PATCH] fix(digest): Trusts f773496775 access table digest 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 --- tccutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccutil.py b/tccutil.py index c19601c..6e0212e 100755 --- a/tccutil.py +++ b/tccutil.py @@ -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)