diff options
Diffstat (limited to 'lib/libc/sys/execve.2')
| -rw-r--r-- | lib/libc/sys/execve.2 | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2 index b9eee61e27f..c5c9838e611 100644 --- a/lib/libc/sys/execve.2 +++ b/lib/libc/sys/execve.2 @@ -1,5 +1,7 @@ -.\" Copyright (c) 1980, 1991 Regents of the University of California. -.\" All rights reserved. +.\" $NetBSD: execve.2,v 1.9 1995/02/27 12:32:25 cgd Exp $ +.\" +.\" Copyright (c) 1980, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -29,10 +31,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" from: @(#)execve.2 6.9 (Berkeley) 3/10/91 -.\" $Id: execve.2,v 1.8 1994/10/17 23:49:10 cgd Exp $ +.\" @(#)execve.2 8.3 (Berkeley) 1/24/94 .\" -.Dd March 10, 1991 +.Dd January 24, 1994 .Dt EXECVE 2 .Os BSD 4 .Sh NAME @@ -41,7 +42,7 @@ .Sh SYNOPSIS .Fd #include <unistd.h> .Ft int -.Fn execve "const char *path" "const * char *argv" "const * char *envp" +.Fn execve "const char *path" "char *const argv[]" "char *const envp[]" .Sh DESCRIPTION .Fn Execve transforms the calling process into a new process. @@ -70,7 +71,7 @@ When an interpreter file is .Fn execve Ap d , the system .Fn execve Ap s -the specified +runs the specified .Em interpreter . If the optional .Em arg @@ -132,9 +133,15 @@ of the new process image file. If the set-group-ID mode bit of the new process image file is set, the effective group ID of the new process image is set to the group ID of the new process image file. +(The effective group ID is the first element of the group list.) The real user ID, real group ID and -supplementary group IDs of the new process image remain the same as the calling +other group IDs of the new process image remain the same as the calling process image. +After any set-user-ID and set-group-ID processing, +the effective user ID is recorded as the saved set-user-ID, +and the effective group ID is recorded as the saved set-group-ID. +These values may be used in changing the effective IDs later (see +.Xr setuid 2 ) . .Pp The new process also inherits the following attributes from the calling process: |
