From 55a46da18a48a9c592110b8d24fe5d5410a15e09 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Apr 28 2005 15:47:50 +0000 Subject: add console setattr if --- diff --git a/refpolicy/policy/modules/kernel/terminal.if b/refpolicy/policy/modules/kernel/terminal.if index e1002e5..6c741e1 100644 --- a/refpolicy/policy/modules/kernel/terminal.if +++ b/refpolicy/policy/modules/kernel/terminal.if @@ -57,6 +57,22 @@ 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']) # define(`terminal_use_controlling_terminal',`