Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# Authors:  Stephen Smalley <sds@epoch.ncsc.mil> and Timothy Fraser  
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
############################################
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# Device types
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# device_t is the type of /dev.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0907bd
type device_t, file_type, mount_point, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# null_device_t is the type of /dev/null.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type null_device_t, device_type, dev_fs, mlstrustedobject;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# zero_device_t is the type of /dev/zero.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type zero_device_t, device_type, dev_fs, mlstrustedobject;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# console_device_t is the type of /dev/console.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type console_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# xconsole_device_t is the type of /dev/xconsole
Chris PeBenito 0fbfa5
type xconsole_device_t, file_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# memory_device_t is the type of /dev/kmem,
Chris PeBenito 0fbfa5
# /dev/mem, and /dev/port.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type memory_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# random_device_t is the type of /dev/random
Chris PeBenito 0fbfa5
# urandom_device_t is the type of /dev/urandom
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type random_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
type urandom_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# devtty_t is the type of /dev/tty.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type devtty_t, device_type, dev_fs, mlstrustedobject;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# tty_device_t is the type of /dev/*tty*
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type tty_device_t, serial_device, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# bsdpty_device_t is the type of /dev/[tp]ty[abcdepqrstuvwxyz][0-9a-f]
Chris PeBenito 0fbfa5
type bsdpty_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# usbtty_device_t is the type of /dev/usr/tty*
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type usbtty_device_t, serial_device, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# printer_device_t is the type for printer devices
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type printer_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# fixed_disk_device_t is the type of 
Chris PeBenito 0fbfa5
# /dev/hd* and /dev/sd*.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type fixed_disk_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# scsi_generic_device_t is the type of /dev/sg*
Chris PeBenito 0fbfa5
# it gives access to ALL SCSI devices (both fixed and removable)
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type scsi_generic_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# removable_device_t is the type of
Chris PeBenito 0fbfa5
# /dev/scd* and /dev/fd*.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type removable_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# clock_device_t is the type of
Chris PeBenito 0fbfa5
# /dev/rtc.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type clock_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# tun_tap_device_t is the type of /dev/net/tun/* and /dev/net/tap/*
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type tun_tap_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# misc_device_t is the type of miscellaneous devices.
Chris PeBenito 0fbfa5
# XXX:  FIXME!  Appropriate access to these devices need to be identified.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type misc_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# A more general type for mouse devices.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type mouse_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# For generic /dev/input/event* event devices
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type event_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# Not sure what these devices are for, but X wants access to them.
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
type agp_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
type dri_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Type for sound devices.
Chris PeBenito 0fbfa5
type sound_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Type for /dev/ppp.
Chris PeBenito 0fbfa5
type ppp_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Type for frame buffer /dev/fb/*
Chris PeBenito 0fbfa5
type framebuf_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Type for /dev/.devfsd
Chris PeBenito 0fbfa5
type devfs_control_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Type for /dev/cpu/mtrr
Chris PeBenito 0fbfa5
type mtrr_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Type for /dev/pmu 
Chris PeBenito 0fbfa5
type power_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Type for /dev/apm_bios
Chris PeBenito 0fbfa5
type apm_bios_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Type for v4l
Chris PeBenito 0fbfa5
type v4l_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# tape drives
Chris PeBenito 0fbfa5
type tape_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# scanners
Chris PeBenito 0fbfa5
type scanner_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# cpu control devices /dev/cpu/0/*
Chris PeBenito 0fbfa5
type cpu_device_t, device_type, dev_fs;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# for other device nodes such as the NVidia binary-only driver
Chris PeBenito 0fbfa5
type xserver_misc_device_t, device_type, dev_fs;
Chris PeBenito 0907bd
Chris PeBenito 0907bd
# for the IBM zSeries z90crypt hardware ssl accelorator
Chris PeBenito 0907bd
type crypt_device_t, device_type, dev_fs;
Chris PeBenito 0907bd
Chris PeBenito 0907bd
Chris PeBenito 0907bd
Chris PeBenito 0907bd