privacy_services_manager icon indicating copy to clipboard operation
privacy_services_manager copied to clipboard

OperationalError: attempt to write a readonly database after the latest OSX 10.12 update (Beta)

Open ikorin opened this issue 8 years ago • 4 comments

privacy_services_manager.py add accessibility /Applications/myApp.app INFO: ################################################################################ Privacy Services Manager, version 1.6.10

service:  accessibility
action:   add
app(s):   ['/Applications/myApp.app']
user:     N/A
template: False
language: N/A

INFO: Set to modify global permissions for all users at '/Library/Application Support/com.apple.TCC/TCC.db'. INFO: Inserting 'com.myApp.myApp' in service 'accessibility'... ERROR: OperationalError: attempt to write a readonly database

ikorin avatar Sep 06 '16 20:09 ikorin

Hello Igor:

Sorry for the late response, thanks for the email. We will investigate the issue and get back to you on status.

On Sep 6, 2016, at 2:22 PM, Igor Korin [email protected] wrote:

privacy_services_manager.py add accessibility /Applications/myApp.app INFO: ################################################################################ Privacy Services Manager, version 1.6.10

service: accessibility action: add app(s): ['/Applications/myApp.app'] user: N/A template: False language: N/A

INFO: Set to modify global permissions for all users at '/Library/Application Support/com.apple.TCC/TCC.db'. INFO: Inserting 'com.myApp.myApp' in service 'accessibility'... ERROR: OperationalError: attempt to write a readonly database

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Thanks:

Richard Glaser University of Utah, Marriott Library ITS [email protected]

uurazzle avatar Sep 16 '16 06:09 uurazzle

Has a fix for this been found?

sousaphonic avatar Nov 03 '17 18:11 sousaphonic

Not necessarily a fix, so much as a work-around: Since macOS 10.12, /Library/Application Support/com.apple.TCC/TCC.db is protected by SIP, so no modifications can be made to the file using privacy_services_manger unless 1 of 2 things occur:

  1. Disable SIP
  2. Boot to the Recovery Partition and run rm -rf /Volumes/Macintosh\ HD/Library/Application\ Support/com.apple.TCC

After performing one of these 2 steps, privacy_services_manager.py will continue to work normally (although if you follow step 2, it will be reverted back to SIP protection after an OS upgrade)

I've been trying to get some documentation in place as well as a workflow that will make this more explicit, but other tasks have stalled my progress on this.

SamBaRufus avatar Nov 03 '17 21:11 SamBaRufus

Ok yeah that makes sense. Thanks for the reply! That’s frustrating for sure but helps us move forward. Thanks again!

  • Phil

On Nov 3, 2017, at 4:48 PM, Sam Forester [email protected] wrote:

Not necessarily a fix, so much as a work-around: Since macOS 10.12, /Library/Application Support/com.apple.TCC/TCC.db is protected by SIP, so no modifications can be made to the file using privacy_services_manger unless 1 of 2 things occur:

Disable SIP Boot to the Recovery Partition and run rm -rf /Volumes/Macintosh\ HD/Library/Application\ Support/com.apple.TCC After performing one of these 2 steps, privacy_services_manager.py will continue to work normally (although if you follow step 2, it will be reverted back to SIP protection after an OS upgrade)

I've been trying to get some documentation in place as well as a workflow that will make this more explicit, but other tasks have stalled my progress on this.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/univ-of-utah-marriott-library-apple/privacy_services_manager/issues/48#issuecomment-341835531, or mute the thread https://github.com/notifications/unsubscribe-auth/Af0AD4IwIJ7j7niYzJIcIFj6nOsCi-QJks5sy4oSgaJpZM4J2Pim.

sousaphonic avatar Nov 03 '17 21:11 sousaphonic