Skip to content

Execsnoop not working on Mac OS X #104

@retpoline

Description

@retpoline

Not able to get execsnoop to work on OS X even after disabling SIP.

$ sw_vers
ProductName:	Mac OS X
ProductVersion: 10.15.7

$ csrutil status
System Integrity Protection status: disabled.

bash-3.2# ./execsnoop
Tracing exec()s. Ctrl-C to end.
./execsnoop: line 160: cd: /sys/kernel/debug/tracing: No such file or directory
ERROR: accessing tracing. Root user? Kernel has FTRACE?
    debugfs mounted? (mount -t debugfs debugfs /sys/kernel/debug)

Is there a workaround or config that enables tracing on Mac?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions