Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exec(2)

fork(2)

SETPRIVEXEC(2)  —  UNIX Programmer’s Manual

NAME

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)

4th Berkeley Distribution  —  July 2, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026