【macOS】SIP开启与关闭

版权声明:随意转载,需注明出处。by think_ycx https://blog.csdn.net/think_ycx/article/details/84960888

当使用proxychains代理macOS的curl或者lldb调试macOS 应用时常会遇到SIP的问题。关于SIP的比较好的介绍可以参考这里:https://www.zhihu.com/question/40239893   SIP官方文档参考这里:https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/

了解了是什么时候,可以考虑临时关闭。

检查SIP的状态:

$ csrutil status
System Integrity Protection status: enabled.

开启或者关闭SIP:

开机按住Command+R键,进入恢复模式。
进入后打开 实用工具-终端。
输入命令csrutil disable关闭。
如需要打开,同样的步骤输入命令csrutil enable

参考:
https://www.zhihu.com/question/40239893
https://www.jianshu.com/p/2c109051fc67

猜你喜欢

转载自blog.csdn.net/think_ycx/article/details/84960888
sip
今日推荐