term_write_all_terms() patch from Stefan Schulze Frielinghaus

This commit is contained in:
Chris PeBenito 2009-09-08 10:06:38 -04:00
parent dbed95369c
commit f67bc918d4
1 changed files with 23 additions and 0 deletions

View File

@ -153,6 +153,29 @@ interface(`term_create_pty',`
type_transition $1 devpts_t:chr_file $2;
')
########################################
## <summary>
## Write the console, all
## ttys and all ptys.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`term_write_all_terms',`
gen_require(`
attribute ttynode, ptynode;
type console_device_t, devpts_t, tty_device_t;
')
dev_list_all_dev_nodes($1)
allow $1 devpts_t:dir list_dir_perms;
allow $1 { console_device_t tty_device_t ttynode ptynode }:chr_file write_chr_file_perms;
')
########################################
## <summary>
## Read and write the console, all