sys_prctl [kernel/sys.c]
Performs operations on a process. Arguments
eax | 172
ebx | Operation to perform. It may be one of the following:
`PR_SET_PDEATHSIG` | `Set the parent process death signal of the current process to the value specified by ecx (either a signal value in the range 1..maxsig, or 0 to clear). This is the signal that the current process will get when its parent dies. This value is cleared upon a sys_fork. sys_prctl will fail with -EINVAL if the signal value specified in ecx is invalid. edx, esi, and edi are ignored.`
`PR_GET_PDEATHSIG` | `Read the current value of the parent process death signal into the the address pointed by ecx. edx, esi, and edi are ignored.`
`PR_GET_DUMPABLE` | `Return the current state of the calling process's dumpable flag. ecx, edx, esi, and edi are ignored.`
`PR_SET_DUMPABLE` | `Set the state of the flag determining whether core dumps are produced for this process upon delivery of a signal whose default behavior is to produce a core dump. (Normally this flag is set for a process by default, but it is cleared when a set-user-ID or set-group-ID program is executed and also by various system calls that manipulate process UIDs and GIDs). In kernels up to and including 2.6.12, ecx must be either 0 (process is not dumpable) or 1 (process is dumpable). sys_prctl will fail with -EINVAL if ecx is negative or > 1. edx, esi, and edi are ignored.`
`PR_GET_KEEPCAPS` | `Return the current state of the calling process's "keep capabilities" flag. ecx, edx, esi, and edi are ignored.`
`PR_SET_KEEPCAPS` | `Set the state of the process's "keep capabilities" flag, which determines whether the process's effective and permitted capability sets are cleared when a change is made to the process's user IDs such that the process's real UID, effective UID, and saved set-user-ID all become non-zero when at least one of them previously had the value 0. (By default, these credential sets are cleared). ecx must be either 0 (capabilities are cleared) or 1 (capabilities are kept). sys_prctl will fail with -EINVAL if ecx isn't 0 nor 1. edx, esi, and edi are ignored.`
`PR_SET_NAME` | `*to be documented*`
`PR_GET_NAME` | `*to be documented*`
ecx | This argument depends on a operation used. See above.
edx | This argument depends on a operation used. See above.
esi | This argument depends on a operation used. See above.
edi | This argument depends on a operation used. See above.
Return values If the system call succeeds the return value depends on the operation used. See above. If the system call fails the return value is either an operation specific error value (see above) or one of the following errno values:
`-EINVAL` | `The value of ebx is not recognized.`
Remarks n/a Compatibility n/a