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:
parent
2b9cf2f709
commit
8343765bcb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user