Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/miscfs/procfs Pull up following revision(s) (requeste...
details: https://anonhg.NetBSD.org/src/rev/9c73691cc1d1
branches: netbsd-8
changeset: 366826:9c73691cc1d1
user: martin <martin%NetBSD.org@localhost>
date: Fri Jun 17 15:27:10 2022 +0000
description:
Pull up following revision(s) (requested by shm in ticket #1748):
sys/miscfs/procfs/procfs_vnops.c: revision 1.229
Add missing permission check
diffstat:
sys/miscfs/procfs/procfs_vnops.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r a0b12690f73b -r 9c73691cc1d1 sys/miscfs/procfs/procfs_vnops.c
--- a/sys/miscfs/procfs/procfs_vnops.c Mon Jun 06 11:10:24 2022 +0000
+++ b/sys/miscfs/procfs/procfs_vnops.c Fri Jun 17 15:27:10 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: procfs_vnops.c,v 1.197.2.3 2019/08/29 16:28:47 martin Exp $ */
+/* $NetBSD: procfs_vnops.c,v 1.197.2.4 2022/06/17 15:27:10 martin Exp $ */
/*-
* Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -105,7 +105,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.197.2.3 2019/08/29 16:28:47 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.197.2.4 2022/06/17 15:27:10 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1040,6 +1040,9 @@
*vpp = NULL;
+ if ((error = VOP_ACCESS(dvp, VEXEC, cnp->cn_cred)) != 0)
+ return (error);
+
if (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME)
return (EROFS);
Home |
Main Index |
Thread Index |
Old Index