Comments:"how to fix the sandboxd mdworker deny mach-lookup com.apple.ls.boxd error"
URL:http://www.princeton.edu/~jcjb/docs/osx_error_fix/
Fixing sandboxd: mdworker deny mach-lookup com.apple.ls.boxd error in OSX 10.8.2 (and other versions)
I recently experienced this problem and besides filling your console logs with garbage, it seems to slow down Time Machine to the point where it is useless. It seems to be related to Spotlight and is in some way related to an update that Apple pushed out.
Here's how I fixed it:
Restart your computer in safe mode (read that link for more info about what it will do.) This is done by restarting as normal from the Apple menu, then holding down shift after you hear the Apple noise on startup. Note, you must wait to hold down shift until after the Apple noise has started. As proof that you're loading into safe mode, you'll see a little progress bar beneath the Apple and you'll have to wait a while. Once the wait is over, you can log into OSX, but since you're still in safe mode you'll want to restart again, this time without holding shift. Log in again, check your Console -- if this worked, the error should be gone.If this solves your problem, please comment below and let me know it worked. Thanks!
You can completely fix all the mdworker related sandbox errors in Console (including the 'cannot talk to lsboxd') by editing the system.sb profile rather than the mdworker ones. The system.sb file is used by all Apple system processes that run under the sandbox, including mdworker. If you modify this file (which is located in /System/Library/Sandbox/Profiles) to include:
(allow mach-lookup (global-name "com.apple.ls.boxd"))
(allow mach-lookup (local-name "com.apple.ls.boxd"))
This will stop all the lsbox related mdworker issues.
I must warn however that modifying this file is potentially dangerous if you're not really sure what you're doing. Take a backup of it just in case. And only add the lines above, do not modify anything else.