add console setattr if

This commit is contained in:
Chris PeBenito 2005-04-28 15:47:50 +00:00
parent 4fbd2ee111
commit 55a46da18a
1 changed files with 16 additions and 0 deletions

View File

@ -55,6 +55,22 @@ type console_device_t;
class chr_file { read write };
')
########################################
#
# terminal_set_console_attributes(domain,[`optional'])
#
define(`terminal_set_console_attributes',`
requires_block_template(terminal_set_console_attributes_depend,$2)
devices_list_device_nodes($1,optional)
allow $1 console_device_t:chr_file setattr;
')
define(`terminal_set_console_attributes_depend',`
type console_device_t;
class chr_file setattr;
devices_list_device_nodes_depend
')
########################################
#
# terminal_use_controlling_terminal(domain,[`optional'])