Information
Gatekeeper _MUST_ be configured with a configuration profile to prevent normal users from overriding its settings.
If users are allowed to disable Gatekeeper or set it to a less restrictive setting, malware could be introduced into the system.
Solution
To implement the prescribed state with a Configuration Profile, create a configuration profile (com.apple.systempolicy.managed) with the following key DisableOverride set to true
[source,xml]
----
<key>DisableOverride</key>
<true/>
----
NOTE - This will apply to the whole system
mobileconfig profile info:
com.apple.systempolicy.managed:
DisableOverride:
True