*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> systrace (9)              



NAME    [Toc]    [Back]

     systrace_redirect, systrace_fork,  systrace_exit  -  enforce
policies for
     system calls

SYNOPSIS    [Toc]    [Back]

     #include <dev/systrace.h>

     systrace_redirect(int code, struct proc *p, void *args,
             register_t *retval);

     systrace_fork(struct proc *oldproc, struct proc *p);

     systrace_exit(struct proc *p);

DESCRIPTION    [Toc]    [Back]

     These  functions  are  used  to enforce policy on the system
calls as described
 in systrace(1).

     systrace_redirect() should be used to perform a system  call
number code
     with  arguments  args for the process p.  The result is then
put into the
     retval pointer.  A typical code sequence would be:

           #include "systrace.h"


           #if NSYSTRACE > 0
                   if (ISSET(p->p_flag, P_SYSTRACE))
                           error  =  systrace_redirect(code,   p,
args, rval);
                           error   =  (*callp->sy_call)(p,  args,

     systrace_fork() is called from the fork1(9) function to  inherit policy
     for the child process.

     systrace_exit() is called during the death cycle of the process to detach
     the policy from the exiting process.

CODE REFERENCES    [Toc]    [Back]

     A subsystem for enforcing system call policies is implemented in

SEE ALSO    [Toc]    [Back]

     systrace(1), systrace(4), syscall(9)

HISTORY    [Toc]    [Back]

     The systrace_redirect section manual page appeared in OpenBSD 3.4.

OpenBSD     3.6                           July      21,      2003
[ Back ]
 Similar pages
Name OS Title
systrace OpenBSD enforce and generate policies for system calls
systrace OpenBSD generate and enforce system call policies
expiry Linux check and enforce password expiration policy
obsolete Linux obsolete system calls
syscalls Linux list of all system calls
socketcall Linux socket system calls
truss FreeBSD trace system calls
syscall OpenBSD system calls overview
unimplemented Linux unimplemented system calls
intro Linux Introduction to system calls
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service