summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs
diff options
context:
space:
mode:
authorsef <sef@FreeBSD.org>1997-08-12 05:23:51 +0000
committersef <sef@FreeBSD.org>1997-08-12 05:23:51 +0000
commit47bfe6b362d2f423e7aeaa34f76273ee705e3d05 (patch)
treed5b1f447533219d007d3b2556ef3cac7f2167ed4 /sys/fs/procfs
parenta2d21c0047a266860cc09cead96d51aad24b23fd (diff)
downloadFreeBSD-src-47bfe6b362d2f423e7aeaa34f76273ee705e3d05.zip
FreeBSD-src-47bfe6b362d2f423e7aeaa34f76273ee705e3d05.tar.gz
Check permissions for fp regs as well as normal regs.
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r--sys/fs/procfs/procfs_fpregs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/procfs/procfs_fpregs.c b/sys/fs/procfs/procfs_fpregs.c
index c3e5f0b..14c3fd3 100644
--- a/sys/fs/procfs/procfs_fpregs.c
+++ b/sys/fs/procfs/procfs_fpregs.c
@@ -37,7 +37,7 @@
* @(#)procfs_fpregs.c 8.2 (Berkeley) 6/15/94
*
* From:
- * $Id: procfs_fpregs.c,v 1.6 1997/02/22 09:40:27 peter Exp $
+ * $Id: procfs_fpregs.c,v 1.7 1997/08/02 14:32:11 bde Exp $
*/
#include <sys/param.h>
@@ -60,6 +60,8 @@ procfs_dofpregs(curp, p, pfs, uio)
char *kv;
int kl;
+ if (!CHECKIO(curp, p))
+ return EPERM;
kl = sizeof(r);
kv = (char *) &r;
OpenPOWER on IntegriCloud