V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
aibangjuxin
V2EX  ›  macOS

有删除 xpcproxy 经验的么?分享下

  •  
  •   aibangjuxin · 2020-12-27 12:58:03 +08:00 · 3151 次点击
    这是一个创建于 1215 天前的主题,其中的信息可能已经有所发展或是发生改变。
    macOS 开机的时候,通过 iStat 看到 xpcproxy 进程占用很大的 CPU,风扇狂转,然后等过一会就 OK 。同时去终端查看关键进程,并没有发现有这个进程存在。发现在 /usr/libexec 目录下有 xpcproxy 和 xpcroleaccountd 两个名称相关的文件。想要将 xpcproxy 删除掉。关掉 SIP 的情况下。还是提示只读。这个要怎么强制删除?
    ➜ / csrutil status
    System Integrity Protection status: disabled.
    5 条回复    2020-12-27 16:08:08 +08:00
    aibangjuxin
        1
    aibangjuxin  
    OP
       2020-12-27 12:59:14 +08:00
    mount_apfs: volume could not be mounted: Permission denied
    mount: / failed with 66
    aibangjuxin
        2
    aibangjuxin  
    OP
       2020-12-27 13:12:56 +08:00
    麻烦各位看下你们是否也有这个文件?难道是安装 Proxifier 带来的?
    hguandl
        3
    hguandl  
       2020-12-27 13:50:49 +08:00
    这个应该是个系统应用,manual 里是这样写的:

    ```
    xpcproxy(8) BSD System Manager's Manual xpcproxy(8)

    NAME
    xpcproxy -- configures the execution environment for XPC services.

    DESCRIPTION
    xpcproxy xpcproxy is an exec(3) trampoline that configures the environment for an XPC
    service's execution. This command is not intended to be invoked directly.

    SEE ALSO
    xpc(3)

    Darwin 21 Aug, 2012 Darwin
    ```

    如果 CPU 占用高可能是有什么 app 在疯狂调用这个 API 。要解决问题应该要找出问题应用而不是删除这个系统程序。

    此外如果怀疑这个程序有问题可以检查一下它的签名:

    codesign -vv /usr/libexec/xpcproxy
    codesign -dv /usr/libexec/xpcproxy
    aibangjuxin
        4
    aibangjuxin  
    OP
       2020-12-27 15:11:41 +08:00 via iPhone
    @hguandl 我也看了下日期确实系统级别的。应该是你说的有应该在调用这个,就是无法确认是怎么调用用的。
    aibangjuxin
        5
    aibangjuxin  
    OP
       2020-12-27 16:08:08 +08:00
    我将开机启动项目做到最精简之后,应该是 OK 了,也没有排查出是哪个应用占用的。不过可以确实的一点是。正如 @hguandl 所说。解决问题不是直接删除系统程序哈,其实再想删除之前,我也想过删除前备份下。但忽略了一点去 man 下这个玩意,感谢 🙏。倒是大概检索了下,很多都说是病毒什么。就想着直接干掉。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3619 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 04:26 · PVG 12:26 · LAX 21:26 · JFK 00:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.