From 7ff31fc32696365707a7556979887285550645e6 Mon Sep 17 00:00:00 2001 From: abs Date: Thu, 17 Feb 2000 12:34:26 +0000 Subject: [PATCH] Update patch from Witold Wnuk in PR 9335 to solve potential security issue noted by tls. --- sys/compat/linux/common/linux_misc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c index 64f7e464992c..2eb3e52200a3 100644 --- a/sys/compat/linux/common/linux_misc.c +++ b/sys/compat/linux/common/linux_misc.c @@ -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 @@ linux_sys_setregid(p, v, retval) } /* - * 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 @@ linux_sys_setfsuid(p, v, retval) uid = SCARG(uap, uid); if (p->p_cred->p_ruid != uid) - return (ENOSYS); + return sys_nosys(p, v, retval); else return (0); }