up | Inhaltsverzeichniss | Kommentar

Manual page for SETPRIVEXEC(2)

setprivexec - allow other processes to exec set-bit programs

SYNOPSIS

old = setprivexec(onoff)
int old, onoff;

DESCRIPTION

If called with a nonzero (zero) argument, the setprivexec() system call marks the process as one that is (isn't) interested in holding privileged Mach ports of other processes that intend to exec programs with set-bit markings (for example, debuggers and program launchers). A nonzero mark persists across exec, but is not inherited by a forked child. The initial value is zero.

This mark is set to nonzero as a side effect of a process making a successful get_task_by_unix_pid() call, if the process is the superuser.

RETURN VALUE

This system call returns the previous value of the flag.

SEE ALSO

get_task_by_unix_pid() (in the NEXTSTEP documentation available through Digital Librarian), exec(2), fork(2)


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97