Update io(4) to match reality following revision 1.42 of

sys/i386/i386/mem.c: only the super-user may open /dev/io
regardless of the device permissions (just 4 years late!).

Also, add cross-reference to i386_{get,set}_ioperm(2).

PR:		kern/13359
This commit is contained in:
iedowse 2001-08-12 21:08:34 +00:00
parent fff3ee192f
commit 8840bd034b

View File

@ -46,18 +46,19 @@ open will get its
bits in the flag register set, thus allowing it to perform direct
I/O operations. This can be useful in order to write userland
programs that handle some hardware directly.
Note that even read-only access will grant the full I/O privileges.
.Pp
The entire access control is handled by the file access permissions
of
In addition to any file access permissions on
.Pa /dev/io ,
so care should be taken in granting rights for this device. Note
that even read/only access will grant the full I/O privileges.
the kernel enforces that only the super-user may open this device.
.Sh FILES
.Bl -tag -width Pa -compact
.It Pa /dev/io
.El
.Sh SEE ALSO
.Xr mem 4
.Xr i386_get_ioperm 2
.Xr i386_set_ioperm 2
.Sh HISTORY
The
.Nm