So, I need to get a right that is requested by a client in a plug-in.
Usually, I can get a right by calling 'GetHintValue' callback function with 'authorize-right'.
However, sometimes there is no 'authorize-right' in hints.(calling AuthorizationCopyRights with flags kAuthorizationFlagDefaults | kAuthorizationFlagExtendRights [without kAuthorizationFlagInteractionAllowed])
logs for SecurityAgentHelper
Code Block With hints: { "client-path" = "name: ... "client-pid" = "name: ... "client-type" = "name: ... "client-uid" = "name: ... "creator-audit-token" = "name: ... "creator-pid" = "name: ... reason = "name: ... tries = "name: ... }
I Also tested 'GetArguments' callback function, but it always returns errAuthorizationInternal.
Is there any way to get a right in a plug-in?
Please verify this issue with macOS Big Sur 11.2 Beta 1 and update your bug report with your results by logging into https://feedbackassistant.apple.com/ or by using the Feedback Assistant app.
I have tested it, and the plug-in can get an 'authorize-right'.
They asked me to test in macOS Big Sir 11.2 Beta, but this issue is also resolved in macOS 11.1.
Thank you for your support
PS, I found that the aa(Authentication and authorization) events in openBSM could be a workaround in macOS Catalina.