Files
tldr/pages.zh/osx/spctl.md

21 lines
446 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# spctl
> 管理安全评估策略子系统。
> 用于管理 macOS 中的 Gatekeeper。
> 更多信息:<https://keith.github.io/xcode-man-pages/spctl.8.html>。
- 关闭 Gatekeeper
`spctl --master-disable`
- 添加规则以允许应用程序运行(规则标签是可选的):
`spctl --add --label {{rule_name}} {{path/to/file}}`
- 打开 Gatekeeper
`spctl --master-enable`
- 列出系统上的所有规则:
`spctl --list`