|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Directory patterns (dir)
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Parameters:
|
|
Chris PeBenito |
c0868a |
# 1. domain type
|
|
Chris PeBenito |
c0868a |
# 2. container (directory) type
|
|
Chris PeBenito |
c0868a |
# 3. directory type
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
define(`getattr_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir getattr_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`setattr_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir setattr_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`search_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`list_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir list_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`add_entry_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir add_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`del_entry_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir del_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`create_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir add_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir create_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`delete_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir del_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir delete_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rename_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir rename_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`manage_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir manage_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelfrom_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir relabelfrom_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelto_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir relabelto_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabel_dirs_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:dir relabel_dir_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Regular file patterns (file)
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Parameters:
|
|
Chris PeBenito |
c0868a |
# 1. domain type
|
|
Chris PeBenito |
c0868a |
# 2. container (directory) type
|
|
Chris PeBenito |
c0868a |
# 3. file type
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
define(`getattr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file getattr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`setattr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file setattr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`read_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file read_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`mmap_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file mmap_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`exec_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file exec_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`append_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file append_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`write_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file write_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rw_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file rw_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`create_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir add_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file create_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`delete_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir del_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file delete_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rename_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file rename_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`manage_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file manage_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelfrom_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file relabelfrom_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelto_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file relabelto_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabel_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:file relabel_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Symbolic link patterns (lnk_file)
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Parameters:
|
|
Chris PeBenito |
c0868a |
# 1. domain type
|
|
Chris PeBenito |
c0868a |
# 2. container (directory) type
|
|
Chris PeBenito |
c0868a |
# 3. file type
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
define(`getattr_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file getattr_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`setattr_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file setattr_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`read_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file read_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`append_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file append_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`write_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file write_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rw_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file rw_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`create_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir add_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file create_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`delete_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir del_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file delete_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rename_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file rename_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`manage_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file manage_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelfrom_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file relabelfrom_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelto_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file relabelto_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabel_lnk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:lnk_file relabel_lnk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# (Un)named Pipes/FIFO patterns (fifo_file)
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Parameters:
|
|
Chris PeBenito |
c0868a |
# 1. domain type
|
|
Chris PeBenito |
c0868a |
# 2. container (directory) type
|
|
Chris PeBenito |
c0868a |
# 3. file type
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
define(`getattr_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file getattr_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`setattr_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file setattr_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`read_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file read_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`append_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file append_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`write_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file write_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rw_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`create_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir add_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file create_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`delete_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir del_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file delete_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rename_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file rename_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`manage_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file manage_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelfrom_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file relabelfrom_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelto_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file relabelto_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabel_fifo_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:fifo_file relabel_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# (Un)named sockets patterns (sock_file)
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Parameters:
|
|
Chris PeBenito |
c0868a |
# 1. domain type
|
|
Chris PeBenito |
c0868a |
# 2. container (directory) type
|
|
Chris PeBenito |
c0868a |
# 3. file type
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
define(`getattr_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file getattr_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`setattr_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file setattr_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`read_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file read_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`write_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file write_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rw_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file rw_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`create_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir add_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file create_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`delete_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir del_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file delete_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rename_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file rename_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`manage_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file manage_fifo_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelfrom_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file relabelfrom_sock_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelto_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file relabelto_sock_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabel_sock_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:sock_file relabel_sock_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Block device node patterns (blk_file)
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Parameters:
|
|
Chris PeBenito |
c0868a |
# 1. domain type
|
|
Chris PeBenito |
c0868a |
# 2. container (directory) type
|
|
Chris PeBenito |
c0868a |
# 3. file type
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
define(`getattr_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file getattr_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`setattr_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file setattr_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`read_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file read_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`append_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file append_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`write_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file write_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rw_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file rw_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`create_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 self:capability mknod;
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir add_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file create_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`delete_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir del_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file delete_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rename_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file rename_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`manage_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 self:capability mknod;
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file manage_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelfrom_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file relabelfrom_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelto_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file relabelto_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabel_blk_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:blk_file relabel_blk_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Character device node patterns (chr_file)
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# Parameters:
|
|
Chris PeBenito |
c0868a |
# 1. domain type
|
|
Chris PeBenito |
c0868a |
# 2. container (directory) type
|
|
Chris PeBenito |
c0868a |
# 3. file type
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
define(`getattr_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file getattr_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`setattr_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file setattr_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`read_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file read_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`append_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file append_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`write_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file write_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rw_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file rw_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`create_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 self:capability mknod;
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir add_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file create_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`delete_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir del_entry_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file delete_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`rename_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file rename_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`manage_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 self:capability mknod;
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file manage_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelfrom_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file relabelfrom_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabelto_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file relabelto_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`relabel_chr_files_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir search_dir_perms;
|
|
Chris PeBenito |
c0868a |
allow $1 $3:chr_file relabel_chr_file_perms;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# File type_transition patterns
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
# pattern(domain,dirtype,newtype,class(es))
|
|
Chris PeBenito |
c0868a |
#
|
|
Chris PeBenito |
c0868a |
define(`filetrans_add_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir ra_dir_perms;
|
|
Chris PeBenito |
c0868a |
type_transition $1 $2:$4 $3;
|
|
Chris PeBenito |
c0868a |
')
|
|
Chris PeBenito |
c0868a |
|
|
Chris PeBenito |
c0868a |
define(`filetrans_pattern',`
|
|
Chris PeBenito |
c0868a |
allow $1 $2:dir rw_dir_perms;
|
|
Chris PeBenito |
c0868a |
type_transition $1 $2:$4 $3;
|
|
Chris PeBenito |
c0868a |
')
|