SETPRIVEXEC

Section: System Calls (2)
Updated: July 2, 1992
Index Return to Main Contents
 

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)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 00:58:57 GMT, September 26, 2024