-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
tccutil on BigSur #21
Comments
Hi @ccievoiceoks ! Oh, you mean this section: Lines 34 to 94 in 770a61f
No I did not. I can confirm disabling SIP doesn't seem to be enough. I can't remember were I read that "AMFI" need to be disabled too. Even |
But maybe Which should work as I do exactly that in my pre-installation steps: Maybe it was qualified as a bug by Apple and fixed in subsequent Big Sur releases... |
Thanks for the reply , no it is not working even the rights are given to the Terminal since the beginning . Here it is an example to add Alfred4 to have a full access to the Disk See as ref for Catalina --> OS Query |
Thanks @ccievoiceoks for your detailed investigation! I still have a hard time understanding why your So it should have the same effect... 🤔 |
ok I think that I understand why it is not working in the python script and well with the sudo command . Apparently on Big Sur , the hash for the table on my laptop is 3d1c2a0e97 Just curious if you can check yours with the following portion of the code import sqlite3
import hashlib
from platform import mac_ver
from distutils.version import StrictVersion as version
# Current OS X version
osx_version = version(mac_ver()[0])
print(osx_version)
# Database Path
tcc_db = '/Library/Application Support/com.apple.TCC/TCC.db'
conn = sqlite3.connect(tcc_db)
c = conn.cursor()
# Do a sanity check that TCC access table has expected structure
c.execute("SELECT sql FROM sqlite_master WHERE name='access' and type='table'")
accessTableDigest = ""
for row in c.fetchall():
accessTableDigest = hashlib.sha1(row[0].encode('utf-8')).hexdigest()[0:10]
print (accessTableDigest)
break
if not (accessTableDigest == "8e93d38f7c" or (osx_version >= version('11.0') and accessTableDigest in ["3d1c2a0e97"])):
print("\nTCC Database structure is unknow")
else:
print("\nTCC Database recognized") After that point, it is a matter to see the SQL request as it seems that it is not the same expression as before |
Great debugging here @ccievoiceoks ! Here the result of your script:
As you can see, same hash here! I guess the next step now is to send a PR to the https://github.com/jacobsalmela/tccutil project? |
Oh, and notice how my macOS version is reported as 10.16 as it is an Intel-based MacBook. |
Yes , I will now open a PR to incorporate these findings |
When I was trying to edit my changes , I saw that someone did this also 10 hours ago ... |
Ahah yes! Just found out jacobsalmela/tccutil#41 ! This doesn't discount your fantastic work @ccievoiceoks ! 😃👍 |
I know that feel :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi ,
Just a simple question , I have tried your tips about the use of tccutils with SIP disabled but it seems to not work correctly
Have you succeeded to make it work ?
Many thanks
Olivier
The text was updated successfully, but these errors were encountered: