diff options
author | sef <sef@FreeBSD.org> | 1997-08-12 05:23:51 +0000 |
---|---|---|
committer | sef <sef@FreeBSD.org> | 1997-08-12 05:23:51 +0000 |
commit | 47bfe6b362d2f423e7aeaa34f76273ee705e3d05 (patch) | |
tree | d5b1f447533219d007d3b2556ef3cac7f2167ed4 /sys/miscfs | |
parent | a2d21c0047a266860cc09cead96d51aad24b23fd (diff) | |
download | FreeBSD-src-47bfe6b362d2f423e7aeaa34f76273ee705e3d05.zip FreeBSD-src-47bfe6b362d2f423e7aeaa34f76273ee705e3d05.tar.gz |
Check permissions for fp regs as well as normal regs.
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/procfs/procfs_fpregs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/miscfs/procfs/procfs_fpregs.c b/sys/miscfs/procfs/procfs_fpregs.c index c3e5f0b..14c3fd3 100644 --- a/sys/miscfs/procfs/procfs_fpregs.c +++ b/sys/miscfs/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; |