Make setreuid/setregid active syscalls
This commit is contained in:
parent
29ea28d79e
commit
e876c909da
@ -2,7 +2,7 @@
|
||||
* System call switch table.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: syscalls.master,v 1.13 1995/03/04 03:24:26 davidg Exp $
|
||||
* created from $Id: syscalls.master,v 1.14 1995/03/25 16:52:11 davidg Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -110,6 +110,8 @@ int writev();
|
||||
int settimeofday();
|
||||
int fchown();
|
||||
int fchmod();
|
||||
int setreuid();
|
||||
int setregid();
|
||||
int rename();
|
||||
int flock();
|
||||
int mkfifo();
|
||||
@ -207,8 +209,6 @@ int osendmsg();
|
||||
#else
|
||||
#endif
|
||||
int orecvfrom();
|
||||
int osetreuid();
|
||||
int osetregid();
|
||||
int otruncate();
|
||||
int oftruncate();
|
||||
int ogetpeername();
|
||||
@ -378,8 +378,8 @@ struct sysent sysent[] = {
|
||||
{ 3, fchown }, /* 123 = fchown */
|
||||
{ 2, fchmod }, /* 124 = fchmod */
|
||||
{ compat(6,recvfrom) }, /* 125 = old recvfrom */
|
||||
{ compat(2,setreuid) }, /* 126 = old setreuid */
|
||||
{ compat(2,setregid) }, /* 127 = old setregid */
|
||||
{ 2, setreuid }, /* 126 = setreuid */
|
||||
{ 2, setregid }, /* 127 = setregid */
|
||||
{ 2, rename }, /* 128 = rename */
|
||||
{ compat(2,truncate) }, /* 129 = old truncate */
|
||||
{ compat(2,ftruncate) }, /* 130 = old ftruncate */
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_prot.c 8.6 (Berkeley) 1/21/94
|
||||
* $Id: kern_prot.c,v 1.5 1994/10/13 20:59:49 sos Exp $
|
||||
* $Id: kern_prot.c,v 1.6 1995/04/23 08:30:44 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -384,14 +384,13 @@ setgroups(p, uap, retval)
|
||||
return (0);
|
||||
}
|
||||
|
||||
#if defined(COMPAT_43) || defined(COMPAT_SUNOS) || defined(COMPAT_IBCS2)
|
||||
struct setreuid_args {
|
||||
int ruid;
|
||||
int euid;
|
||||
};
|
||||
/* ARGSUSED */
|
||||
int
|
||||
osetreuid(p, uap, retval)
|
||||
setreuid(p, uap, retval)
|
||||
register struct proc *p;
|
||||
struct setreuid_args *uap;
|
||||
int *retval;
|
||||
@ -419,7 +418,7 @@ struct setregid_args {
|
||||
};
|
||||
/* ARGSUSED */
|
||||
int
|
||||
osetregid(p, uap, retval)
|
||||
setregid(p, uap, retval)
|
||||
register struct proc *p;
|
||||
struct setregid_args *uap;
|
||||
int *retval;
|
||||
@ -440,7 +439,6 @@ osetregid(p, uap, retval)
|
||||
args.egid = uap->egid;
|
||||
return (setegid(p, &args, retval));
|
||||
}
|
||||
#endif /*defined(COMPAT_43) || defined(COMPAT_SUNOS) || defined(COMPAT_IBCS2)*/
|
||||
|
||||
/*
|
||||
* Check if gid is a member of the group set.
|
||||
|
@ -2,7 +2,7 @@
|
||||
* System call names.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: syscalls.master,v 1.13 1995/03/04 03:24:26 davidg Exp $
|
||||
* created from $Id: syscalls.master,v 1.14 1995/03/25 16:52:11 davidg Exp $
|
||||
*/
|
||||
|
||||
char *syscallnames[] = {
|
||||
@ -140,8 +140,8 @@ char *syscallnames[] = {
|
||||
"fchown", /* 123 = fchown */
|
||||
"fchmod", /* 124 = fchmod */
|
||||
"old.recvfrom", /* 125 = old recvfrom */
|
||||
"old.setreuid", /* 126 = old setreuid */
|
||||
"old.setregid", /* 127 = old setregid */
|
||||
"setreuid", /* 126 = setreuid */
|
||||
"setregid", /* 127 = setregid */
|
||||
"rename", /* 128 = rename */
|
||||
"old.truncate", /* 129 = old truncate */
|
||||
"old.ftruncate", /* 130 = old ftruncate */
|
||||
|
@ -1,4 +1,4 @@
|
||||
$Id: syscalls.master,v 1.13 1995/03/04 03:24:26 davidg Exp $
|
||||
$Id: syscalls.master,v 1.14 1995/03/25 16:52:11 davidg Exp $
|
||||
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
|
||||
;
|
||||
; System call name/number master file.
|
||||
@ -162,8 +162,8 @@
|
||||
123 STD 3 BSD fchown
|
||||
124 STD 2 BSD fchmod
|
||||
125 COMPAT 6 BSD recvfrom
|
||||
126 COMPAT 2 BSD setreuid
|
||||
127 COMPAT 2 BSD setregid
|
||||
126 STD 2 BSD setreuid
|
||||
127 STD 2 BSD setregid
|
||||
128 STD 2 POSIX rename
|
||||
129 COMPAT 2 BSD truncate
|
||||
130 COMPAT 2 BSD ftruncate
|
||||
|
@ -2,7 +2,7 @@
|
||||
* System call hiders.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: syscalls.master,v 1.13 1995/03/04 03:24:26 davidg Exp $
|
||||
* created from $Id: syscalls.master,v 1.14 1995/03/25 16:52:11 davidg Exp $
|
||||
*/
|
||||
|
||||
HIDE_POSIX(fork)
|
||||
|
@ -2,7 +2,7 @@
|
||||
* System call numbers.
|
||||
*
|
||||
* DO NOT EDIT-- this file is automatically generated.
|
||||
* created from $Id: syscalls.master,v 1.13 1995/03/04 03:24:26 davidg Exp $
|
||||
* created from $Id: syscalls.master,v 1.14 1995/03/25 16:52:11 davidg Exp $
|
||||
*/
|
||||
|
||||
#define SYS_syscall 0
|
||||
@ -129,8 +129,8 @@
|
||||
#define SYS_fchown 123
|
||||
#define SYS_fchmod 124
|
||||
/* 125 is old recvfrom */
|
||||
/* 126 is old setreuid */
|
||||
/* 127 is old setregid */
|
||||
#define SYS_setreuid 126
|
||||
#define SYS_setregid 127
|
||||
#define SYS_rename 128
|
||||
/* 129 is old truncate */
|
||||
/* 130 is old ftruncate */
|
||||
|
Loading…
x
Reference in New Issue
Block a user