aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs
diff options
context:
space:
mode:
authorSean Eric Fagan <sef@FreeBSD.org>1998-01-06 01:37:12 +0000
committerSean Eric Fagan <sef@FreeBSD.org>1998-01-06 01:37:12 +0000
commitdd30ff81d91557627625903be1c94bb47646dce1 (patch)
tree24baa8ba3a6feb7f0862bccbfaaba1e90d61b99d /sys/miscfs/procfs
parent4e9914b70899fe5c74c2f18f7b37693d1d0e14f6 (diff)
downloadsrc-dd30ff81d91557627625903be1c94bb47646dce1.tar.gz
src-dd30ff81d91557627625903be1c94bb47646dce1.zip
Use CHECKIO in procfs_ioctl() to ensure that any changes in UID/GID result
in the expected failure.
Notes
Notes: svn path=/head/; revision=32285
Diffstat (limited to 'sys/miscfs/procfs')
-rw-r--r--sys/miscfs/procfs/procfs_vnops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c
index b7e522bdaa2f..b8bd8e97a228 100644
--- a/sys/miscfs/procfs/procfs_vnops.c
+++ b/sys/miscfs/procfs/procfs_vnops.c
@@ -36,7 +36,7 @@
*
* @(#)procfs_vnops.c 8.18 (Berkeley) 5/21/95
*
- * $Id: procfs_vnops.c,v 1.49 1997/12/20 03:05:47 sef Exp $
+ * $Id: procfs_vnops.c,v 1.50 1997/12/27 02:56:25 bde Exp $
*/
/*
@@ -236,6 +236,9 @@ procfs_ioctl(ap)
return ENOTTY;
}
+ if (!CHECKIO(p, procp))
+ return EPERM;
+
switch (ap->a_command) {
case PIOCBIS:
procp->p_stops |= *(unsigned int*)ap->a_data;