*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> i386/io (4)              
Title
Content
Arch
Section
 

IO(4)

Contents


NAME    [Toc]    [Back]

     io -- I/O privilege file

DESCRIPTION    [Toc]    [Back]

     The special file /dev/io is a controlled security hole that allows a
     process to gain I/O privileges (which are normally reserved for kernelinternal
 code).  Any process that holds a file descriptor on /dev/io open
     will get its IOPL 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 readonly
 access will grant the full I/O privileges.

     In addition to any file access permissions on /dev/io, the kernel
     enforces that only the super-user may open this device.

FILES    [Toc]    [Back]

     /dev/io

SEE ALSO    [Toc]    [Back]

      
      
     i386_get_ioperm(2), i386_set_ioperm(2), mem(4)

HISTORY    [Toc]    [Back]

     The io file appeared in FreeBSD 1.0.


FreeBSD 5.2.1			January 1, 1996 		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
addpriv IRIX add a privilege to the system administration privilege database
rmpriv IRIX remove a privilege from the privilege database
PrivilegeManager IRIX privilege manager
privilege IRIX privilege database
GenerateKeyP Tru64 Generate a key with privilege (CDSA)
CSSM_GetPrivilege Tru64 Get CSSM privilege value (CDSA)
iopl Linux change I/O privilege level
WrapKeyP Tru64 Wrap a key with privilege (CDSA)
cap_socket IRIX create a socket with privilege
suser_cred FreeBSD check if process has superuser privilege
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service