{"id":5407,"date":"2023-03-21T00:33:56","date_gmt":"2023-03-20T16:33:56","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=5407"},"modified":"2023-03-11T23:14:19","modified_gmt":"2023-03-11T15:14:19","slug":"macos%e5%ae%89%e5%85%a8%e6%80%a7%e4%b9%8b%e8%bd%af%e4%bb%b6%e5%ae%89%e8%a3%85%e7%9a%84%e9%99%90%e5%88%b6","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/5407.html","title":{"rendered":"macOS\u5b89\u5168\u6027\u4e4b\u8f6f\u4ef6\u5b89\u88c5\u7684\u9650\u5236"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u7b80\u5355\u6574\u7406\u4e00\u4e0b\u524d\u6bb5\u65f6\u95f4\u78b0\u5230\u7684\u51e0\u4e2a\u5c0f\u95ee\u9898\uff0c\u65b9\u4fbf\u540e\u9762\u6709\u9700\u8981\u7684\u65f6\u5019\u53c2\u8003\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<p>\u5148\u8bb0\u5f55\u4e00\u4e0b\u5b89\u88c5pkg\u5305\u5931\u8d25\u76842\u79cd\u539f\u56e0\u53ca\u89e3\u51b3\u529e\u6cd5\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u5b89\u88c5pkg\u5305\u62a5\u9519\uff1a\u5b89\u88c5\u5931\u8d25<\/h5>\n\n\n\n<p>\u62a5\u9519\u4fe1\u606f\uff1a<br>\u201c\u5b89\u88c5\u5668\u9047\u5230\u4e86\u4e00\u4e2a\u9519\u8bef\uff0c\u5bfc\u81f4\u5b89\u88c5\u5931\u8d25\u3002\u8bf7\u8054\u7cfb\u8f6f\u4ef6\u751f\u4ea7\u4f01\u4e1a\u4ee5\u83b7\u5f97\u5e2e\u52a9\u201d<\/p>\n\n\n\n<p>\u53ef\u80fd\u539f\u56e01\uff1a\u5f53\u524d\u5b89\u5168\u8bbe\u7f6e\u4e0d\u5141\u8bb8\u975eappstore\u548c\u88ab\u8ba4\u53ef\u7684\u5f00\u53d1\u8005\u7684\u5e94\u7528\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n# macOS Ventura \u4e4b\u524d\u7684\u7cfb\u7edf\n\u5728\u3010\u7cfb\u7edf\u504f\u597d\u8bbe\u7f6e\u3011-\u3010\u5b89\u5168\u6027\u4e0e\u9690\u79c1\u3011-\u3010\u901a\u7528\u3011-\u3010\u5141\u8bb8\u4ece\u4ee5\u4e0b\u4f4d\u7f6e\u4e0b\u8f7d\u7684\u5e94\u7528\u3011\u4e2d\u9009\u62e9\u300c\u4efb\u4f55\u6765\u6e90\u300d\uff0c\u7136\u540e\u518d\u5b89\u88c5\u3002\u5982\u679c\u4f9d\u7136\u5b89\u88c5\u5931\u8d25\u53ef\u4ee5\u91cd\u542f\u7535\u8111\u540e\u518d\u8bd5\u4e00\u6b21\u3002\n\n# macOS Ventura \u53ca\u4e4b\u540e\u7684\u7cfb\u7edf\n\u7cfb\u7edf\u8bbe\u7f6e-\u9690\u79c1\u4e0e\u5b89\u5168\u6027-\u5b89\u5168\u6027-\u5141\u8bb8\u4ece\u4ee5\u4e0b\u4f4d\u7f6e\u4e0b\u8f7d\u7684\u5e94\u7528\u7a0b\u5e8f\uff08\u53ea\u6709\u3010App Store\u3011\u548c\u3010App Store\u548c\u88ab\u8ba4\u53ef\u7684\u5f00\u53d1\u8005\u3011\u8fd92\u4e2a\u9009\u9879\uff09\uff0c\u9700\u8981\u7528\u4e0b\u9762\u7684disable\u547d\u4ee4\u5f00\u542f\u3010\u4efb\u4f55\u6765\u6e90\u3011\u7684\u9009\u9879\n\n$ spctl --status\nassessments enabled #app store\u548c\u88ab\u8ba4\u53ef\u7684\u5f00\u53d1\u8005\n\n$ sudo spctl --master-disable\n\n$ spctl --status\nassessments disabled #\u4efb\u4f55\u6765\u6e90\n\n$ man spctl\n...\nEXAMPLES\n     To check whether Mail.app is allowed to run on the local system:\n           spctl -a \/Applications\/Mail.app\n\n     To allow Frobozz.app to run on the local system:\n           spctl --add --label \"My Stuff\" \/Applications\/Frobozz.app\n\n     To forbid all code obtained from the Mac App Store from running:\n           spctl --disable --label \"Mac App Store\"\n...\n\n$ spctl kext-consent status\n$ spctl kext-consent list\nAllowed Team Identifiers:\n99U9VSN546\n\n$ sudo sqlite3 \/var\/db\/SystemPolicyConfiguration\/KextPolicy\nsqlite> SELECT * FROM kext_policy;<\/code><\/pre>\n\n\n\n<p>\u53ef\u80fd\u539f\u56e02\uff1a\u3010\u5b89\u88c5\u5668\u3011\u6ca1\u6709\u201c\u4e0b\u8f7d\u201d\u6587\u4ef6\u5939\u7684\u6743\u9650<\/p>\n\n\n\n<p>\u4e00\u822c\u662f\u5f53\u524d\u6700\u65b0\u7684 macOS Ventura 13.x \u7cfb\u7edf\u4f1a\u51fa\u73b0\u8fd9\u4e2a\u60c5\u51b5\uff0c\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u5728\uff1a<br><code>\u7cfb\u7edf\u8bbe\u7f6e-\u9690\u79c1\u4e0e\u5b89\u5168\u6027-\u5b8c\u5168\u78c1\u76d8\u8bbf\u95ee\u6743\u9650<\/code><br>\u8fd9\u91cc\u7ed9\u3010\u5b89\u88c5\u5668\u3011\u5f00\u542f\u76f8\u5e94\u6743\u9650\u5373\u53ef\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<p>Getting the Team ID of kernel extensions in macOS 10.13 (and higher?)<br><a href=\"https:\/\/technology.siprep.org\/getting-the-team-id-of-kernel-extensions-in-macos-10-13-and-higher\/\">https:\/\/technology.siprep.org\/getting-the-team-id-of-kernel-extensions-in-macos-10-13-and-higher\/<\/a><\/p>\n\n\n\n<p>Mac\u5b89\u88c5pkg\u5305\u62a5\u9519\uff1a\u5b89\u88c5\u5931\u8d25 \u201c\u5b89\u88c5\u5668\u9047\u5230\u4e86\u4e00\u4e2a\u9519\u8bef\uff0c\u5bfc\u81f4\u5b89\u88c5\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u8f6f\u4ef6\u5236\u9020\u5546\u4ee5\u83b7\u5f97\u5e2e\u52a9<br><a href=\"https:\/\/blog.csdn.net\/magic_jiayu\/article\/details\/105939865\">https:\/\/blog.csdn.net\/magic_jiayu\/article\/details\/105939865<\/a><\/p>\n\n\n\n<p>Mac\u5b89\u88c5\u8f6f\u4ef6\u65f6\u63d0\u793a\u5df2\u635f\u574f\u7684\u89e3\u51b3\u65b9\u6cd5<br><a href=\"https:\/\/www.jianshu.com\/p\/af740a944d25\">https:\/\/www.jianshu.com\/p\/af740a944d25<\/a><\/p>\n\n\n\n<p>Mac OS\u4f7f\u7528SSL\u5e38\u89c1\u95ee\u9898<br><a href=\"https:\/\/bbs.sangfor.com.cn\/forum.php?mod=viewthread&amp;tid=38040\">https:\/\/bbs.sangfor.com.cn\/forum.php?mod=viewthread&amp;tid=38040<\/a><\/p>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u7b80\u5355\u6574\u7406\u4e00\u4e0b\u524d\u6bb5\u65f6\u95f4\u78b0\u5230\u7684\u51e0\u4e2a\u5c0f\u95ee\u9898\uff0c\u65b9\u4fbf\u540e\u9762\u6709\u9700\u8981\u7684\u65f6\u5019\u53c2\u8003\u3002 \u6b63\u6587\uff1a \u53c2\u8003\u89e3\u7b54\uff1a  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,560],"tags":[1780,1815,1919,1914],"class_list":["post-5407","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-mac","tag-macos","tag-pkg","tag-spctl","tag-1914"],"views":6019,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=5407"}],"version-history":[{"count":2,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5407\/revisions"}],"predecessor-version":[{"id":5409,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/5407\/revisions\/5409"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=5407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=5407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=5407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}