> From: "Theo de Raadt" <[email protected]> > Date: Sun, 12 Apr 2020 10:28:59 -0600 > > > + if ((p->p_flag & P_SYSTEM) && > > + (strncmp(p->p_p->ps_comm, "softnet", 7) == 0)) > > Wow that is ugly.
A better approach might be to store a pointer to the softnet task's struct proc in a global variable and check that. That is what we do for the pagedaemon for example.
