Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/freebsd We have now native issetugid.
details: https://anonhg.NetBSD.org/src/rev/fa1dfd5714c1
branches: trunk
changeset: 485181:fa1dfd5714c1
user: minoura <minoura%NetBSD.org@localhost>
date: Fri Apr 21 16:18:16 2000 +0000
description:
We have now native issetugid.
diffstat:
sys/compat/freebsd/freebsd_misc.c | 20 +-------------------
sys/compat/freebsd/syscalls.master | 4 ++--
2 files changed, 3 insertions(+), 21 deletions(-)
diffs (49 lines):
diff -r 9a2d570682cc -r fa1dfd5714c1 sys/compat/freebsd/freebsd_misc.c
--- a/sys/compat/freebsd/freebsd_misc.c Fri Apr 21 16:16:15 2000 +0000
+++ b/sys/compat/freebsd/freebsd_misc.c Fri Apr 21 16:18:16 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: freebsd_misc.c,v 1.4 1998/05/02 18:14:06 christos Exp $ */
+/* $NetBSD: freebsd_misc.c,v 1.5 2000/04/21 16:18:16 minoura Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@@ -104,21 +104,3 @@
return ENOSYS; /* XXX */
}
-
-int
-freebsd_sys_issetugid(p, v, retval)
- struct proc *p;
- void *v;
- register_t *retval;
-{
- /*
- * Note: OpenBSD sets a P_SUGIDEXEC flag set at execve() time,
- * we use P_SUGID because we consider changing the owners as
- * "tainting" as well.
- * This is significant for procs that start as root and "become"
- * a user without an exec - programs cannot know *everything*
- * that libc *might* have put in their data segment.
- */
- *retval = (p->p_flag & P_SUGID) != 0;
- return 0;
-}
diff -r 9a2d570682cc -r fa1dfd5714c1 sys/compat/freebsd/syscalls.master
--- a/sys/compat/freebsd/syscalls.master Fri Apr 21 16:16:15 2000 +0000
+++ b/sys/compat/freebsd/syscalls.master Fri Apr 21 16:18:16 2000 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.25 1999/08/25 04:48:21 thorpej Exp $
+ $NetBSD: syscalls.master,v 1.26 2000/04/21 16:18:16 minoura Exp $
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -493,7 +493,7 @@
250 UNIMPL minherit
251 UNIMPL rfork
252 UNIMPL openbsd_poll
-253 STD { int freebsd_sys_issetugid(void); }
+253 NOARGS { int sys_issetugid(void); }
254 STD { int freebsd_sys_lchown(const char *path, int uid, \
int gid); }
255 UNIMPL
Home |
Main Index |
Thread Index |
Old Index