Remove accedentlay added ~ files

This commit is contained in:
Dan Walsh 2010-09-16 17:48:39 -04:00
parent 0a394bf04f
commit 8c47ad04ba
2 changed files with 0 additions and 226 deletions

View File

@ -1,150 +0,0 @@
## <summary>policy for vnstatd</summary>
########################################
## <summary>
## Execute a domain transition to run vnstatd.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`vnstatd_domtrans',`
gen_require(`
type vnstatd_t, vnstatd_exec_t;
')
domtrans_pattern($1, vnstatd_exec_t, vnstatd_t)
')
########################################
## <summary>
## Execute a domain transition to run vnstat.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`vnstatd_domtrans_vnstat',`
gen_require(`
type vnstat_t, vnstat_exec_t;
')
domtrans_pattern($1, vnstat_exec_t, vnstat_t)
')
########################################
## <summary>
## Search vnstatd lib directories.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`vnstatd_search_lib',`
gen_require(`
type vnstatd_var_lib_t;
')
allow $1 vnstatd_var_lib_t:dir search_dir_perms;
files_search_var_lib($1)
')
########################################
## <summary>
## Read vnstatd lib files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`vnstatd_read_lib_files',`
gen_require(`
type vnstatd_var_lib_t;
')
files_search_var_lib($1)
read_files_pattern($1, vnstatd_var_lib_t, vnstatd_var_lib_t)
')
########################################
## <summary>
## Create, read, write, and delete
## vnstatd lib files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`vnstatd_manage_lib_files',`
gen_require(`
type vnstatd_var_lib_t;
')
files_search_var_lib($1)
manage_files_pattern($1, vnstatd_var_lib_t, vnstatd_var_lib_t)
')
########################################
## <summary>
## Manage vnstatd lib dirs files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`vnstatd_manage_lib_dirs',`
gen_require(`
type vnstatd_var_lib_t;
')
files_search_var_lib($1)
manage_dirs_pattern($1, vnstatd_var_lib_t, vnstatd_var_lib_t)
')
########################################
## <summary>
## All of the rules required to administrate
## an vnstatd environment
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`vnstatd_admin',`
gen_require(`
type vnstatd_t;
type vnstatd_var_lib_t;
')
allow $1 vnstatd_t:process { ptrace signal_perms };
ps_process_pattern($1, vnstatd_t)
files_search_var_lib($1)
admin_pattern($1, vnstatd_var_lib_t)
')

View File

@ -1,76 +0,0 @@
policy_module(vnstatd,1.0.0)
########################################
#
# Declarations
#
type vnstatd_t;
type vnstatd_exec_t;
init_daemon_domain(vnstatd_t, vnstatd_exec_t)
permissive vnstatd_t;
type vnstatd_var_lib_t;
files_type(vnstatd_var_lib_t)
type vnstat_t;
domain_type(vnstat_t)
type vnstat_exec_t;
domain_entry_file(vnstat_t, vnstat_exec_t)
cron_system_entry(vnstat_t, vnstat_exec_t)
########################################
#
# vnstatd local policy
#
allow vnstatd_t self:process { fork signal };
allow vnstatd_t self:fifo_file rw_fifo_file_perms;
allow vnstatd_t self:unix_stream_socket create_stream_socket_perms;
manage_dirs_pattern(vnstatd_t, vnstatd_var_lib_t, vnstatd_var_lib_t)
manage_files_pattern(vnstatd_t, vnstatd_var_lib_t, vnstatd_var_lib_t)
files_var_lib_filetrans(vnstatd_t, vnstatd_var_lib_t, { dir file } )
domain_use_interactive_fds(vnstatd_t)
files_read_etc_files(vnstatd_t)
logging_send_syslog_msg(vnstatd_t)
miscfiles_read_localization(vnstatd_t)
########################################
#
# vnstat local policy
#
allow vnstat_t self:process { signal };
allow vnstat_t self:fifo_file rw_fifo_file_perms;
allow vnstat_t self:unix_stream_socket create_stream_socket_perms;
manage_dirs_pattern(vnstat_t, vnstatd_var_lib_t, vnstatd_var_lib_t)
manage_files_pattern(vnstat_t, vnstatd_var_lib_t, vnstatd_var_lib_t)
files_var_lib_filetrans(vnstat_t, vnstatd_var_lib_t, { dir file } )
kernel_read_network_state(vnstat_t)
kernel_read_system_state(vnstat_t)
domain_use_interactive_fds(vnstat_t)
files_read_etc_files(vnstat_t)
fs_getattr_xattr_fs(vnstat_t)
logging_send_syslog_msg(vnstat_t)
miscfiles_read_localization(vnstat_t)
optional_policy(`
gen_require(`
type crond_t;
')
vnstatd_search_lib(crond_t)
')