Kextutil/kextload not returning user not approved info when trying load Kext on Mac OS Big Sur beta

Hello,

When trying to load our Audio kext, kextutil or kextload are not returning the user not approved error when trying to load the kexts. It doesn't return any error but kexts are not loaded.

On prior versions of OS (starting 10.13), they returned error 27, when trying to load the kext .
https://developer.apple.com/library/content/technotes/tn2459/_index.html

We try to check for the error code and then instruct user through our own prompt with instructions on how to "Allow". Now since it is not returning any error, we are not able to capture this case.

Any inputs here on how to get the error /status that kext needs user approval from these kext loading commands.
kmutil load is also not returning any error to indicate that it needs user approval.
I ran into a similar problem. When using KextManagerLoadKextWithURL API, no error is returned on MacOS 11. On prior versions of MacOS, kOSKextReturnSystemPolicy would be returned. I believe KextManagerLoadKextWithURL API is used by both kextload and kextutil.

Is there a new, programmatic way to determine if loading of a kext succeeded?

Any help would be greatly appreciated.
Kextutil/kextload not returning user not approved info when trying load Kext on Mac OS Big Sur beta
 
 
Q