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

搞安全的高手请指点: El Capitan 下面 codesign 报告 Python 进程验证出错。但是 Ruby、Perl 正常

  •  
  •   Radeon · 2015-10-26 13:22:00 +08:00 · 1978 次点击
    这是一个创建于 3107 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我习惯性用一个脚本驱动 codesign 检查进程的执行文件是否都是被签名过的,但是我发现在 El Capitan 下有问题

    $ codesign -v `which python`
    

    一切正常

    $ which python
    /usr/bin/python
    

    正常

    $ python # 起一个不会自动退出的 python REPL 进程
    $ ps ax | grep python
    

    取得 python REPL 进程 id ,比如是 555

    $ codesign -v 555
    555: code object is not signed at all
    

    为什么!!

    如果用 perl 、 ruby REPL 进程取代 python ,一切正常。换到 Yosemite 下,包括 python 也是一切正常

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4959 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 09:47 · PVG 17:47 · LAX 02:47 · JFK 05:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.