Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/common Update patch from Witold Wnuk in PR ...



details:   https://anonhg.NetBSD.org/src/rev/dd93f23f1241
branches:  trunk
changeset: 482619:dd93f23f1241
user:      abs <abs%NetBSD.org@localhost>
date:      Thu Feb 17 12:34:26 2000 +0000

description:
Update patch from Witold Wnuk in PR 9335 to solve potential security
issue noted by tls.

diffstat:

 sys/compat/linux/common/linux_misc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r bef0932215e6 -r dd93f23f1241 sys/compat/linux/common/linux_misc.c
--- a/sys/compat/linux/common/linux_misc.c      Thu Feb 17 11:41:59 2000 +0000
+++ b/sys/compat/linux/common/linux_misc.c      Thu Feb 17 12:34:26 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_misc.c,v 1.63 2000/02/03 10:03:01 abs Exp $      */
+/*     $NetBSD: linux_misc.c,v 1.64 2000/02/17 12:34:26 abs Exp $      */
 
 /*-
  * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -907,8 +907,8 @@
 }
 
 /*
- * We have nonexistant fsuid == uid.
- * If call is no-op return 0, otherwise ENOSYS.
+ * We have nonexistent fsuid equal to uid.
+ * If modification is requested, refuse.
  */
 int
 linux_sys_setfsuid(p, v, retval)
@@ -923,7 +923,7 @@
 
         uid = SCARG(uap, uid);
         if (p->p_cred->p_ruid != uid)
-                return (ENOSYS);
+                return sys_nosys(p, v, retval);
         else
                 return (0);
 }



Home | Main Index | Thread Index | Old Index