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