AuthorizationRightSet called from an endpoint security extension fails with -60008

The Mac has managed profiles installed giving the endpoint security process full disk access.
Most Macs do not get this error and AuthorizationRightSet works properly.
However, one Mac gets the -60008 error and I can't determine the cause.

Should an endpoint security extension be able to call AuthorizationRightSet?

Error -60008 is errAuthorizationInternal, which isn’t very helpful.

Written by pnelson in 857900021

Should an endpoint security extension be able to call AuthorizationRightSet?

I don’t see any reason why not, and the fact that this works on the majority of machines suggest that there’s something environmental in play.

My general approach for investigating a problem like this is:

  1. Add a log point before and after the problematic call.
  2. Reproduce the problem.
  3. Then immediately capture a system log snapshot.
  4. Transfer that from the problematic machine to your standard work machine.
  5. Open that snapshot and locate your before and after log entries.
  6. Look at the log entries between that to see if there’s anything of interest.

See Your Friend the System Log for lots of the specifics.

Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"