Navigation

Subscribe

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!

Hackintosh error with Sandbox and Addressbook

Recently I installed OS X on my PC (Hackintosh) reviewing the boot log looking for errors I found a problem with Addressbook, and it happens only on Hackintosh as you can see in these links:
https://discussions.apple.com/thread/7377376
https://discussions.apple.com/thread/7372295

This is the error

kernel[0]: Sandbox: com.apple.Addres(XXXXX) deny(1) network-outbound /private/var/run/mDNSResponder  
com.apple.AddressBook.InternetAccountsBridge[XXXXX]: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1  
com.apple.AddressBook.InternetAccountsBridge[XXXXX]: dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:4 Err:-1 Errno:1 Operation not permitted  

We can solve the problem following this guide:https://gist.github.com/mems/57a34fcf89441ae96b0d

The steps to fix the error, following the guide are these:

1- Disable SIP:

2- Edit the file /System/Library/Sandbox/Profiles/application.sb and in the line that has this text "com.apple.security.print" remove the last parenthesis and add the code "com.apple.AddressBook.InternetAccountsBridge")):

 (unless
  (or (entitlement "com.apple.security.network.client")
      (entitlement "com.apple.security.network.server")
      (entitlement "com.apple.security.print"))
  (deny network-outbound (literal "/private/var/run/mDNSResponder")))

This is the code modified:

(unless
  (or (entitlement "com.apple.security.network.client")
      (entitlement "com.apple.security.network.server")
      (entitlement "com.apple.security.print")
      (equal? (param "application_bundle_id") "com.apple.AddressBook.InternetAccountsBridge"))
  (deny network-outbound (literal "/private/var/run/mDNSResponder")))

3- Delete the file: /Users/user/Library/Containers/com.apple.AddressBook.InternetAccountsBridge

Note: reemplace user with your user name.

4- Reboot.

Comments: