Prevent corrupted executable from launching on OS X

Viewed 404

I have a process(Launch Daemon) that gets launched by launchd in root context in OS X. The process is code signed. Still if I corrupt the binary, it loads again. To corrupt the binary, I open the executable in hex editor, and do a find and replace for any string. Is there a way to prevent this process from launching in case it is corrupted?

2 Answers
Related