Add support for local user TCC.db without requiring sudo privileges#78
Merged
jacobsalmela merged 4 commits intomainfrom Oct 3, 2025
Merged
Conversation
Co-authored-by: jacobsalmela <3843505+jacobsalmela@users.noreply.github.com>
Co-authored-by: jacobsalmela <3843505+jacobsalmela@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Uesr mod TCC.db
Add support for local user TCC.db without requiring sudo privileges
Oct 2, 2025
jacobsalmela
requested changes
Oct 3, 2025
Owner
There was a problem hiding this comment.
@copilot Please also bump the version to 1.5.1 on line 28
jacobsalmela
requested changes
Oct 3, 2025
Owner
jacobsalmela
left a comment
There was a problem hiding this comment.
@copilot Please also bump the version to 1.5.1 on line 28 in tccutil.py
Co-authored-by: jacobsalmela <3843505+jacobsalmela@users.noreply.github.com>
jacobsalmela
approved these changes
Oct 3, 2025
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for local user TCC.db without requiring sudo
Completed:
sudo_required()function to check if accessing local vs global TCC.dbChanges Made:
Code Changes (tccutil.py):
using_local_dbglobal variable to track when accessing user-specific databasesudo_required()function to skip sudo check whenusing_local_dbis TrueDocumentation Changes (README.md):
/Library/Application Support/com.apple.TCC/TCC.db(requires sudo)~/Library/Application Support/com.apple.TCC/TCC.db(no sudo needed)Project Changes:
Key Improvements:
--userflag for local database accessOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.