Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# terminal_make_pseudoterminal(domain,ptytype)
Chris PeBenito 8a0da1
#
Chris PeBenito 8a0da1
define(`terminal_make_pseudoterminal',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8a0da1
devices_list_device_nodes($1,optional)
Chris PeBenito 8a0da1
allow $1 ptmx_t:chr_file { getattr read write };
Chris PeBenito 8a0da1
allow $1 devpts_t:dir { getattr search read };
Chris PeBenito 8a0da1
allow $1 devpts_t:filesystem getattr;
Chris PeBenito 8a0da1
allow $2 devpts_t:filesystem associate;
Chris PeBenito 960373
dontaudit $1 bsdpty_device_t:chr_file { getattr read write };
Chris PeBenito 8a0da1
type_transition $1 devpts_t:chr_file $2;
Chris PeBenito 8a0da1
typeattribute $2 ptynode;
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
define(`terminal_make_pseudoterminal_depend',`
Chris PeBenito 8a0da1
attribute ptynode;
Chris PeBenito 8a0da1
type ptmx_t, devpts_t;
Chris PeBenito 8a0da1
class filesystem { getattr associate };
Chris PeBenito 8a0da1
class dir { getattr search read };
Chris PeBenito 8a0da1
class chr_file { getattr read write };
Chris PeBenito 8a0da1
devices_list_device_nodes_depend
Chris PeBenito 8a0da1
')
Chris PeBenito 8a0da1
Chris PeBenito 8a0da1
########################################
Chris PeBenito 8a0da1
#
Chris PeBenito 3ce6cb
# terminal_use_all_terminals(domain)
Chris PeBenito de2cee
#
Chris PeBenito de2cee
define(`terminal_use_all_terminals',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
devices_list_device_nodes($1)
Chris PeBenito 3ce6cb
allow $1 devpts_t:dir { getattr search read };
Chris PeBenito de2cee
allow $1 { console_device_t devtty_t ttynode ptynode }:chr_file { read write };
Chris PeBenito de2cee
')
Chris PeBenito de2cee
Chris PeBenito de2cee
define(`terminal_use_all_terminals_depend',`
Chris PeBenito de2cee
attribute ttynode, ptynode;
Chris PeBenito de2cee
type console_device_t, devtty_t, devpts_t;
Chris PeBenito 3ce6cb
class dir { getattr search read };
Chris PeBenito 3ce6cb
class chr_file { read write };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
########################################
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
# terminal_get_all_users_physical_terminal_attributes(domain)
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
define(`terminal_get_all_users_physical_terminal_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
devices_list_device_nodes($1)
Chris PeBenito 3ce6cb
allow $1 ttynode:chr_file getattr;
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
define(`terminal_get_all_users_physical_terminal_attributes_depend',`
Chris PeBenito 3ce6cb
attribute ttynode;
Chris PeBenito 3ce6cb
class chr_file getattr;
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
########################################
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
# terminal_use_all_users_physical_terminals(domain)
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
define(`terminal_use_all_users_physical_terminals',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
devices_list_device_nodes($1)
Chris PeBenito 3ce6cb
allow $1 ttynode:chr_file { read write };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
define(`terminal_use_all_users_physical_terminals_depend',`
Chris PeBenito 3ce6cb
attribute ttynode;
Chris PeBenito 3ce6cb
class chr_file { read write };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
########################################
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
# terminal_ignore_use_all_users_physical_terminals(domain)
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
define(`terminal_ignore_use_all_users_physical_terminals',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
dontaudit $1 ttynode:chr_file { read write };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
define(`terminal_ignore_use_all_users_physical_terminals_depend',`
Chris PeBenito 3ce6cb
attribute ttynode;
Chris PeBenito 3ce6cb
class chr_file { read write };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
########################################
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
# terminal_get_all_users_pseudoterminal_attributes(domain)
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
define(`terminal_get_all_users_pseudoterminal_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
devices_list_device_nodes($1)
Chris PeBenito 3ce6cb
allow $1 devpts_t:dir { getattr search read };
Chris PeBenito 3ce6cb
allow $1 ptynode:chr_file getattr;
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
define(`terminal_get_all_users_pseudoterminal_attributes_depend',`
Chris PeBenito 3ce6cb
attribute ptynode;
Chris PeBenito 3ce6cb
class dir { getattr search read };
Chris PeBenito 3ce6cb
class chr_file getattr;
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
########################################
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
# terminal_use_all_users_pseudoterminals(domain)
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
define(`terminal_use_all_users_pseudoterminals',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
devices_list_device_nodes($1)
Chris PeBenito 3ce6cb
allow $1 devpts_t:dir { getattr read search };
Chris PeBenito 3ce6cb
allow $1 ptynode:chr_file { read write };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
define(`terminal_use_all_users_pseudoterminals_depend',`
Chris PeBenito 3ce6cb
attribute ptynode;
Chris PeBenito 3ce6cb
class dir { getattr search read };
Chris PeBenito 3ce6cb
class chr_file { read write };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
########################################
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
# terminal_ignore_use_all_users_pseudoterminals(domain)
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
define(`terminal_ignore_use_all_users_pseudoterminals',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
dontaudit $1 ptynode:chr_file { read write };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
define(`terminal_ignore_use_all_users_pseudoterminals_depend',`
Chris PeBenito 3ce6cb
attribute ptynode;
Chris PeBenito de2cee
class chr_file { read write };
Chris PeBenito de2cee
')
Chris PeBenito de2cee
Chris PeBenito de2cee
########################################
Chris PeBenito de2cee
#
Chris PeBenito bd202f
# terminal_use_console(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`terminal_use_console',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
devices_list_device_nodes($1,optional)
Chris PeBenito b4cd15
allow $1 console_device_t:chr_file { read write };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`terminal_use_console_depend',`
Chris PeBenito b4cd15
type console_device_t;
Chris PeBenito b4cd15
class chr_file { read write };
Chris PeBenito b4cd15
devices_list_device_nodes_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# terminal_ignore_use_console(domain)
Chris PeBenito 811985
#
Chris PeBenito 811985
define(`terminal_ignore_use_console',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 811985
dontaudit $1 console_device_t:chr_file { read write };
Chris PeBenito 811985
')
Chris PeBenito 811985
Chris PeBenito 811985
define(`terminal_ignore_use_console_depend',`
Chris PeBenito 811985
type console_device_t;
Chris PeBenito 811985
class chr_file { read write };
Chris PeBenito 811985
')
Chris PeBenito 811985
Chris PeBenito 811985
########################################
Chris PeBenito 811985
#
Chris PeBenito bd202f
# terminal_set_console_attributes(domain)
Chris PeBenito 55a46d
#
Chris PeBenito 55a46d
define(`terminal_set_console_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 55a46d
devices_list_device_nodes($1,optional)
Chris PeBenito 55a46d
allow $1 console_device_t:chr_file setattr;
Chris PeBenito 55a46d
')
Chris PeBenito 55a46d
Chris PeBenito 55a46d
define(`terminal_set_console_attributes_depend',`
Chris PeBenito 55a46d
type console_device_t;
Chris PeBenito 55a46d
class chr_file setattr;
Chris PeBenito 55a46d
devices_list_device_nodes_depend
Chris PeBenito 55a46d
')
Chris PeBenito 55a46d
Chris PeBenito 55a46d
########################################
Chris PeBenito 55a46d
#
Chris PeBenito bd202f
# terminal_use_controlling_terminal(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`terminal_use_controlling_terminal',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito d0eddb
devices_list_device_nodes($1)
Chris PeBenito b4cd15
allow $1 devtty_t:chr_file { read write };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`terminal_use_controlling_terminal_depend',`
Chris PeBenito b4cd15
type devtty_t;
Chris PeBenito b4cd15
class chr_file { read write };
Chris PeBenito d0eddb
')
Chris PeBenito d0eddb
Chris PeBenito d0eddb
########################################
Chris PeBenito d0eddb
#
Chris PeBenito d0eddb
# terminal_ignore_use_controlling_terminal(domain)
Chris PeBenito d0eddb
#
Chris PeBenito d0eddb
define(`terminal_ignore_use_controlling_terminal',`
Chris PeBenito d0eddb
requires_block_template(`$0'_depend)
Chris PeBenito d0eddb
dontaudit $1 devtty_t:chr_file { read write };
Chris PeBenito d0eddb
')
Chris PeBenito d0eddb
Chris PeBenito d0eddb
define(`terminal_ignore_use_controlling_terminal_depend',`
Chris PeBenito d0eddb
type devtty_t;
Chris PeBenito d0eddb
class chr_file { read write };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito de2cee
# terminal_reset_physical_terminal_labels(domain)
Chris PeBenito b4cd15
#
Chris PeBenito de2cee
define(`terminal_reset_physical_terminal_labels',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito de2cee
devices_list_device_nodes($1)
Chris PeBenito de2cee
allow $1 ttynode:chr_file relabelfrom;
Chris PeBenito de2cee
allow $1 tty_device_t:chr_file relabelto;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito de2cee
define(`terminal_reset_physical_terminal_labels_depend',`
Chris PeBenito de2cee
attribute ttynode;
Chris PeBenito de2cee
type tty_device_t;
Chris PeBenito de2cee
class chr_file { relabelfrom relabelto };
Chris PeBenito b4cd15
devices_list_device_nodes_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito de2cee
# terminal_use_general_physical_terminal(domain)
Chris PeBenito de2cee
#
Chris PeBenito de2cee
define(`terminal_use_general_physical_terminal',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito de2cee
devices_list_device_nodes($1)
Chris PeBenito de2cee
allow $1 tty_device_t:chr_file { read write };
Chris PeBenito de2cee
')
Chris PeBenito de2cee
Chris PeBenito de2cee
define(`terminal_use_general_physical_terminal_depend',`
Chris PeBenito de2cee
type tty_device_t;
Chris PeBenito de2cee
class chr_file { read write };
Chris PeBenito de2cee
')
Chris PeBenito de2cee
Chris PeBenito de2cee
########################################
Chris PeBenito b4cd15
#
Chris PeBenito de2cee
# terminal_ignore_use_general_physical_terminal(domain)
Chris PeBenito de2cee
#
Chris PeBenito de2cee
define(`terminal_ignore_use_general_physical_terminal',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito de2cee
dontaudit $1 tty_device_t:chr_file { read write };
Chris PeBenito de2cee
')
Chris PeBenito de2cee
Chris PeBenito de2cee
define(`terminal_ignore_use_general_physical_terminal_depend',`
Chris PeBenito de2cee
type tty_device_t;
Chris PeBenito de2cee
class chr_file { read write };
Chris PeBenito de2cee
')
Chris PeBenito de2cee
Chris PeBenito de2cee
########################################
Chris PeBenito de2cee
#
Chris PeBenito bd202f
# terminal_list_pseudoterminals(domain)
Chris PeBenito ee5772
#
Chris PeBenito ee5772
define(`terminal_list_pseudoterminals',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito ee5772
devices_list_device_nodes($1,optional)
Chris PeBenito ee5772
allow $1 devpts_t:dir { getattr search read };
Chris PeBenito ee5772
')
Chris PeBenito ee5772
Chris PeBenito ee5772
define(`terminal_list_pseudoterminals_depend',`
Chris PeBenito ee5772
type devpts_t;
Chris PeBenito ee5772
class dir { getattr search read };
Chris PeBenito ee5772
devices_list_device_nodes_depend
Chris PeBenito ee5772
')
Chris PeBenito ee5772
Chris PeBenito ee5772
########################################
Chris PeBenito ee5772
#
Chris PeBenito bd202f
# terminal_ignore_list_pseudoterminals(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 8a0da1
define(`terminal_ignore_list_pseudoterminals',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 8a0da1
dontaudit $1 devpts_t:dir { getattr search read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 8a0da1
define(`terminal_ignore_list_pseudoterminals_depend',`
Chris PeBenito b4cd15
type devpts_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
')
Chris PeBenito a2d824
Chris PeBenito a2d824
########################################
Chris PeBenito a2d824
#
Chris PeBenito de2cee
# terminal_use_general_pseudoterminal(domain)
Chris PeBenito a2d824
#
Chris PeBenito de2cee
define(`terminal_use_general_pseudoterminal',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito de2cee
devices_list_device_nodes($1)
Chris PeBenito de2cee
allow $1 devpts_t:chr_file { read write };
Chris PeBenito a2d824
')
Chris PeBenito a2d824
Chris PeBenito de2cee
define(`terminal_use_general_pseudoterminal_depend',`
Chris PeBenito de2cee
type devpts_t;
Chris PeBenito de2cee
class chr_file { read write };
Chris PeBenito de2cee
')
Chris PeBenito de2cee
Chris PeBenito de2cee
########################################
Chris PeBenito de2cee
#
Chris PeBenito de2cee
# terminal_ignore_use_general_pseudoterminal(domain)
Chris PeBenito de2cee
#
Chris PeBenito de2cee
define(`terminal_ignore_use_general_pseudoterminal',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito de2cee
dontaudit $1 devpts_t:chr_file { read write };
Chris PeBenito de2cee
')
Chris PeBenito de2cee
Chris PeBenito de2cee
define(`terminal_ignore_use_general_pseudoterminal_depend',`
Chris PeBenito de2cee
type devpts_t;
Chris PeBenito de2cee
class chr_file { read write };
Chris PeBenito a2d824
')
Chris PeBenito 1e5c2a
Chris PeBenito 1e5c2a
########################################
Chris PeBenito 1e5c2a
#
Chris PeBenito 1e5c2a
# terminal_ignore_use_pseudoterminal_multiplexer(domain)
Chris PeBenito 1e5c2a
#
Chris PeBenito 1e5c2a
define(`terminal_ignore_use_pseudoterminal_multiplexer',`
Chris PeBenito 1e5c2a
requires_block_template(`$0'_depend)
Chris PeBenito 1e5c2a
dontaudit $1 ptmx_t:chr_file { getattr read write };
Chris PeBenito 1e5c2a
')
Chris PeBenito 1e5c2a
Chris PeBenito 1e5c2a
define(`terminal_ignore_use_pseudoterminal_multiplexer_depend',`
Chris PeBenito 1e5c2a
type ptmx_t;
Chris PeBenito 1e5c2a
class chr_file { getattr read write };
Chris PeBenito 1e5c2a
')