aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>1999-10-31 19:39:51 +0000
committerAlan Cox <alc@FreeBSD.org>1999-10-31 19:39:51 +0000
commit0d4d02ecf22e769239ac48fca787a330fbea6e0d (patch)
treec4b48dfb370f47e318328863565b1b1343a7f8c4 /sys
parent96a9a981cc0a9de4d89afbdb571c3a2cad584a45 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/machdep.c4
-rw-r--r--sys/amd64/amd64/machdep.c4
-rw-r--r--sys/i386/i386/machdep.c4
-rw-r--r--sys/pc98/i386/machdep.c4
-rw-r--r--sys/pc98/pc98/machdep.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c
index 99450ac04d14..76dce71f4810 100644
--- a/sys/alpha/alpha/machdep.c
+++ b/sys/alpha/alpha/machdep.c
@@ -1421,7 +1421,7 @@ osigreturn(struct proc *p,
* Test and fetch the context structure.
* We grab it all at once for speed.
*/
- if (useracc((caddr_t)scp, sizeof (*scp), VM_PROT_WRITE) == 0 ||
+ if (useracc((caddr_t)scp, sizeof (*scp), VM_PROT_READ) == 0 ||
copyin((caddr_t)scp, (caddr_t)&ksc, sizeof ksc))
return (EINVAL);
@@ -1491,7 +1491,7 @@ sigreturn(struct proc *p,
* Test and fetch the context structure.
* We grab it all at once for speed.
*/
- if (useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_WRITE) == 0 ||
+ if (useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_READ) == 0 ||
copyin((caddr_t)ucp, (caddr_t)&uc, sizeof(ucontext_t)))
return (EINVAL);
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index c96546656a32..7bd9188b40ee 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -769,7 +769,7 @@ osigreturn(p, uap)
scp = uap->sigcntxp;
- if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_WRITE))
+ if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_READ))
return(EFAULT);
eflags = scp->sc_ps;
@@ -880,7 +880,7 @@ sigreturn(p, uap)
ucp = uap->sigcntxp;
eflags = ucp->uc_mcontext.mc_eflags;
- if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_WRITE))
+ if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_READ))
return(EFAULT);
if (eflags & PSL_VM) {
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index c96546656a32..7bd9188b40ee 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -769,7 +769,7 @@ osigreturn(p, uap)
scp = uap->sigcntxp;
- if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_WRITE))
+ if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_READ))
return(EFAULT);
eflags = scp->sc_ps;
@@ -880,7 +880,7 @@ sigreturn(p, uap)
ucp = uap->sigcntxp;
eflags = ucp->uc_mcontext.mc_eflags;
- if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_WRITE))
+ if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_READ))
return(EFAULT);
if (eflags & PSL_VM) {
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index ed1e1a260288..7f49b9b9b2d0 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -782,7 +782,7 @@ osigreturn(p, uap)
scp = uap->sigcntxp;
- if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_WRITE))
+ if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_READ))
return(EFAULT);
eflags = scp->sc_ps;
@@ -893,7 +893,7 @@ sigreturn(p, uap)
ucp = uap->sigcntxp;
eflags = ucp->uc_mcontext.mc_eflags;
- if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_WRITE))
+ if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_READ))
return(EFAULT);
if (eflags & PSL_VM) {
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index ed1e1a260288..7f49b9b9b2d0 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -782,7 +782,7 @@ osigreturn(p, uap)
scp = uap->sigcntxp;
- if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_WRITE))
+ if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_READ))
return(EFAULT);
eflags = scp->sc_ps;
@@ -893,7 +893,7 @@ sigreturn(p, uap)
ucp = uap->sigcntxp;
eflags = ucp->uc_mcontext.mc_eflags;
- if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_WRITE))
+ if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_READ))
return(EFAULT);
if (eflags & PSL_VM) {