How to trace a program from its very beginning without running it as root

前端 未结 7 1560
我在风中等你
我在风中等你 2021-02-04 09:44

I\'m writing a tool that calls through to DTrace to trace the program that the user specifies.

If my tool uses dtrace -c to run the program as a subprocess of DTrace, no

7条回答
  •  闹比i
    闹比i (楼主)
    2021-02-04 10:10

    Something like sudo dtruss -f sudo -u has worked for me, but I felt bad about it afterwards.

    I filed a Radar bug about it and had it closed as a duplicate of #5108629.

提交回复
热议问题