Chris PeBenito e181fe
Chris PeBenito 960373
policy_module(terminal,1.0)
Chris PeBenito 960373
Chris PeBenito fd89e1
########################################
Chris PeBenito fd89e1
#
Chris PeBenito fd89e1
# Declarations
Chris PeBenito fd89e1
#
Chris PeBenito b4cd15
attribute ttynode;
Chris PeBenito b4cd15
attribute ptynode;
Chris PeBenito b16c6b
attribute server_ptynode;
Chris PeBenito b4cd15
Chris PeBenito b4cd15
#
Chris PeBenito a2d824
# bsdpty_device_t is the type of /dev/[tp]ty[abcdepqrstuvwxyz][0-9a-f]
Chris PeBenito a2d824
type bsdpty_device_t;
Karl MacMillan f0c985
dev_node(bsdpty_device_t)
Chris PeBenito a2d824
Chris PeBenito a2d824
#
Chris PeBenito b4cd15
# console_device_t is the type of /dev/console.
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
type console_device_t;
Karl MacMillan f0c985
dev_node(console_device_t)
Chris PeBenito b4cd15
Chris PeBenito b4cd15
#
Chris PeBenito a2d824
# devpts_t is the type of the devpts file system and 
Chris PeBenito a2d824
# the type of the root directory of the file system.
Chris PeBenito a2d824
#
Chris PeBenito a2d824
type devpts_t;
Chris PeBenito c9428d
files_mountpoint(devpts_t)
Chris PeBenito cbca03
fs_type(devpts_t)
Chris PeBenito cabfa5
fs_use_trans devpts context_template(system_u:object_r:devpts_t,s0);
Chris PeBenito a2d824
Chris PeBenito a2d824
#
Chris PeBenito b4cd15
# devtty_t is the type of /dev/tty.
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
type devtty_t;
Karl MacMillan f0c985
dev_node(devtty_t)
Chris PeBenito b4cd15
Chris PeBenito b4cd15
#
Chris PeBenito a2d824
# ptmx_t is the type for /dev/ptmx.
Chris PeBenito b4cd15
#
Chris PeBenito 0907bd
type ptmx_t; #, mlstrustedobject;
Karl MacMillan f0c985
dev_node(ptmx_t)
Chris PeBenito b4cd15
Chris PeBenito b4cd15
#
Chris PeBenito a2d824
# tty_device_t is the type of /dev/*tty*
Chris PeBenito a2d824
#
Chris PeBenito a2d824
type tty_device_t;
Karl MacMillan f0c985
dev_node(tty_device_t)
Chris PeBenito b4cd15
Chris PeBenito 33bc0d
#
Chris PeBenito 33bc0d
# usbtty_device_t is the type of /dev/usr/tty*
Chris PeBenito 33bc0d
#
Chris PeBenito 33bc0d
type usbtty_device_t;
Karl MacMillan f0c985
dev_node(usbtty_device_t)