From 753142839f9fd020d0562ac55d3e350f47fa9582 Mon Sep 17 00:00:00 2001 From: Tim Phan Date: Wed, 22 Dec 2021 11:26:13 +0100 Subject: [PATCH] spctl: add page (#7565) --- pages/osx/spctl.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/osx/spctl.md diff --git a/pages/osx/spctl.md b/pages/osx/spctl.md new file mode 100644 index 0000000000..8dc00c4738 --- /dev/null +++ b/pages/osx/spctl.md @@ -0,0 +1,21 @@ +# spctl + +> Manage the security assessment policy subsystem. +> Utility for managing Gatekeeper in macOS. +> More information: . + +- Turn off Gatekeeper: + +`spctl --master-disable` + +- Add a rule to allow an application to run (labeling of rule is optional): + +`spctl --add --label "{{rule_name}}" {{path/to/file}}` + +- Turn on Gatekeeper: + +`spctl --master-enable` + +- List all rules on the system: + +`spctl --list`