Re: i386, parallel port permission error?

2020-08-20 Thread Mihai Popescu
> Is there a work around for the removal of i386_get_ioperm() > Can i386_iopl() be used in some way? There are some alphanumeric LCDs out there with RS232 or USB interface. A medium C programmer can work them out without a driver in a day. Why the hell do you want to change an entire OS for a

Re: i386, parallel port permission error?

2020-08-20 Thread Theo de Raadt
The idea is that when a machine is multiuser, the operating system is a layer on top of the machine. So a program should not be able to access hardware IO ports directly. Even as root. Because eventually you run a program as root, which gets holed, and now that program can access more than the

Re: i386, parallel port permission error?

2020-08-20 Thread Doug Moss
i386_get_ioperm() and i386_set_ioperm() These were removed from sysarch.h between OpenBSD 5.9 to 6.0? I believe this code (port.h): https://github.com/lcdproc/lcdproc/blob/master/server/drivers/port.h On OpenBSD 5.9, it uses the code branch for 'NetBSD/OpenBSD' lines 174 to 270 based on having

Re: i386, parallel port permission error?

2020-08-20 Thread Christian Weisgerber
On 2020-08-19, Doug Moss wrote: > I think the problem in lcdproc is in the code from this file (port.h) > https://github.com/lcdproc/lcdproc/blob/master/server/drivers/port.h > > I am out of my depth with this code. I have never even seen these > calls 'outb' and 'inb' You're saying this as if

Re: i386, parallel port permission error?

2020-08-19 Thread Philip Guenther
On Wed, Aug 19, 2020 at 3:09 AM Doug Moss wrote: > On 2020-08-17, Stuart Henderson wrote: > >On 2020-08-17, Doug Moss wrote: > >> > >> Did something change at OpenBSD i386 between 5.9 and 6.0 > >> related to parallel port / lpt hardware permissions? > >> > >> Up to OpenBSD i386 5.9, > >> I used

Re: i386, parallel port permission error?

2020-08-19 Thread Doug Moss
On 2020-08-17, Stuart Henderson wrote: >On 2020-08-17, Doug Moss wrote: >> >> Did something change at OpenBSD i386 between 5.9 and 6.0 >> related to parallel port / lpt hardware permissions? >> >> Up to OpenBSD i386 5.9, >> I used to be able to have a working case-LCD-screen >> with

Re: i386, parallel port permission error?

2020-08-17 Thread Theo de Raadt
Stuart Henderson wrote: > On 2020-08-17, Doug Moss wrote: > > > > Is it possible with OpenBSD i386 to use the parallel port for lcdproc? > > > > More specifically: > > Did something change at OpenBSD i386 between 5.9 and 6.0 > > related to parallel port / lpt hardware permissions? > > > > Up to

i386, parallel port permission error?

2020-08-17 Thread Doug Moss
Is it possible with OpenBSD i386 to use the parallel port for lcdproc? More specifically: Did something change at OpenBSD i386 between 5.9 and 6.0 related to parallel port / lpt hardware permissions? Up to OpenBSD i386 5.9, I used to be able to have a working case-LCD-screen with

Re: i386, parallel port permission error?

2020-08-16 Thread Stuart Henderson
On 2020-08-17, Doug Moss wrote: > > Is it possible with OpenBSD i386 to use the parallel port for lcdproc? > > More specifically: > Did something change at OpenBSD i386 between 5.9 and 6.0 > related to parallel port / lpt hardware permissions? > > Up to OpenBSD i386 5.9, > I used to be able to

Re: i386, parallel port permission error?

2020-08-16 Thread Theo de Raadt
You'll need to chown/chmod it narrowly to the uid who wants to use it. You want to constrain use of the device driver as much as you can. >Is it possible with OpenBSD i386 to use the parallel port for lcdproc? > >More specifically: >Did something change at OpenBSD i386 between 5.9 and 6.0