cfnetworking

Mount approval callback on mac OS X

痞子三分冷 提交于 2019-12-24 04:21:57
问题 I want to Authorize USB/CD on Mac OS X. Now i am using DiskArbitration framework to get MountApprovalCallback in user mode. But the problem with this callback is that there is no assurance of it. And if i'll get callback i am using CFUserNotificationReceiveResponse() to accept password from user. But when prompt is shown at the same time user can open DiskUtility and can mount a device So, Is there any other way to get mount approval callback or to authorize a device? How i can handle it in

Mount approval callback on mac OS X

混江龙づ霸主 提交于 2019-12-24 04:21:37
问题 I want to Authorize USB/CD on Mac OS X. Now i am using DiskArbitration framework to get MountApprovalCallback in user mode. But the problem with this callback is that there is no assurance of it. And if i'll get callback i am using CFUserNotificationReceiveResponse() to accept password from user. But when prompt is shown at the same time user can open DiskUtility and can mount a device So, Is there any other way to get mount approval callback or to authorize a device? How i can handle it in