Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/miscfs/procfs Pull up revision 1.88 (via patch, req...
details: https://anonhg.NetBSD.org/src/rev/4c32e5b4d95f
branches: netbsd-1-4
changeset: 471324:4c32e5b4d95f
user: he <he%NetBSD.org@localhost>
date: Mon Jan 14 15:20:58 2002 +0000
description:
Pull up revision 1.88 (via patch, requested by he):
Fix a ptrace/execve race condition which could be used to modify
the child process' image during execve. This would be a security
issue due to setuid programs.
diffstat:
sys/miscfs/procfs/procfs_vnops.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 0cdfff9d17d8 -r 4c32e5b4d95f sys/miscfs/procfs/procfs_vnops.c
--- a/sys/miscfs/procfs/procfs_vnops.c Mon Jan 14 15:20:38 2002 +0000
+++ b/sys/miscfs/procfs/procfs_vnops.c Mon Jan 14 15:20:58 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_vnops.c,v 1.61.2.1 1999/08/28 23:28:16 he Exp $ */
+/* $NetBSD: procfs_vnops.c,v 1.61.2.2 2002/01/14 15:20:58 he Exp $ */
/*
* Copyright (c) 1993 Jan-Simon Pendry
@@ -233,7 +233,7 @@
return (EBUSY);
if ((error = procfs_checkioperm(p1, p2)) != 0)
- return (EPERM);
+ return (error);
if (ap->a_mode & FWRITE)
pfs->pfs_flags = ap->a_mode & (FWRITE|O_EXCL);
Home |
Main Index |
Thread Index |
Old Index