find macOS service ‘s plist file.
*.plist file and use
grep to find target service, not the best way.
./procexp.universal all ports | service_name
this way is more complex than others, thx to brightiup :)
write a simple gadget, core logic as follow:
bootstrap_look_up(bs_port, render_service_name, &p);
get the pid of your gadget
sudo lsmp -p pid
now, you can get the service name according to mach port, then find the plist file by service name you found.