| P_CANDEBUG(9) | Kernel Developer's Manual | P_CANDEBUG(9) |
p_candebug —
determine debuggability of a process
#include
<sys/param.h>
#include <sys/proc.h>
int
p_candebug(struct
thread *td, struct proc
*p);
This function can be used to determine if a given process p is debuggable by the thread td.
The following sysctl(8) variables directly
influence the behaviour of
p_candebug():
1 or greater.The p_candebug() function returns
0 if the process denoted by p
is debuggable by thread td, or a non-zero error return
value otherwise.
EACCESS]EAGAIN]exec()'ed.EPERM]EPERM]EPERM]EPERM]initproc() and the sysctl(8)
variable kern.securelevel is greater than zero.ESRCH]ESRCH]ESRCH]jail(2), sysctl(8), cr_seeothergids(9), cr_seeotheruids(9), mac(9), p_cansee(9), prison_check(9)
| November 19, 2006 | Debian |