Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito 2e77b2
## <module name="files" layer="system">
Chris PeBenito 2e77b2
## <summary>Policy controlling access to general files</summary>
Chris PeBenito e181fe
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_make_file(type)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_make_file',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
typeattribute $1 file_type;
Chris PeBenito f1470e
filesystem_associate($1)
Chris PeBenito f1470e
filesystem_noxattr_associate($1)
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_make_file_depend',`
Chris PeBenito b4cd15
attribute file_type;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 075c4f
# files_make_lock_file(type)
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
define(`files_make_lock_file',`
Chris PeBenito 075c4f
requires_block_template(`$0'_depend)
Chris PeBenito 075c4f
files_make_file($1)
Chris PeBenito 075c4f
typeattribute $1 lockfile;
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
define(`files_make_lock_file_depend',`
Chris PeBenito 075c4f
attribute lockfile;
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
########################################
Chris PeBenito 075c4f
#
Chris PeBenito d25dd9
# files_make_mountpoint(type)
Chris PeBenito 38e24a
#
Chris PeBenito d25dd9
define(`files_make_mountpoint',`
Chris PeBenito 38e24a
requires_block_template(`$0'_depend)
Chris PeBenito 38e24a
files_make_file($1)
Chris PeBenito d25dd9
typeattribute $1 mountpoint;
Chris PeBenito 38e24a
')
Chris PeBenito 38e24a
Chris PeBenito d25dd9
define(`files_make_mountpoint_depend',`
Chris PeBenito d25dd9
attribute mountpoint;
Chris PeBenito 38e24a
')
Chris PeBenito 38e24a
Chris PeBenito 38e24a
########################################
Chris PeBenito 38e24a
#
Chris PeBenito d25dd9
# files_make_daemon_runtime_file(type)
Chris PeBenito a2d824
#
Chris PeBenito d25dd9
define(`files_make_daemon_runtime_file',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito d25dd9
files_make_file($1)
Chris PeBenito d25dd9
typeattribute $1 pidfile;
Chris PeBenito a2d824
')
Chris PeBenito a2d824
Chris PeBenito d25dd9
define(`files_make_daemon_runtime_file_depend',`
Chris PeBenito d25dd9
attribute pidfile;
Chris PeBenito d25dd9
')
Chris PeBenito d25dd9
Chris PeBenito d25dd9
########################################
Chris PeBenito d25dd9
#
Chris PeBenito d25dd9
# files_make_temporary_file(type)
Chris PeBenito d25dd9
#
Chris PeBenito d25dd9
define(`files_make_temporary_file',`
Chris PeBenito d25dd9
requires_block_template(`$0'_depend)
Chris PeBenito d25dd9
files_make_file($1)
Chris PeBenito d25dd9
typeattribute $1 tmpfile;
Chris PeBenito d25dd9
')
Chris PeBenito d25dd9
Chris PeBenito d25dd9
define(`files_make_temporary_file_depend',`
Chris PeBenito d25dd9
attribute tmpfile;
Chris PeBenito a2d824
')
Chris PeBenito a2d824
Chris PeBenito a2d824
########################################
Chris PeBenito 46410f
## <interface name="files_make_tmpfs_file">
Chris PeBenito 46410f
##	<description>
Chris PeBenito 46410f
##		Transform the type into a file, for use on a
Chris PeBenito 46410f
##		virtual memory filesystem (tmpfs).
Chris PeBenito 46410f
##	</description>
Chris PeBenito 46410f
##	<parameter name="type">
Chris PeBenito 46410f
##		The type to be transformed.
Chris PeBenito 46410f
##	</parameter>
Chris PeBenito 46410f
##	<infoflow type="none"/>
Chris PeBenito 46410f
## </interface>
Chris PeBenito 46410f
#
Chris PeBenito 46410f
define(`files_make_tmpfs_file',`
Chris PeBenito 46410f
requires_block_template(`$0'_depend)
Chris PeBenito 46410f
files_make_file($1)
Chris PeBenito 46410f
filesystem_tmpfs_associate($1)
Chris PeBenito 46410f
typeattribute $1 tmpfsfile;
Chris PeBenito 46410f
')
Chris PeBenito 46410f
Chris PeBenito 46410f
define(`files_make_tmpfs_file_depend',`
Chris PeBenito 46410f
attribute tmpfsfile;
Chris PeBenito 46410f
')
Chris PeBenito 46410f
Chris PeBenito 46410f
########################################
Chris PeBenito a2d824
#
Chris PeBenito 2e77b2
# files_get_all_file_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 8a0da1
define(`files_get_all_file_attributes',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 file_type:dir { search getattr };
Chris PeBenito b4cd15
allow $1 file_type:file getattr;
Chris PeBenito b4cd15
allow $1 file_type:lnk_file getattr;
Chris PeBenito b4cd15
allow $1 file_type:fifo_file getattr;
Chris PeBenito b4cd15
allow $1 file_type:sock_file getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 8a0da1
define(`files_get_all_file_attributes_depend',`
Chris PeBenito b4cd15
attribute file_type;
Chris PeBenito b4cd15
class dir { search getattr };
Chris PeBenito b4cd15
class file getattr;
Chris PeBenito b4cd15
class lnk_file getattr;
Chris PeBenito b4cd15
class fifo_file getattr;
Chris PeBenito b4cd15
class sock_file getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito f9438f
#
Chris PeBenito bd202f
# files_manage_all_files_labels(type)
Chris PeBenito ee5772
#
Chris PeBenito ee5772
define(`files_manage_all_files_labels',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito ee5772
allow $1 file_type:dir { getattr relabelfrom relabelto };
Chris PeBenito ee5772
allow $1 file_type:file { getattr relabelfrom relabelto };
Chris PeBenito ee5772
allow $1 file_type:lnk_file { getattr relabelfrom relabelto };
Chris PeBenito ee5772
allow $1 file_type:fifo_file { getattr relabelfrom relabelto };
Chris PeBenito ee5772
allow $1 file_type:sock_file { getattr relabelfrom relabelto };
Chris PeBenito ee5772
allow $1 file_type:blk_file { getattr relabelfrom };
Chris PeBenito ee5772
allow $1 file_type:chr_file { getattr relabelfrom };
Chris PeBenito ee5772
')
Chris PeBenito ee5772
Chris PeBenito ee5772
define(`files_manage_all_files_labels_depend',`
Chris PeBenito ee5772
attribute file_type;
Chris PeBenito ee5772
class dir { relabelfrom relabelto };
Chris PeBenito ee5772
class file { relabelfrom relabelto };
Chris PeBenito ee5772
class lnk_file { relabelfrom relabelto };
Chris PeBenito ee5772
class fifo_file { relabelfrom relabelto };
Chris PeBenito ee5772
class sock_file { relabelfrom relabelto };
Chris PeBenito ee5772
class blk_file relabelfrom;
Chris PeBenito ee5772
class chr_file relabelfrom;
Chris PeBenito ee5772
')
Chris PeBenito ee5772
Chris PeBenito ee5772
########################################
Chris PeBenito ee5772
#
Chris PeBenito 9f2f9e
# files_search_all_directories(domain)
Chris PeBenito f9438f
#
Chris PeBenito f9438f
define(`files_search_all_directories',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito f9438f
allow $1 file_type:dir search;
Chris PeBenito f9438f
')
Chris PeBenito f9438f
Chris PeBenito ee5772
define(`files_search_all_directories_depend',`
Chris PeBenito f9438f
attribute file_type;
Chris PeBenito f9438f
class dir search;
Chris PeBenito f9438f
')
Chris PeBenito f9438f
Chris PeBenito f9438f
########################################
Chris PeBenito ee5772
#
Chris PeBenito 24280a
# files_read_all_directories(domain)
Chris PeBenito 24280a
#
Chris PeBenito 24280a
define(`files_read_all_directories',`
Chris PeBenito 24280a
requires_block_template(`$0'_depend)
Chris PeBenito 24280a
allow $1 file_type:dir { getattr search read };
Chris PeBenito 24280a
')
Chris PeBenito 24280a
Chris PeBenito 24280a
define(`files_read_all_directories_depend',`
Chris PeBenito 24280a
attribute file_type;
Chris PeBenito 24280a
class dir { getattr search read };
Chris PeBenito 24280a
')
Chris PeBenito 24280a
Chris PeBenito 24280a
########################################
Chris PeBenito 24280a
#
Chris PeBenito 9f2f9e
# files_ignore_search_all_directories(domain)
Chris PeBenito 9f2f9e
#
Chris PeBenito 9f2f9e
define(`files_ignore_search_all_directories',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 9f2f9e
dontaudit $1 file_type:dir search;
Chris PeBenito 9f2f9e
')
Chris PeBenito 9f2f9e
Chris PeBenito 9f2f9e
define(`files_ignore_search_all_directories_depend',`
Chris PeBenito 9f2f9e
attribute file_type;
Chris PeBenito 9f2f9e
class dir search;
Chris PeBenito 9f2f9e
')
Chris PeBenito 9f2f9e
Chris PeBenito 9f2f9e
########################################
Chris PeBenito 9f2f9e
#
Chris PeBenito 2e77b2
# files_read_all_directories(domain)
Chris PeBenito ee5772
#
Chris PeBenito ee5772
define(`files_read_all_directories',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito ee5772
allow $1 file_type:dir { getattr search read };
Chris PeBenito ee5772
')
Chris PeBenito ee5772
Chris PeBenito ee5772
define(`files_read_all_directories_depend',`
Chris PeBenito ee5772
attribute file_type;
Chris PeBenito ee5772
class dir { getattr search read };
Chris PeBenito ee5772
')
Chris PeBenito ee5772
Chris PeBenito ee5772
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 2e77b2
# files_mount_on_all_mountpoints(domain)
Chris PeBenito a2d824
#
Chris PeBenito a2d824
define(`files_mount_on_all_mountpoints',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito a2d824
allow $1 mountpoint:dir { getattr search mounton };
Chris PeBenito a2d824
')
Chris PeBenito a2d824
Chris PeBenito a2d824
define(`files_mount_on_all_mountpoints_depend',`
Chris PeBenito a2d824
attribute mountpoint;
Chris PeBenito a2d824
class dir { getattr search mounton };
Chris PeBenito a2d824
')
Chris PeBenito a2d824
Chris PeBenito a2d824
########################################
Chris PeBenito a2d824
#
Chris PeBenito bd202f
# files_read_root_dir(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_read_root_dir',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 root_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 root_t:lnk_file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_read_root_dir_depend',`
Chris PeBenito b4cd15
type root_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_create_root_dir_entry(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_create_root_dir_entry',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 root_t:dir { getattr search read write add_name };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_create_root_dir_entry_depend',`
Chris PeBenito b4cd15
type root_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 9f2f9e
# files_ignore_read_rootfs_file(domain)
Chris PeBenito 9f2f9e
#
Chris PeBenito 9f2f9e
define(`files_ignore_read_rootfs_file',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 9f2f9e
dontaudit $1 root_t:file read;
Chris PeBenito 9f2f9e
')
Chris PeBenito 9f2f9e
Chris PeBenito 9f2f9e
define(`files_ignore_read_rootfs_file_depend',`
Chris PeBenito 9f2f9e
type root_t;
Chris PeBenito 9f2f9e
class file read;
Chris PeBenito 9f2f9e
')
Chris PeBenito 9f2f9e
Chris PeBenito 9f2f9e
########################################
Chris PeBenito 9f2f9e
#
Chris PeBenito bd202f
# files_ignore_modify_rootfs_file(domain)
Chris PeBenito 7aebdb
#
Chris PeBenito 7aebdb
define(`files_ignore_modify_rootfs_file',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 7aebdb
dontaudit $1 root_t:file { read write };
Chris PeBenito 7aebdb
')
Chris PeBenito 7aebdb
Chris PeBenito 7aebdb
define(`files_ignore_modify_rootfs_file_depend',`
Chris PeBenito 7aebdb
type root_t;
Chris PeBenito 7aebdb
class file { read write };
Chris PeBenito 7aebdb
')
Chris PeBenito 7aebdb
Chris PeBenito 7aebdb
########################################
Chris PeBenito 7aebdb
#
Chris PeBenito bd202f
# files_ignore_modify_rootfs_device(domain)
Chris PeBenito 7aebdb
#
Chris PeBenito 7aebdb
define(`files_ignore_modify_rootfs_device',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 7aebdb
dontaudit $1 root_t:chr_file { read write };
Chris PeBenito 7aebdb
')
Chris PeBenito 7aebdb
Chris PeBenito 7aebdb
define(`files_ignore_modify_rootfs_device_depend',`
Chris PeBenito 7aebdb
type root_t;
Chris PeBenito 7aebdb
class chr_file { read write };
Chris PeBenito 7aebdb
')
Chris PeBenito 7aebdb
Chris PeBenito daa0e0
########################################
Chris PeBenito 2e77b2
## <interface name="files_create_private_root_dir_entry">
Chris PeBenito 2e77b2
##	<description>
Chris PeBenito 2e77b2
##		Create an object in the root directory, with a private
Chris PeBenito 2e77b2
##		type.  If no object class is specified, the
Chris PeBenito 2e77b2
##		default is file.
Chris PeBenito 2e77b2
##	</description>
Chris PeBenito 2e77b2
##	<parameter name="domain">
Chris PeBenito 2e77b2
##		The type of the process performing this action.
Chris PeBenito 2e77b2
##	</parameter>
Chris PeBenito 2e77b2
##	<parameter name="private type">
Chris PeBenito 2e77b2
##		The type of the object to be created.
Chris PeBenito 2e77b2
##	</parameter>
Chris PeBenito 2e77b2
##	<parameter name="object" optional="true">
Chris PeBenito 2e77b2
##		The type of the process performing this action.
Chris PeBenito 2e77b2
##	</parameter>
Chris PeBenito 2e77b2
##	<infoflow type="write" weight="10"/>
Chris PeBenito 2e77b2
## </interface>
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_create_private_root_dir_entry',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 root_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
ifelse(`$3',`',`
Chris PeBenito b4cd15
type_transition $1 root_t:file $2;
Chris PeBenito b4cd15
',`
Chris PeBenito b4cd15
type_transition $1 root_t:$3 $2;
Chris PeBenito b4cd15
') dnl end ifelse
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_create_private_root_dir_entry_depend',`
Chris PeBenito b4cd15
type root_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_remove_root_dir_entry(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_remove_root_dir_entry',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 root_t:dir { getattr search read write remove_name };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_remove_root_dir_entry_depend',`
Chris PeBenito b4cd15
type root_t;
Chris PeBenito b4cd15
class dir { getattr search read write remove_name };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_unmount_root_filesystem(domain)
Chris PeBenito a2d824
#
Chris PeBenito a2d824
define(`files_unmount_root_filesystem',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito a2d824
allow $1 root_t:filesystem unmount;
Chris PeBenito a2d824
')
Chris PeBenito a2d824
Chris PeBenito a2d824
define(`files_unmount_root_filesystem_depend',`
Chris PeBenito a2d824
type root_t;
Chris PeBenito a2d824
class filesystem unmount;
Chris PeBenito a2d824
')
Chris PeBenito a2d824
Chris PeBenito a2d824
########################################
Chris PeBenito a2d824
#
Chris PeBenito 3ec805
# files_search_general_system_config_directory(domain)
Chris PeBenito 3ec805
#
Chris PeBenito 3ec805
define(`files_search_general_system_config_directory',`
Chris PeBenito 3ec805
requires_block_template(`$0'_depend)
Chris PeBenito 3ec805
allow $1 etc_t:dir search;
Chris PeBenito 3ec805
')
Chris PeBenito 3ec805
Chris PeBenito 3ec805
define(`files_search_general_system_config_directory_depend',`
Chris PeBenito 3ec805
type etc_t;
Chris PeBenito 3ec805
class dir search;
Chris PeBenito 3ec805
')
Chris PeBenito 3ec805
Chris PeBenito 3ec805
########################################
Chris PeBenito 3ec805
#
Chris PeBenito 3ec805
# files_read_general_system_config_directory(domain)
Chris PeBenito 3ec805
#
Chris PeBenito 3ec805
define(`files_read_general_system_config_directory',`
Chris PeBenito 3ec805
requires_block_template(`$0'_depend)
Chris PeBenito 3ec805
allow $1 etc_t:dir { getattr search read };
Chris PeBenito 3ec805
')
Chris PeBenito 3ec805
Chris PeBenito 3ec805
define(`files_read_general_system_config_directory_depend',`
Chris PeBenito 3ec805
type etc_t;
Chris PeBenito 3ec805
class dir { getattr search read };
Chris PeBenito 3ec805
')
Chris PeBenito 3ec805
Chris PeBenito 3ec805
########################################
Chris PeBenito 3ec805
#
Chris PeBenito 849380
# files_read_general_system_config(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_read_general_system_config',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 etc_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 etc_t:file { getattr read };
Chris PeBenito b4cd15
allow $1 etc_t:lnk_file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_read_general_system_config_depend',`
Chris PeBenito b4cd15
type etc_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
class file { getattr read };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 849380
# files_modify_general_system_config(domain)
Chris PeBenito 849380
#
Chris PeBenito 849380
define(`files_modify_general_system_config',`
Chris PeBenito 849380
requires_block_template(`$0'_depend)
Chris PeBenito 849380
allow $1 etc_t:dir { getattr search read };
Chris PeBenito 849380
allow $1 etc_t:file { getattr read write };
Chris PeBenito 849380
allow $1 etc_t:lnk_file { getattr read };
Chris PeBenito 849380
')
Chris PeBenito 849380
Chris PeBenito 849380
define(`files_modify_general_system_config_depend',`
Chris PeBenito 849380
type etc_t;
Chris PeBenito 849380
class dir { getattr search read };
Chris PeBenito 849380
class file { getattr read write };
Chris PeBenito 849380
class lnk_file { getattr read };
Chris PeBenito 849380
')
Chris PeBenito 849380
Chris PeBenito 849380
########################################
Chris PeBenito 849380
#
Chris PeBenito 849380
# files_manage_general_system_config(domain)
Chris PeBenito 849380
#
Chris PeBenito 849380
define(`files_manage_general_system_config',`
Chris PeBenito 849380
requires_block_template(`$0'_depend)
Chris PeBenito 849380
allow $1 etc_t:dir { read getattr lock search ioctl add_name remove_name write };
Chris PeBenito 849380
allow $1 etc_t:file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito 849380
allow $1 etc_t:lnk_file { getattr read };
Chris PeBenito 849380
')
Chris PeBenito 849380
Chris PeBenito 849380
define(`files_manage_general_system_config_depend',`
Chris PeBenito 849380
type etc_t;
Chris PeBenito 849380
class dir { read getattr lock search ioctl add_name remove_name write };
Chris PeBenito 849380
class file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito 849380
class lnk_file { getattr read };
Chris PeBenito 849380
')
Chris PeBenito 849380
Chris PeBenito 849380
########################################
Chris PeBenito 46410f
## <interface name="files_remove_general_system_config">
Chris PeBenito 46410f
##	<description>
Chris PeBenito 46410f
##		Delete system configuration files in /etc.
Chris PeBenito 46410f
##	</description>
Chris PeBenito 46410f
##	<parameter name="domain">
Chris PeBenito 46410f
##		The type of the process performing this action.
Chris PeBenito 46410f
##	</parameter>
Chris PeBenito 46410f
##	<infoflow type="write" weight="1"/>
Chris PeBenito 46410f
## </interface>
Chris PeBenito 46410f
#
Chris PeBenito 46410f
define(`files_remove_general_system_config',`
Chris PeBenito 46410f
requires_block_template(`$0'_depend)
Chris PeBenito 46410f
allow $1 etc_t:dir { getattr search read write remove_name };
Chris PeBenito 46410f
allow $1 etc_t:file unlink;
Chris PeBenito 46410f
')
Chris PeBenito 46410f
Chris PeBenito 46410f
define(`files_remove_general_system_config_depend',`
Chris PeBenito 46410f
type etc_t;
Chris PeBenito 46410f
class dir { getattr search read write remove_name };
Chris PeBenito 46410f
class file unlink;
Chris PeBenito 46410f
')
Chris PeBenito 46410f
Chris PeBenito 46410f
########################################
Chris PeBenito 849380
#
Chris PeBenito bd202f
# files_execute_system_config_script(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_execute_system_config_script',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 etc_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 etc_t:lnk_file { getattr read };
Chris PeBenito b4cd15
allow $1 etc_t:file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_execute_system_config_script_depend',`
Chris PeBenito b4cd15
type etc_t, etc_runtime_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
class file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_create_boot_flag(type)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# /halt, /.autofsck, etc
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_create_boot_flag',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 root_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
allow $1 etc_runtime_t:file { create read write setattr unlink };
Chris PeBenito b4cd15
type_transition $1 root_t:file etc_runtime_t;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_create_boot_flag_depend',`
Chris PeBenito b4cd15
type root_t, etc_runtime_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name };
Chris PeBenito b4cd15
class file { create read write setattr };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_create_runtime_system_config(type)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_create_runtime_system_config',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 etc_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
allow $1 etc_runtime_t:file { create read write setattr unlink };
Chris PeBenito b4cd15
type_transition $1 etc_t:file etc_runtime_t;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_create_runtime_system_config_depend',`
Chris PeBenito b4cd15
type etc_t, etc_runtime_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name };
Chris PeBenito b4cd15
class file { create read write setattr };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_read_runtime_system_config(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_read_runtime_system_config',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 etc_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 etc_runtime_t:file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_create_runtime_system_config_depend',`
Chris PeBenito b4cd15
type etc_t, etc_runtime_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
class file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_create_private_config(domain,privatetype,[class(es)])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_create_private_config',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 etc_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
ifelse(`$3',`',`
Chris PeBenito b4cd15
type_transition $1 etc_t:file $2;
Chris PeBenito b4cd15
',`
Chris PeBenito b4cd15
type_transition $1 etc_t:$3 $2;
Chris PeBenito b4cd15
') dnl end ifelse
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_create_private_config_depend',`
Chris PeBenito b4cd15
type etc_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito daa0e0
## <interface name="files_list_home_directories">
Chris PeBenito daa0e0
##	<description>
Chris PeBenito daa0e0
##		Get listing home home directories.
Chris PeBenito daa0e0
##	</description>
Chris PeBenito daa0e0
##	<parameter name="domain">
Chris PeBenito daa0e0
##		The type of the process performing this action.
Chris PeBenito daa0e0
##	</parameter>
Chris PeBenito daa0e0
##	<infoflow type="read" weight="10"/>
Chris PeBenito daa0e0
## </interface>
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
define(`files_list_home_directories',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 home_root_t:dir { getattr search read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 3ce6cb
define(`files_list_home_directories_depend',`
Chris PeBenito 3ce6cb
type home_root_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_create_private_tmp_data(domain,private_type,[object class(es)])
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
define(`files_create_private_tmp_data',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 tmp_t:dir { getattr search read write add_name remove_name };
Chris PeBenito 3ce6cb
ifelse(`$3',`',`
Chris PeBenito 3ce6cb
type_transition $1 tmp_t:file $2;
Chris PeBenito 3ce6cb
',`
Chris PeBenito 3ce6cb
type_transition $1 tmp_t:$3 $2;
Chris PeBenito 3ce6cb
')
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 3ce6cb
define(`files_create_private_tmp_data_depend',`
Chris PeBenito 3ce6cb
type tmp_t;
Chris PeBenito 3ce6cb
class dir { getattr search read write add_name };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_remove_all_tmp_data(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
define(`files_remove_all_tmp_data',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 tmpfile:dir { getattr search read write add_name remove_name rmdir };
Chris PeBenito 3ce6cb
allow $1 tmpfile:file { getattr unlink };
Chris PeBenito 3ce6cb
allow $1 tmpfile:lnk_file { getattr unlink };
Chris PeBenito 3ce6cb
allow $1 tmpfile:fifo_file { getattr unlink };
Chris PeBenito 3ce6cb
allow $1 tmpfile:sock_file { getattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 3ce6cb
define(`files_remove_all_tmp_data_depend',`
Chris PeBenito 3ce6cb
attribute tmpfile;
Chris PeBenito 3ce6cb
class dir { getattr search read write add_name remove_name rmdir };
Chris PeBenito 3ce6cb
class file { getattr unlink };
Chris PeBenito 3ce6cb
class lnk_file { getattr unlink };
Chris PeBenito 3ce6cb
class fifo_file { getattr unlink };
Chris PeBenito 3ce6cb
class sock_file { getattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_read_general_application_resources(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
define(`files_read_general_application_resources',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 usr_t:dir { getattr search read };
Chris PeBenito 3ce6cb
allow $1 usr_t:{ file lnk_file } { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 3ce6cb
define(`files_read_general_application_resources_depend',`
Chris PeBenito 3ce6cb
type usr_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito 3ce6cb
class file { getattr read };
Chris PeBenito 3ce6cb
class lnk_file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito daa0e0
## <interface name="files_execute_system_source_code_scripts">
Chris PeBenito daa0e0
##	<description>
Chris PeBenito daa0e0
##		Execute programs in /usr/src in the caller domain.
Chris PeBenito daa0e0
##	</description>
Chris PeBenito daa0e0
##	<parameter name="domain">
Chris PeBenito daa0e0
##		The type of the process performing this action.
Chris PeBenito daa0e0
##	</parameter>
Chris PeBenito daa0e0
##	<infoflow type="none"/>
Chris PeBenito daa0e0
## </interface>
Chris PeBenito daa0e0
#
Chris PeBenito daa0e0
define(`files_execute_system_source_code_scripts',`
Chris PeBenito daa0e0
requires_block_template(`$0'_depend)
Chris PeBenito daa0e0
allow $1 usr_t:dir search;
Chris PeBenito daa0e0
allow $1 src_t:dir { getattr search read };
Chris PeBenito daa0e0
allow $1 src_t:lnk_file { getattr read };
Chris PeBenito daa0e0
allow $1 src_t:file { getattr read execute execute_no_trans };
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
define(`files_read_system_source_code_depend',`
Chris PeBenito daa0e0
type usr_t, src_t;
Chris PeBenito daa0e0
class dir { getattr search read };
Chris PeBenito daa0e0
class file { getattr read execute execute_no_trans };
Chris PeBenito daa0e0
class lnk_file { getattr read };
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
# files_read_system_source_code(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
define(`files_read_system_source_code',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 usr_t:dir search;
Chris PeBenito 3ce6cb
allow $1 src_t:dir { getattr search read };
Chris PeBenito 3ce6cb
allow $1 src_t:{ file lnk_file } { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 3ce6cb
define(`files_read_system_source_code_depend',`
Chris PeBenito 3ce6cb
type usr_t, src_t;
Chris PeBenito 3ce6cb
class dir { getattr search read };
Chris PeBenito 3ce6cb
class file { getattr read };
Chris PeBenito 3ce6cb
class lnk_file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
# files_search_system_state_data_directory(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
define(`files_search_system_state_data_directory',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 var_t:dir search;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 3ce6cb
define(`files_search_system_state_data_directory_depend',`
Chris PeBenito d0eddb
type var_t;
Chris PeBenito d0eddb
class dir search;
Chris PeBenito d0eddb
')
Chris PeBenito d0eddb
Chris PeBenito d0eddb
########################################
Chris PeBenito d0eddb
#
Chris PeBenito d0eddb
# files_ignore_search_system_state_data_directory(domain)
Chris PeBenito d0eddb
#
Chris PeBenito d0eddb
define(`files_ignore_search_system_state_data_directory',`
Chris PeBenito d0eddb
requires_block_template(`$0'_depend)
Chris PeBenito d0eddb
dontaudit $1 var_t:dir search;
Chris PeBenito d0eddb
')
Chris PeBenito d0eddb
Chris PeBenito d0eddb
define(`files_ignore_search_system_state_data_directory_depend',`
Chris PeBenito 3ce6cb
type var_t;
Chris PeBenito 3ce6cb
class dir search;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
# files_manage_pseudorandom_saved_seed(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
define(`files_manage_pseudorandom_saved_seed',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 var_t:dir search;
Chris PeBenito 3ce6cb
allow $1 var_lib_t:dir { getattr search read write add_name remove_name };
Chris PeBenito 3ce6cb
allow $1 var_lib_t:file { getattr create read write setattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 3ce6cb
define(`files_manage_pseudorandom_saved_seed_depend',`
Chris PeBenito 3ce6cb
type var_t, var_lib_t;
Chris PeBenito 3ce6cb
class dir { getattr search read write add_name remove_name };
Chris PeBenito 3ce6cb
class file { getattr create read write setattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_manage_system_lock_files(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 033c80
define(`files_manage_system_lock_files',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 var_lock_t:dir { getattr search create read write setattr add_name remove_name rmdir };
Chris PeBenito b4cd15
allow $1 var_lock_t:file { getattr create read write setattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 033c80
define(`files_manage_system_lock_files_depend',`
Chris PeBenito b4cd15
type var_lock_t;
Chris PeBenito b4cd15
class dir { getattr search create read write setattr add_name remove_name rmdir };
Chris PeBenito b4cd15
class file { getattr create read write setattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# files_remove_all_lock_files(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`files_remove_all_lock_files',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 lockfile:dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
allow $1 lockfile:file { getattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`files_remove_all_lock_files_depend',`
Chris PeBenito b4cd15
attribute lockfile;
Chris PeBenito b4cd15
class dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
class file { getattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 075c4f
# files_create_private_lock_file(domain,private_type,[object class(es)])
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
define(`files_create_private_lock_file',`
Chris PeBenito 075c4f
requires_block_template(`$0'_depend)
Chris PeBenito 075c4f
allow $1 var_t:dir search;
Chris PeBenito 075c4f
allow $1 var_lock_t:dir { getattr search read write add_name remove_name };
Chris PeBenito 075c4f
ifelse(`$3',`',`
Chris PeBenito 075c4f
type_transition $1 var_lock_t:file $2;
Chris PeBenito 075c4f
',`
Chris PeBenito 075c4f
type_transition $1 var_lock_t:$3 $2;
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
define(`files_create_private_lock_file_depend',`
Chris PeBenito 075c4f
type var_t, var_lock_t;
Chris PeBenito 075c4f
class dir { getattr search read write add_name };
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
########################################
Chris PeBenito 075c4f
#
Chris PeBenito 3ce6cb
# files_search_runtime_data_directory(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
define(`files_search_runtime_data_directory',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 var_t:dir search;
Chris PeBenito 3ce6cb
allow $1 var_run_t:dir search;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 3ce6cb
define(`files_search_runtime_data_directory_depend',`
Chris PeBenito 3ce6cb
type var_t, var_run_t;
Chris PeBenito 3ce6cb
class dir search;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 075c4f
# files_ignore_search_runtime_data_directory(domain)
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
define(`files_ignore_search_runtime_data_directory',`
Chris PeBenito 075c4f
requires_block_template(`$0'_depend)
Chris PeBenito 075c4f
allow $1 var_run_t:dir search;
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
define(`files_ignore_search_runtime_data_directory_depend',`
Chris PeBenito 075c4f
type var_run_t;
Chris PeBenito 075c4f
class dir search;
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
########################################
Chris PeBenito 075c4f
#
Chris PeBenito 3ce6cb
# files_read_runtime_data_directory(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 3ce6cb
define(`files_read_runtime_data_directory',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 var_t:dir search;
Chris PeBenito 3ce6cb
allow $1 var_run_t:dir { getattr search read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 3ce6cb
define(`files_read_runtime_data_directory_depend',`
Chris PeBenito 3ce6cb
type var_t, var_run_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
')
Chris PeBenito a266e3
Chris PeBenito a266e3
########################################
Chris PeBenito a266e3
#
Chris PeBenito 3ce6cb
# files_create_daemon_runtime_data(domain,pidfile,[object class(es)])
Chris PeBenito a266e3
#
Chris PeBenito 3ce6cb
define(`files_create_daemon_runtime_data',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 var_t:dir search;
Chris PeBenito 3ce6cb
allow $1 var_run_t:dir { getattr search read write add_name remove_name };
Chris PeBenito 3ce6cb
ifelse(`$3',`',`
Chris PeBenito 3ce6cb
type_transition $1 var_run_t:file $2;
Chris PeBenito 3ce6cb
',`
Chris PeBenito 3ce6cb
type_transition $1 var_run_t:$3 $2;
Chris PeBenito 3ce6cb
') dnl end ifelse
Chris PeBenito a266e3
')
Chris PeBenito a266e3
Chris PeBenito 3ce6cb
define(`files_create_daemon_runtime_data_depend',`
Chris PeBenito 3ce6cb
type var_t, var_run_t;
Chris PeBenito 3ce6cb
class dir { getattr search read write add_name remove_name };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
########################################
Chris PeBenito 3ce6cb
#
Chris PeBenito bd202f
# files_modify_system_runtime_data(domain)
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
define(`files_modify_system_runtime_data',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 var_t:dir search;
Chris PeBenito 3ce6cb
allow $1 var_run_t:dir { getattr search read };
Chris PeBenito 3ce6cb
allow $1 var_run_t:file { getattr read write };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
define(`files_modify_system_runtime_data_depend',`
Chris PeBenito 3ce6cb
type var_t, var_run_t;
Chris PeBenito a266e3
class dir { getattr search read };
Chris PeBenito 3ce6cb
class file { getattr read write };
Chris PeBenito 3ce6cb
')
Chris PeBenito 3ce6cb
Chris PeBenito 3ce6cb
########################################
Chris PeBenito 3ce6cb
#
Chris PeBenito bd202f
# files_remove_all_daemon_runtime_data(domain)
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
define(`files_remove_all_daemon_runtime_data',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 3ce6cb
allow $1 var_t:dir search;
Chris PeBenito 3ce6cb
allow $1 var_run_t:{ sock_file lnk_file } { getattr unlink };
Chris PeBenito 3ce6cb
allow $1 var_run_t:dir rmdir;
Chris PeBenito 3ce6cb
allow $1 pidfile:dir { getattr search read write add_name remove_name };
Chris PeBenito 3ce6cb
allow $1 pidfile:file { getattr unlink };
Chris PeBenito 3ce6cb
allow $1 pidfile:sock_file { getattr unlink };
Chris PeBenito 3ce6cb
')
Chris PeBenito a266e3
Chris PeBenito 3ce6cb
define(`files_remove_all_daemon_runtime_data_depend',`
Chris PeBenito 3ce6cb
attribute pidfile;
Chris PeBenito 3ce6cb
type var_t, var_run_t;
Chris PeBenito 3ce6cb
class dir { getattr search read write add_name remove_name rmdir };
Chris PeBenito 3ce6cb
class file { getattr unlink };
Chris PeBenito 3ce6cb
class lnk_file { getattr unlink };
Chris PeBenito 3ce6cb
class sock_file { getattr unlink };
Chris PeBenito a266e3
')
Chris PeBenito 7bba9d
Chris PeBenito 7bba9d
########################################
Chris PeBenito 7bba9d
#
Chris PeBenito 7bba9d
# files_search_system_spool_directory(domain)
Chris PeBenito 7bba9d
#
Chris PeBenito 7bba9d
define(`files_search_system_spool_directory',`
Chris PeBenito 7bba9d
requires_block_template(`$0'_depend)
Chris PeBenito 7bba9d
allow $1 var_t:dir search;
Chris PeBenito 7bba9d
allow $1 var_spool_t:dir search;
Chris PeBenito 7bba9d
')
Chris PeBenito 7bba9d
Chris PeBenito 7bba9d
define(`files_search_system_spool_directory_depend',`
Chris PeBenito 7bba9d
type var_t, var_spool_t;
Chris PeBenito 7bba9d
class dir search;
Chris PeBenito 7bba9d
')
Chris PeBenito 7bba9d
Chris PeBenito 7bba9d
########################################
Chris PeBenito 7bba9d
#
Chris PeBenito 7bba9d
# files_read_system_spool_directory(domain)
Chris PeBenito 7bba9d
#
Chris PeBenito 7bba9d
define(`files_read_system_spool_directory',`
Chris PeBenito 7bba9d
requires_block_template(`$0'_depend)
Chris PeBenito 7bba9d
allow $1 var_t:dir search;
Chris PeBenito 7bba9d
allow $1 var_spool_t:dir { getattr search read };
Chris PeBenito 7bba9d
')
Chris PeBenito 7bba9d
Chris PeBenito 7bba9d
define(`files_read_system_spool_directory_depend',`
Chris PeBenito 7bba9d
type var_t, var_spool_t;
Chris PeBenito 7bba9d
class dir { getattr search read };
Chris PeBenito 7bba9d
')
Chris PeBenito 2e77b2
Chris PeBenito 2e77b2
## </module>