FreeBSD Bugzilla – Attachment 10663 Details for
Bug 21329
change to allow vm86 interrupt calls from userland
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 758 bytes, created by
jon
on 2000-09-17 18:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
jon
Created:
2000-09-17 18:20:00 UTC
Size:
758 bytes
patch
obsolete
>Index: vm86.c >=================================================================== >RCS file: /export/ncvs/src/sys/i386/i386/vm86.c,v >retrieving revision 1.31 >diff -u -r1.31 vm86.c >--- vm86.c 1999/10/29 18:08:35 1.31 >+++ vm86.c 2000/09/17 06:58:08 >@@ -701,18 +701,18 @@ > } > break; > >-#if 0 > case VM86_INTCALL: { > struct vm86_intcall_args sa; > >- if (error = copyin(ua.sub_args, &sa, sizeof(sa))) >+ if (p->p_cred->pc_ucred->cr_uid != 0) return EPERM; >+ >+ if ((error = copyin(ua.sub_args, &sa, sizeof(sa)))) > return (error); >- if (error = vm86_intcall(sa.intnum, &sa.vmf)) >+ if ((error = vm86_intcall(sa.intnum, &sa.vmf))) > return (error); > error = copyout(&sa, ua.sub_args, sizeof(sa)); > } > break; >-#endif > > default: > error = EINVAL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21329
: 10663