Currently we allow unrestricted ioport access to all userspace programs which is dangerous since they can access devices directly.
We should figure out a way to restrict this. I currently see two options:
- Implement ioperm() and eventually once we have the concept of permissions we can restrict who calls it.
- Since this is really for the terminal, either virtualize the cursor (like ToaruOS) or implement an ioctl for the vgafb.