It appears that the headers for Trusted BSD have been removed in High Sierra/Xcode 9 and up.
Is there a replacement technology which we can use similar to mac_policy_register and mac_policy_unregister?
It appears that the headers for Trusted BSD have been removed in High Sierra/Xcode 9 and up.
Indeed. The kernel MAC framework has never been a supported KPI, something I documented in QA1574 Kernel's MAC framework. In the 10.13 SDK we finally got around to changing the headers (r. 5645458)) to reflect that reality.
btw In future you can check whether a KPI is supported or not using the process described in QA1575 Supported KPIs.
Is there a replacement technology which we can use similar to
andmac_policy_register?mac_policy_unregister
Probably not )-: What are you doing in your MAC policy?
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"