Many Mac users have reported an enigmatic error which comes out of the blue. It can come using apps on Mac, after logging in or logging out etc. The error message says “Unapproved caller, SecurityAgent may only be invoked by Apple software”. It is but natural to freak out on this error message because it talks about some secure agent, unapproved caller—a clear indication that this has to do with the security of your system. But you can fix Unapproved caller. SecurityAgent may only be invoked by Apple software error in Mac without worrying about anything as it is a common error.
The error comes when the processes and cache in your Mac collide i.e. the system scheduler gets confused and thinks that the system calls nad RPC are coming from unapproved places.
The best way to fix Unapproved caller. SecurityAgent may only be invoked by Apple software is to run your Mac in the Safe mode.
Once you boot your system in Safe mode and then boot it in the normal mode, this error will fade away as the system will get time to fix things and maintain the order.
Restart your Mac and keep pressing the SHIFT key and hold it during the reboot process to let the system boot in the safe mode.
Once the Mac is booted completely in the safe mode, go to Apple Menu and restart the Mac. By now, the system would have dumped the cache so it’s safe to reboot in the normal mode.
The other way to fix the unapproved caller error in Mac is to empty the contents of /var/folders/. But this option should only be used if you have the complete backup of the system. Also, you should not delete the random files if you don’t have the backup because a single file delete from here could corrupt the system and remove the OS X.
Let us know in the comments which fix worked for you. This was how to “Unapproved caller. SecurityAgent may only be invoked by Apple software”.