Re: Block SIGKILL/SIGTERM
Re: Block SIGKILL/SIGTERM
- Subject: Re: Block SIGKILL/SIGTERM
- From: Amarnath <email@hidden>
- Date: Tue, 20 Aug 2013 19:09:28 +0530
Hey Phil,
I was returning EACCES from my implementation of mpo_proc_check_signal() whenever the process was "QuickTime Player". But, even after loading my custom kext, I was observing that the SIGKILL was delivered to the process.
Here is my implementation of mpo_proc_check_signal().
static int
mpo_proc_check_signal(
kauth_cred_t cred,
struct proc *proc,
int signum
) {
char process_name[MAXCOMLEN+1];
proc_name(proc->p_pid, process_name, sizeof(process_name));
printf("[sample] Signal %d received for %s\n", signum, process_name);
if (strcmp("QuickTime Player", process_name) == 0) {
printf("[sample] Not passing the signal\n");
return EACCES;
}
return 0;
}
Am I missing something here?
Thanks,
_______________________________________________
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