Allow the user to make direct BIOS intcalls (via vm86 system) if they

successfully authenticate as root via the suser() call.
This commit is contained in:
Jonathan Lemon 2000-09-19 03:27:31 +00:00
parent 2b9cf2f709
commit 8343765bcb

View File

@ -701,10 +701,11 @@ vm86_sysarch(p, args)
}
break;
#if 0
case VM86_INTCALL: {
struct vm86_intcall_args sa;
if (error = suser(p))
return (error);
if (error = copyin(ua.sub_args, &sa, sizeof(sa)))
return (error);
if (error = vm86_intcall(sa.intnum, &sa.vmf))
@ -712,7 +713,6 @@ vm86_sysarch(p, args)
error = copyout(&sa, ua.sub_args, sizeof(sa));
}
break;
#endif
default:
error = EINVAL;