Chris PeBenito f267df
## <module name="filesystem" layer="kernel">
Chris PeBenito e32d52
## <summary>Policy for filesystems.</summary>
Chris PeBenito e181fe
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_make_filesystem(type)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_make_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	typeattribute $1 fs_type;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_make_filesystem_depend',`
Chris PeBenito 0c73cd
	attribute fs_type;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_associate(type)
Chris PeBenito 5d7812
#
Chris PeBenito 5d7812
define(`filesystem_associate',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_t:filesystem associate;
Chris PeBenito 5d7812
')
Chris PeBenito 5d7812
Chris PeBenito 5d7812
define(`filesystem_associate_depend',`
Chris PeBenito 0c73cd
	type fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem associate;
Chris PeBenito 5d7812
')
Chris PeBenito 5d7812
Chris PeBenito 5d7812
########################################
Chris PeBenito 5d7812
#
Chris PeBenito bd202f
# filesystem_noxattr_associate(type)
Chris PeBenito 5d7812
#
Chris PeBenito 33bc0d
define(`filesystem_noxattr_associate',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 autofs_t:filesystem associate;
Chris PeBenito 0c73cd
	allow $1 cifs_t:filesystem associate;
Chris PeBenito 0c73cd
	allow $1 dosfs_t:filesystem associate;
Chris PeBenito 0c73cd
	allow $1 iso9660_t:filesystem associate;
Chris PeBenito 0c73cd
	allow $1 nfs_t:filesystem associate;
Chris PeBenito 0c73cd
	allow $1 removable_t:filesystem associate;
Chris PeBenito 0c73cd
	allow $1 usbfs_t:filesystem associate;
Chris PeBenito 5d7812
')
Chris PeBenito 5d7812
Chris PeBenito 33bc0d
define(`filesystem_noxattr_associate_depend',`
Chris PeBenito 0c73cd
	type fs_t, nfs_t, cifs_t, dosfs_t, iso9660_t, autofs_t, usbfs_t, removable_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem associate;
Chris PeBenito 5d7812
')
Chris PeBenito 5d7812
Chris PeBenito 5d7812
########################################
Chris PeBenito 5d7812
#
Chris PeBenito bd202f
# filesystem_mount_persistent_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_persistent_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_persistent_filesystem_depend',`
Chris PeBenito 0c73cd
	type fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_persistent_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_persistent_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_persistent_filesystem_depend',`
Chris PeBenito 0c73cd
	type fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_persistent_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_persistent_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_persistent_filesystem_depend',`
Chris PeBenito 0c73cd
	type fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_persistent_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_persistent_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_persistent_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_ignore_get_persistent_filesystem_attributes(domain)
Chris PeBenito 053f6a
#
Chris PeBenito 219bcf
define(`filesystem_ignore_get_persistent_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	dontaudit $1 fs_t:filesystem getattr;
Chris PeBenito 053f6a
')
Chris PeBenito 053f6a
Chris PeBenito 219bcf
define(`filesystem_ignore_get_persistent_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito 053f6a
')
Chris PeBenito 053f6a
Chris PeBenito 053f6a
########################################
Chris PeBenito 053f6a
#
Chris PeBenito dc771f
# filesystem_relabelfrom_persistent_filesystem(domain)
Chris PeBenito dc771f
#
Chris PeBenito dc771f
define(`filesystem_relabelfrom_persistent_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_t:filesystem relabelfrom;
Chris PeBenito dc771f
')
Chris PeBenito dc771f
Chris PeBenito dc771f
define(`filesystem_relabelfrom_persistent_filesystem_depend',`
Chris PeBenito 0c73cd
	type fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem relabelfrom;
Chris PeBenito dc771f
')
Chris PeBenito dc771f
Chris PeBenito dc771f
########################################
Chris PeBenito dc771f
#
Chris PeBenito bd202f
# filesystem_mount_automount_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_automount_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 autofs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_automount_filesystem_depend',`
Chris PeBenito 0c73cd
	type autofs_t;
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_automount_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_automount_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 autofs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_automount_filesystem_depend',`
Chris PeBenito 0c73cd
	type autofs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_automount_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_automount_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 autofs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_automount_filesystem_depend',`
Chris PeBenito 0c73cd
	type autofs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_automount_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_automount_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 autofs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_automount_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type autofs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_register_binary_executable_type(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_register_binary_executable_type',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 binfmt_misc_fs_t:dir { getattr search };
Chris PeBenito 0c73cd
	allow $1 binfmt_misc_fs_t:file { getattr ioctl write };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_register_binary_executable_type_depend',`
Chris PeBenito 0c73cd
	type binfmt_misc_fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir { getattr search };
Chris PeBenito 0c73cd
	class file { getattr ioctl write };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_mount_windows_network_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_windows_network_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 cifs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_windows_network_filesystem_depend',`
Chris PeBenito 0c73cd
	type cifs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_windows_network_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_windows_network_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 cifs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_windows_network_filesystem_depend',`
Chris PeBenito 0c73cd
	type cifs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_windows_network_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_windows_network_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 cifs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_windows_network_filesystem_depend',`
Chris PeBenito 0c73cd
	type cifs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_windows_network_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_windows_network_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 cifs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_windows_network_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type cifs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b16c6b
# filesystem_execute_windows_network_files(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_execute_windows_network_files',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 cifs_t:dir r_dir_perms;
Chris PeBenito 0c73cd
	allow $1 cifs_t:file { getattr read execute execute_no_trans };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_execute_windows_network_files_depend',`
Chris PeBenito 0c73cd
	type cifs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir r_dir_perms;
Chris PeBenito 0c73cd
	class file { getattr read execute execute_no_trans };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
# filesystem_manage_windows_network_directories(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_directories',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 cifs_t:dir create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_directories_depend',`
Chris PeBenito 0c73cd
	type cifs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
# filesystem_manage_windows_network_files(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_files',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 cifs_t:dir rw_dir_perms;
Chris PeBenito 0c73cd
	allow $1 cifs_t:file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_files_depend',`
Chris PeBenito 0c73cd
	type cifs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir rw_dir_perms;
Chris PeBenito 0c73cd
	class file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
# filesystem_manage_windows_network_symbolic_links(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_symbolic_links',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 cifs_t:dir rw_dir_perms;
Chris PeBenito 0c73cd
	allow $1 cifs_t:lnk_file create_lnk_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_symbolic_links_depend',`
Chris PeBenito 0c73cd
	type cifs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir rw_dir_perms;
Chris PeBenito 0c73cd
	class lnk_file create_lnk_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
# filesystem_manage_windows_network_named_pipes(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_named_pipes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 cifs_t:dir rw_dir_perms;
Chris PeBenito 0c73cd
	allow $1 cifs_t:fifo_file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_named_pipes_depend',`
Chris PeBenito 0c73cd
	type cifs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir rw_dir_perms;
Chris PeBenito 0c73cd
	class fifo_file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
# filesystem_manage_windows_network_named_sockets(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_named_sockets',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 cifs_t:dir rw_file_perms;
Chris PeBenito 0c73cd
	allow $1 cifs_t:sock_file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_named_sockets_depend',`
Chris PeBenito 0c73cd
	type cifs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir rw_dir_perms;
Chris PeBenito 0c73cd
	class sock_file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito bd202f
# filesystem_mount_dos_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_dos_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 dosfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_dos_filesystem_depend',`
Chris PeBenito 0c73cd
	type dosfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_dos_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_dos_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 dosfs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_dos_filesystem_depend',`
Chris PeBenito 0c73cd
	type dosfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_dos_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_dos_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 dosfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_dos_filesystem_depend',`
Chris PeBenito 0c73cd
	type dosfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_dos_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_dos_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 dosfs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_dos_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type dosfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito dc771f
# filesystem_relabelfrom_dos_filesystem(domain)
Chris PeBenito dc771f
#
Chris PeBenito dc771f
define(`filesystem_relabelfrom_dos_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 dosfs_t:filesystem relabelfrom;
Chris PeBenito dc771f
')
Chris PeBenito dc771f
Chris PeBenito dc771f
define(`filesystem_relabelfrom_dos_filesystem_depend',`
Chris PeBenito 0c73cd
	type dosfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem relabelfrom;
Chris PeBenito dc771f
')
Chris PeBenito dc771f
Chris PeBenito dc771f
########################################
Chris PeBenito dc771f
#
Chris PeBenito bd202f
# filesystem_mount_cd_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_cd_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 iso9660_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_cd_filesystem_depend',`
Chris PeBenito 0c73cd
	type iso9660_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_cd_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_cd_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 iso9660_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_cd_filesystem_depend',`
Chris PeBenito 0c73cd
	type iso9660_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_cd_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_cd_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 iso9660_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_cd_filesystem_depend',`
Chris PeBenito 0c73cd
	type iso9660_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_cd_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_cd_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 iso9660_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_cd_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type iso9660_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_mount_nfs_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_nfs_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_nfs_filesystem_depend',`
Chris PeBenito 0c73cd
	type nfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_nfs_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_nfs_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_nfs_filesystem_depend',`
Chris PeBenito 0c73cd
	type nfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_nfs_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_nfs_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_nfs_filesystem_depend',`
Chris PeBenito 0c73cd
	type nfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_nfs_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_nfs_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_nfs_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type nfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b16c6b
# filesystem_execute_nfs_files(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_execute_nfs_files',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfs_t:dir r_dir_perms;
Chris PeBenito 0c73cd
	allow $1 nfs_t:file { getattr read execute execute_no_trans };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_execute_nfs_files_depend',`
Chris PeBenito 0c73cd
	type nfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir r_dir_perms;
Chris PeBenito 0c73cd
	class file { getattr read execute execute_no_trans };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
# filesystem_manage_nfs_directories(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_directories',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfs_t:dir create_dir_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_directories_depend',`
Chris PeBenito 0c73cd
	type nfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir create_dir_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
# filesystem_manage_nfs_files(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_files',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfs_t:dir rw_dir_perms;
Chris PeBenito 0c73cd
	allow $1 nfs_t:file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_files_depend',`
Chris PeBenito 0c73cd
	type nfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir rw_dir_perms;
Chris PeBenito 0c73cd
	class file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
# filesystem_manage_nfs_symbolic_links(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_symbolic_links',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfs_t:dir rw_dir_perms;
Chris PeBenito 0c73cd
	allow $1 nfs_t:lnk_file create_lnk_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_symbolic_links_depend',`
Chris PeBenito 0c73cd
	type nfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir r_dir_perms;
Chris PeBenito 0c73cd
	class lnk_file create_lnk_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
# filesystem_manage_nfs_named_pipes(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_named_pipes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfs_t:dir rw_dir_perms;
Chris PeBenito 0c73cd
	allow $1 nfs_t:fifo_file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_named_pipes_depend',`
Chris PeBenito 0c73cd
	type nfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir { getattr search read write add_name remove_name };
Chris PeBenito 0c73cd
	class fifo_file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
# filesystem_manage_nfs_named_sockets(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_named_sockets',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfs_t:dir rw_dir_perms;
Chris PeBenito 0c73cd
	allow $1 nfs_t:sock_file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_named_sockets_depend',`
Chris PeBenito 0c73cd
	type nfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir rw_dir_perms;
Chris PeBenito 0c73cd
	class sock_file create_file_perms;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito bd202f
# filesystem_mount_nfsd_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_nfsd_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfsd_fs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_nfsd_filesystem_depend',`
Chris PeBenito 0c73cd
	type nfsd_fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_nfsd_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_nfsd_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfsd_fs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_nfsd_filesystem_depend',`
Chris PeBenito 0c73cd
	type nfsd_fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_nfsd_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_nfsd_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfsd_fs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_nfsd_filesystem_depend',`
Chris PeBenito 0c73cd
	type nfsd_fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_nfsd_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_nfsd_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 nfsd_fs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_nfsd_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type nfsd_fs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_mount_ram_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_ram_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 ramfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_ram_filesystem_depend',`
Chris PeBenito 0c73cd
	type ramfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_ram_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_ram_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 ramfs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_ram_filesystem_depend',`
Chris PeBenito 0c73cd
	type ramfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_ram_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_ram_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 ramfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_ram_filesystem_depend',`
Chris PeBenito 0c73cd
	type ramfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_ram_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_ram_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 ramfs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_ram_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type ramfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_mount_rom_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_rom_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 romfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_rom_filesystem_depend',`
Chris PeBenito 0c73cd
	type romfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_rom_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_rom_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 romfs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_rom_filesystem_depend',`
Chris PeBenito 0c73cd
	type romfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_rom_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_rom_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 romfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_rom_filesystem_depend',`
Chris PeBenito 0c73cd
	type romfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_rom_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_rom_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 romfs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_rom_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type romfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_mount_rpc_pipefs_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_rpc_pipefs_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 rpc_pipefs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_rpc_pipefs_filesystem_depend',`
Chris PeBenito 0c73cd
	type rpc_pipefs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_rpc_pipefs_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_rpc_pipefs_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 rpc_pipefs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_rpc_pipefs_filesystem_depend',`
Chris PeBenito 0c73cd
	type rpc_pipefs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_rpc_pipefs_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_rpc_pipefs_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 rpc_pipefs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_rpc_pipefs_filesystem_depend',`
Chris PeBenito 0c73cd
	type rpc_pipefs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_rpc_pipefs_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_rpc_pipefs_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 rpc_pipefs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_rpc_pipefs_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type rpc_pipefs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_mount_tmpfs_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_tmpfs_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_tmpfs_filesystem_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_tmpfs_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_tmpfs_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_tmpfs_filesystem_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_tmpfs_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_tmpfs_filesystem',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_tmpfs_filesystem_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_get_tmpfs_filesystem_attributes(domain)
Chris PeBenito b4cd15
#
Chris PeBenito 219bcf
define(`filesystem_get_tmpfs_filesystem_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_tmpfs_filesystem_attributes_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito daa0e0
## <interface name="filesystem_tmpfs_associate">
Chris PeBenito daa0e0
##	<description>
Chris PeBenito daa0e0
##		Allow the type to associate to tmpfs filesystems.
Chris PeBenito daa0e0
##	</description>
Chris PeBenito daa0e0
##	<parameter name="type">
Chris PeBenito daa0e0
##		The type of the object to be associated.
Chris PeBenito daa0e0
##	</parameter>
Chris PeBenito 957e26
##	<infoflow type="none"/>
Chris PeBenito daa0e0
## </interface>
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_tmpfs_associate',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:filesystem associate;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_tmpfs_associate_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem associate;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_create_private_tmpfs_data(domain,derivedtype,[class])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_create_private_tmpfs_data',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $2 tmpfs_t:filesystem associate;
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:dir rw_dir_perms;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	ifelse(`$3',`',`
Chris PeBenito 0c73cd
		type_transition $1 tmpfs_t:file $2;
Chris PeBenito 0c73cd
	',`
Chris PeBenito 0c73cd
		type_transition $1 tmpfs_t:$3 $2;
Chris PeBenito 0c73cd
	')
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_create_private_tmpfs_data_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem associate;
Chris PeBenito 0c73cd
	class dir rw_dir_perms; 
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito daa0e0
## <interface name="filesystem_use_tmpfs_character_devices">
Chris PeBenito daa0e0
##	<description>
Chris PeBenito daa0e0
##		Read and write character nodes on tmpfs filesystems.
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="both" weight="10"/>
Chris PeBenito daa0e0
## </interface>
Chris PeBenito daa0e0
#
Chris PeBenito daa0e0
define(`filesystem_use_tmpfs_character_devices',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:dir r_dir_perms;
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:chr_file rw_file_perms;
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
define(`filesystem_use_tmpfs_character_devices_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir r_dir_perms; 
Chris PeBenito 0c73cd
	class chr_file rw_file_perms;
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
########################################
Chris PeBenito efd8ed
## <interface name="filesystem_relabel_tmpfs_character_devices">
Chris PeBenito efd8ed
##	<description>
Chris PeBenito efd8ed
##		Relabel character nodes on tmpfs filesystems.
Chris PeBenito efd8ed
##	</description>
Chris PeBenito efd8ed
##	<parameter name="domain">
Chris PeBenito efd8ed
##		The type of the process performing this action.
Chris PeBenito efd8ed
##	</parameter>
Chris PeBenito efd8ed
##	<infoflow type="both" weight="10"/>
Chris PeBenito efd8ed
## </interface>
Chris PeBenito efd8ed
#
Chris PeBenito efd8ed
define(`filesystem_relabel_tmpfs_character_devices',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:dir r_dir_perms;
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:chr_file { getattr relabelfrom relabelto };
Chris PeBenito efd8ed
')
Chris PeBenito efd8ed
Chris PeBenito efd8ed
define(`filesystem_relabel_tmpfs_character_devices_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir r_dir_perms;
Chris PeBenito 0c73cd
	class chr_file { getattr relabelfrom relabelto };
Chris PeBenito efd8ed
')
Chris PeBenito efd8ed
Chris PeBenito efd8ed
########################################
Chris PeBenito daa0e0
## <interface name="filesystem_use_tmpfs_block_devices">
Chris PeBenito daa0e0
##	<description>
Chris PeBenito daa0e0
##		Read and write block nodes on tmpfs filesystems.
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="both" weight="10"/>
Chris PeBenito daa0e0
## </interface>
Chris PeBenito daa0e0
#
Chris PeBenito daa0e0
define(`filesystem_use_tmpfs_block_devices',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:dir r_dir_perms;
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:blk_file rw_file_perms;
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
define(`filesystem_use_tmpfs_block_devices_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir r_dir_perms; 
Chris PeBenito 0c73cd
	class blk_file rw_file_perms;
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
########################################
Chris PeBenito efd8ed
## <interface name="filesystem_relabel_tmpfs_block_devices">
Chris PeBenito efd8ed
##	<description>
Chris PeBenito efd8ed
##		Relabel block nodes on tmpfs filesystems.
Chris PeBenito efd8ed
##	</description>
Chris PeBenito efd8ed
##	<parameter name="domain">
Chris PeBenito efd8ed
##		The type of the process performing this action.
Chris PeBenito efd8ed
##	</parameter>
Chris PeBenito efd8ed
##	<infoflow type="both" weight="10"/>
Chris PeBenito efd8ed
## </interface>
Chris PeBenito efd8ed
#
Chris PeBenito efd8ed
define(`filesystem_relabel_tmpfs_block_devices',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:dir r_dir_perms;
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:blk_file { getattr relabelfrom relabelto };
Chris PeBenito efd8ed
')
Chris PeBenito efd8ed
Chris PeBenito efd8ed
define(`filesystem_use_tmpfs_block_devices_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir r_dir_perms;
Chris PeBenito 0c73cd
	class blk_file { getattr relabelfrom relabelto };
Chris PeBenito efd8ed
')
Chris PeBenito efd8ed
Chris PeBenito efd8ed
########################################
Chris PeBenito daa0e0
## <interface name="filesystem_manage_tmpfs_character_devices">
Chris PeBenito daa0e0
##	<description>
Chris PeBenito daa0e0
##		Read and write, create and delete character
Chris PeBenito daa0e0
##		nodes on tmpfs filesystems.
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="both" weight="10"/>
Chris PeBenito daa0e0
## </interface>
Chris PeBenito daa0e0
#
Chris PeBenito daa0e0
define(`filesystem_manage_tmpfs_character_devices',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:dir rw_dir_perms;
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:chr_file create_file_perms;
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito 0c73cd
define(`filesystem_manage_tmpfs_character_devices_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir rw_dir_perms;
Chris PeBenito 0c73cd
	class chr_file create_file_perms;
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
########################################
Chris PeBenito daa0e0
## <interface name="filesystem_manage_tmpfs_block_devices">
Chris PeBenito daa0e0
##	<description>
Chris PeBenito daa0e0
##		Read and write, create and delete block nodes
Chris PeBenito daa0e0
##		on tmpfs filesystems.
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="both" weight="10"/>
Chris PeBenito daa0e0
## </interface>
Chris PeBenito daa0e0
#
Chris PeBenito daa0e0
define(`filesystem_manage_tmpfs_block_devices',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:dir rw_dir_perms;
Chris PeBenito 0c73cd
	allow $1 tmpfs_t:blk_file create_file_perms;
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
define(`filesystem_manage_tmpfs_block_devices_depend',`
Chris PeBenito 0c73cd
	type tmpfs_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir rw_dir_perms;
Chris PeBenito 0c73cd
	class blk_file create_file_perms;
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_mount_all_filesystems(type)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_all_filesystems',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_type:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_all_filesystems_depend',`
Chris PeBenito 0c73cd
	attribute fs_type;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_remount_all_filesystems(type)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_remount_all_filesystems',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_type:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_all_filesystems_depend',`
Chris PeBenito 0c73cd
	attribute fs_type;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# filesystem_unmount_all_filesystems(type)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_unmount_all_filesystems',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_type:filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_all_filesystems_depend',`
Chris PeBenito 0c73cd
	attribute fs_type;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito 219bcf
Chris PeBenito 219bcf
########################################
Chris PeBenito 219bcf
#
Chris PeBenito bd202f
# filesystem_get_all_filesystems_attributes(type)
Chris PeBenito 219bcf
#
Chris PeBenito 219bcf
define(`filesystem_get_all_filesystems_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_type:filesystem getattr;
Chris PeBenito 219bcf
')
Chris PeBenito 219bcf
Chris PeBenito 219bcf
define(`filesystem_get_all_filesystems_attributes_depend',`
Chris PeBenito 0c73cd
	attribute fs_type;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem getattr;
Chris PeBenito 219bcf
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
########################################
Chris PeBenito 075c4f
#
Chris PeBenito b16c6b
# filesystem_get_all_filesystems_quotas(type)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_get_all_filesystems_quotas',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_type:filesystem quotaget;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_get_all_filesystems_quotas_depend',`
Chris PeBenito 0c73cd
	attribute fs_type;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem quotaget;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
########################################
Chris PeBenito b16c6b
#
Chris PeBenito 759ba0
# filesystem_set_all_filesystems_quotas(type)
Chris PeBenito 759ba0
#
Chris PeBenito 759ba0
define(`filesystem_set_all_filesystems_quotas',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_type:filesystem quotamod;
Chris PeBenito 759ba0
')
Chris PeBenito 759ba0
Chris PeBenito 759ba0
define(`filesystem_set_all_filesystems_quotas_depend',`
Chris PeBenito 0c73cd
	attribute fs_type;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class filesystem quotamod;
Chris PeBenito 759ba0
')
Chris PeBenito 759ba0
Chris PeBenito 759ba0
########################################
Chris PeBenito 759ba0
#
Chris PeBenito 075c4f
# filesystem_get_all_file_attributes(type)
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
define(`filesystem_get_all_file_attributes',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 fs_type:dir { search getattr };
Chris PeBenito 0c73cd
	allow $1 fs_type:file getattr;
Chris PeBenito 0c73cd
	allow $1 fs_type:lnk_file getattr;
Chris PeBenito 0c73cd
	allow $1 fs_type:fifo_file getattr;
Chris PeBenito 0c73cd
	allow $1 fs_type:sock_file getattr;
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
define(`filesystem_get_all_file_attributes_depend',`
Chris PeBenito 0c73cd
	attribute fs_type;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class dir { search getattr };
Chris PeBenito 0c73cd
	class file getattr;
Chris PeBenito 0c73cd
	class lnk_file getattr;
Chris PeBenito 0c73cd
	class fifo_file getattr;
Chris PeBenito 0c73cd
	class sock_file getattr;
Chris PeBenito 075c4f
')
Chris PeBenito e32d52
Chris PeBenito e32d52
## </module>