Giter VIP home page Giter VIP logo

Comments (6)

sjlleo avatar sjlleo commented on June 7, 2024

Hi kdurov,

感谢您的反馈,这确实是一个权限验证逻辑上的 Bug
现在应该没问题了,请下载最新版本 v0.2.4-1 试试

不过我手里的测试样本可能不足以证明能在所有的环境中都能正常工作,也请您帮忙验证一下。

Thanks!

Best Regards,
Leo

from ntrace-core.

sjlleo avatar sjlleo commented on June 7, 2024

如无其他问题,此 issue 将被关闭,如果仍有疑问请另提新 issue

from ntrace-core.

kdurov avatar kdurov commented on June 7, 2024

谢谢。
刚测试本地环境无问题。

from ntrace-core.

kdurov avatar kdurov commented on June 7, 2024

macOS 下没有 setcap。
想请教下有什么别的办法能在 macOS 普通用户下执行么?

from ntrace-core.

sjlleo avatar sjlleo commented on June 7, 2024

对于 macOS (Darwin) 来说,权限设计是更为严格的。可惜目前 macOS 并没有能够达到 setcap 相似功能的指令集,NextTrace 的 net_raw (原始包监听)是必要的一个权限,对于 Go 开发的路由跟踪,可能目前没有很好的办法去避免(除非使用 syscall,但是 syscall 也会涉及到 root 权限的需要)。

网上也有很多关于这方面的讨论,目前对于 macOS 来说,只能通过 sudo 或者以 root 用户运行。
这些内容可能对你有所帮助:

  1. https://news.ycombinator.com/item?id=14168124
  2. https://unix.stackexchange.com/questions/271819/enable-linux-capabilities-on-macos

Thanks.

from ntrace-core.

kdurov avatar kdurov commented on June 7, 2024

感谢指教。

看来只能通过 alias 配合 visudo 简化命令了。

from ntrace-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.