Chris PeBenito e181fe
Chris PeBenito 960373
policy_module(terminal,1.0)
Chris PeBenito 960373
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;
Chris PeBenito a2d824
devices_make_device_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;
Chris PeBenito b4cd15
devices_make_device_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 a2d824
files_make_mountpoint(devpts_t)
Chris PeBenito a2d824
filesystem_make_filesystem(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;
Chris PeBenito b4cd15
devices_make_device_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 a2d824
type ptmx_t;
Chris PeBenito a2d824
devices_make_device_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;
Chris PeBenito a2d824
devices_make_device_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;
Chris PeBenito 33bc0d
devices_make_device_node(usbtty_device_t)