Re: cups
Re: cups
- Subject: Re: cups
- From: nawcom <email@hidden>
- Date: Wed, 20 Dec 2017 22:31:01 -0500
assuming you have system integrity protection disabled for /usr/sbin write
access, just rename the binary to something else (cupsd.orig) while it's
still running and place your compiled version in its place. then run "sudo
pkill cupsd" and when launchd attempts to restart its process (due to its
KeepAlive plist key) it'll be running your version in its place. you don't
necessarily need to have the program killed in order to modify or replace
its binary since you loaded it into memory by executing it.
On Wed, Dec 20, 2017 at 5:27 PM, Prokash Sinha <email@hidden> wrote:
> Folks,
>
> How do I debug cupsd ?
>
> Basically I need to find some path of execution of the daemon.
>
> What I’m trying to do is to have a debug build from the Apple source, and
> replace it in /usr/sbin after stoping the service first. Is this possible
> ? If so, then I can debug using Xcode.
>
> otherwise I will have to use lldb ( to attach to the process and look thru
> back traces of release code — harder approach !!
>
> Looking for a way to stop using launchctl command, replace the binary,
> restart.
>
> Thanks,
> Prokash
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-kernel mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >cups (From: Prokash Sinha <email@hidden>) |