setprivexec man page on NeXTSTEP

Man page or keyword search:  
man Server   1419 pages
apropos Keyword Search (all sections)
Output format
NeXTSTEP logo
[printable version]


SETPRIVEXEC(2)							SETPRIVEXEC(2)

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			SETPRIVEXEC(2)
[top]

List of man pages available for NeXTSTEP

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net