Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e32d52
## <module name="storage" 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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
typeattribute $1 fs_type;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_make_filesystem_depend',`
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 5d7812
allow $1 fs_t:filesystem associate;
Chris PeBenito 5d7812
')
Chris PeBenito 5d7812
Chris PeBenito 5d7812
define(`filesystem_associate_depend',`
Chris PeBenito 5d7812
type fs_t;
Chris PeBenito 5d7812
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 5d7812
allow $1 autofs_t:filesystem associate;
Chris PeBenito 5d7812
allow $1 cifs_t:filesystem associate;
Chris PeBenito 5d7812
allow $1 dosfs_t:filesystem associate;
Chris PeBenito 5d7812
allow $1 iso9660_t:filesystem associate;
Chris PeBenito 5d7812
allow $1 nfs_t:filesystem associate;
Chris PeBenito 33bc0d
allow $1 removable_t:filesystem associate;
Chris PeBenito 33bc0d
allow $1 usbfs_t:filesystem associate;
Chris PeBenito 5d7812
')
Chris PeBenito 5d7812
Chris PeBenito 33bc0d
define(`filesystem_noxattr_associate_depend',`
Chris PeBenito 33bc0d
type fs_t, nfs_t, cifs_t, dosfs_t, iso9660_t, autofs_t, usbfs_t, removable_t;
Chris PeBenito 5d7812
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 fs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_persistent_filesystem_depend',`
Chris PeBenito b4cd15
type fs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 fs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_persistent_filesystem_depend',`
Chris PeBenito b4cd15
type fs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 fs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_persistent_filesystem_depend',`
Chris PeBenito b4cd15
type fs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 fs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_persistent_filesystem_attributes_depend',`
Chris PeBenito b4cd15
type fs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 053f6a
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 053f6a
type fs_t;
Chris PeBenito 053f6a
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 dc771f
requires_block_template(`$0'_depend)
Chris PeBenito dc771f
allow $1 fs_t:filesystem relabelfrom;
Chris PeBenito dc771f
')
Chris PeBenito dc771f
Chris PeBenito dc771f
define(`filesystem_relabelfrom_persistent_filesystem_depend',`
Chris PeBenito dc771f
type fs_t;
Chris PeBenito dc771f
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 autofs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_automount_filesystem_depend',`
Chris PeBenito b4cd15
type autofs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 autofs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_automount_filesystem_depend',`
Chris PeBenito b4cd15
type autofs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 autofs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_automount_filesystem_depend',`
Chris PeBenito b4cd15
type autofs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 autofs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_automount_filesystem_attributes_depend',`
Chris PeBenito b4cd15
type autofs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 binfmt_misc_fs_t:dir { getattr search };
Chris PeBenito b4cd15
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 b4cd15
type binfmt_misc_fs_t;
Chris PeBenito b4cd15
class dir { getattr search };
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 cifs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_windows_network_filesystem_depend',`
Chris PeBenito b4cd15
type cifs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 cifs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_windows_network_filesystem_depend',`
Chris PeBenito b4cd15
type cifs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 cifs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_windows_network_filesystem_depend',`
Chris PeBenito b4cd15
type cifs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
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 b4cd15
type cifs_t;
Chris PeBenito b4cd15
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 b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 cifs_t:dir { getattr search read };
Chris PeBenito b16c6b
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 b16c6b
type cifs_t;
Chris PeBenito b16c6b
class dir { getattr search read };
Chris PeBenito b16c6b
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 b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 cifs_t:dir { create read getattr lock setattr ioctl link unlink rename search add_name remove_name reparent write rmdir };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_directories_depend',`
Chris PeBenito b16c6b
type cifs_t;
Chris PeBenito b16c6b
class dir { create read getattr lock setattr ioctl link unlink rename search add_name remove_name reparent write rmdir };
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 b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 cifs_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
allow $1 cifs_t:file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_files_depend',`
Chris PeBenito b16c6b
type cifs_t;
Chris PeBenito b16c6b
class dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
class 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_windows_network_symbolic_links(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_symbolic_links',`
Chris PeBenito b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 cifs_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
allow $1 cifs_t:lnk_file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_symbolic_links_depend',`
Chris PeBenito b16c6b
type cifs_t;
Chris PeBenito b16c6b
class dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
class lnk_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_windows_network_named_pipes(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_named_pipes',`
Chris PeBenito b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 cifs_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
allow $1 cifs_t:fifo_file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_named_pipes_depend',`
Chris PeBenito b16c6b
type cifs_t;
Chris PeBenito b16c6b
class dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
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_windows_network_named_sockets(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_named_sockets',`
Chris PeBenito b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 cifs_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
allow $1 cifs_t:sock_file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_windows_network_named_sockets_depend',`
Chris PeBenito b16c6b
type cifs_t;
Chris PeBenito b16c6b
class dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
class sock_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 bd202f
# filesystem_mount_dos_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_dos_filesystem',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 dosfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_dos_filesystem_depend',`
Chris PeBenito b4cd15
type dosfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 dosfs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_dos_filesystem_depend',`
Chris PeBenito b4cd15
type dosfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 dosfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_dos_filesystem_depend',`
Chris PeBenito b4cd15
type dosfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 dosfs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_dos_filesystem_attributes_depend',`
Chris PeBenito b4cd15
type dosfs_t;
Chris PeBenito b4cd15
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 dc771f
requires_block_template(`$0'_depend)
Chris PeBenito dc771f
allow $1 dosfs_t:filesystem relabelfrom;
Chris PeBenito dc771f
')
Chris PeBenito dc771f
Chris PeBenito dc771f
define(`filesystem_relabelfrom_dos_filesystem_depend',`
Chris PeBenito dc771f
type dosfs_t;
Chris PeBenito dc771f
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 iso9660_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_cd_filesystem_depend',`
Chris PeBenito b4cd15
type iso9660_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 iso9660_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_cd_filesystem_depend',`
Chris PeBenito b4cd15
type iso9660_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 iso9660_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_cd_filesystem_depend',`
Chris PeBenito b4cd15
type iso9660_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 iso9660_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_cd_filesystem_attributes_depend',`
Chris PeBenito b4cd15
type iso9660_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 nfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_nfs_filesystem_depend',`
Chris PeBenito b4cd15
type nfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 nfs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_nfs_filesystem_depend',`
Chris PeBenito b4cd15
type nfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 nfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_nfs_filesystem_depend',`
Chris PeBenito b4cd15
type nfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 nfs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_nfs_filesystem_attributes_depend',`
Chris PeBenito b4cd15
type nfs_t;
Chris PeBenito b4cd15
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 b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 nfs_t:dir { getattr search read };
Chris PeBenito b16c6b
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 b16c6b
type nfs_t;
Chris PeBenito b16c6b
class dir { getattr search read };
Chris PeBenito b16c6b
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 b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 nfs_t:dir { create read getattr lock setattr ioctl link unlink rename search add_name remove_name reparent write rmdir };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_directories_depend',`
Chris PeBenito b16c6b
type nfs_t;
Chris PeBenito b16c6b
class dir { create read getattr lock setattr ioctl link unlink rename search add_name remove_name reparent write rmdir };
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 b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 nfs_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
allow $1 nfs_t:file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_files_depend',`
Chris PeBenito b16c6b
type nfs_t;
Chris PeBenito b16c6b
class dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
class 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_symbolic_links(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_symbolic_links',`
Chris PeBenito b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 nfs_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
allow $1 nfs_t:lnk_file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_symbolic_links_depend',`
Chris PeBenito b16c6b
type nfs_t;
Chris PeBenito b16c6b
class dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
class lnk_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_pipes(domain)
Chris PeBenito b16c6b
#
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_named_pipes',`
Chris PeBenito b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 nfs_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
allow $1 nfs_t:fifo_file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_named_pipes_depend',`
Chris PeBenito b16c6b
type nfs_t;
Chris PeBenito b16c6b
class dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
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 b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 nfs_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
allow $1 nfs_t:sock_file { create ioctl read getattr lock write setattr append link unlink rename };
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_manage_nfs_named_sockets_depend',`
Chris PeBenito b16c6b
type nfs_t;
Chris PeBenito b16c6b
class dir { getattr search read write add_name remove_name };
Chris PeBenito b16c6b
class sock_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 bd202f
# filesystem_mount_nfsd_filesystem(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`filesystem_mount_nfsd_filesystem',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 nfsd_fs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_nfsd_filesystem_depend',`
Chris PeBenito b4cd15
type nfsd_fs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 nfsd_fs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_nfsd_filesystem_depend',`
Chris PeBenito b4cd15
type nfsd_fs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 nfsd_fs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_nfsd_filesystem_depend',`
Chris PeBenito b4cd15
type nfsd_fs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
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 b4cd15
type nfsd_fs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 ramfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_ram_filesystem_depend',`
Chris PeBenito b4cd15
type ramfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 ramfs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_ram_filesystem_depend',`
Chris PeBenito b4cd15
type ramfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 ramfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_ram_filesystem_depend',`
Chris PeBenito b4cd15
type ramfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 ramfs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_ram_filesystem_attributes_depend',`
Chris PeBenito b4cd15
type ramfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 romfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_rom_filesystem_depend',`
Chris PeBenito b4cd15
type romfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 romfs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_rom_filesystem_depend',`
Chris PeBenito b4cd15
type romfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 romfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_rom_filesystem_depend',`
Chris PeBenito b4cd15
type romfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 romfs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_rom_filesystem_attributes_depend',`
Chris PeBenito b4cd15
type romfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
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 b4cd15
type rpc_pipefs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
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 b4cd15
type rpc_pipefs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
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 b4cd15
type rpc_pipefs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
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 b4cd15
type rpc_pipefs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 tmpfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_tmpfs_filesystem_depend',`
Chris PeBenito b4cd15
type tmpfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 tmpfs_t:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_tmpfs_filesystem_depend',`
Chris PeBenito b4cd15
type tmpfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 tmpfs_t:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_unmount_tmpfs_filesystem_depend',`
Chris PeBenito b4cd15
type tmpfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 tmpfs_t:filesystem getattr;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito 219bcf
define(`filesystem_get_tmpfs_filesystem_attributes_depend',`
Chris PeBenito b4cd15
type tmpfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 tmpfs_t:filesystem associate;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_tmpfs_associate_depend',`
Chris PeBenito b4cd15
type tmpfs_t;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 tmpfs_t:dir { getattr search read write add_name };
Chris PeBenito b4cd15
ifelse(`$3',`',`
Chris PeBenito b4cd15
type_transition $1 tmpfs_t:file $2;
Chris PeBenito b4cd15
',`
Chris PeBenito b4cd15
type_transition $1 tmpfs_t:$3 $2;
Chris PeBenito b4cd15
')
Chris PeBenito f5c42b
allow $2 tmpfs_t:filesystem associate;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_create_private_tmpfs_data_depend',`
Chris PeBenito b4cd15
type tmpfs_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name }; 
Chris PeBenito f5c42b
class filesystem associate;
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 daa0e0
requires_block_template(`$0'_depend)
Chris PeBenito daa0e0
allow $1 tmpfs_t:dir { getattr search read };
Chris PeBenito daa0e0
allow $1 tmpfs_t:chr_file { getattr read write ioctl };
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
define(`filesystem_use_tmpfs_character_devices_depend',`
Chris PeBenito daa0e0
type tmpfs_t;
Chris PeBenito daa0e0
class dir { getattr search read }; 
Chris PeBenito daa0e0
class chr_file { getattr read write ioctl };
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 efd8ed
requires_block_template(`$0'_depend)
Chris PeBenito efd8ed
allow $1 tmpfs_t:dir { getattr search read };
Chris PeBenito efd8ed
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 efd8ed
type tmpfs_t;
Chris PeBenito efd8ed
class dir { getattr search read }; 
Chris PeBenito efd8ed
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 daa0e0
requires_block_template(`$0'_depend)
Chris PeBenito daa0e0
allow $1 tmpfs_t:dir { getattr search read };
Chris PeBenito daa0e0
allow $1 tmpfs_t:blk_file { getattr read write ioctl };
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
define(`filesystem_use_tmpfs_block_devices_depend',`
Chris PeBenito daa0e0
type tmpfs_t;
Chris PeBenito daa0e0
class dir { getattr search read }; 
Chris PeBenito daa0e0
class blk_file { getattr read write ioctl };
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 efd8ed
requires_block_template(`$0'_depend)
Chris PeBenito efd8ed
allow $1 tmpfs_t:dir { getattr search read };
Chris PeBenito efd8ed
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 efd8ed
type tmpfs_t;
Chris PeBenito efd8ed
class dir { getattr search read }; 
Chris PeBenito efd8ed
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 daa0e0
requires_block_template(`$0'_depend)
Chris PeBenito daa0e0
allow $1 tmpfs_t:dir { getattr search read write add_name remove_name };
Chris PeBenito daa0e0
allow $1 tmpfs_t:chr_file { getattr read write ioctl create unlink setattr };
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
define(`filesystem_mange_tmpfs_character_devices_depend',`
Chris PeBenito daa0e0
type tmpfs_t;
Chris PeBenito daa0e0
class dir { getattr search read write add_name remove_name }; 
Chris PeBenito daa0e0
class chr_file { getattr read write ioctl create unlink setattr };
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 daa0e0
requires_block_template(`$0'_depend)
Chris PeBenito daa0e0
allow $1 tmpfs_t:dir { getattr search read write add_name remove_name };
Chris PeBenito daa0e0
allow $1 tmpfs_t:blk_file { getattr read write ioctl create unlink setattr };
Chris PeBenito daa0e0
')
Chris PeBenito daa0e0
Chris PeBenito daa0e0
define(`filesystem_manage_tmpfs_block_devices_depend',`
Chris PeBenito daa0e0
type tmpfs_t;
Chris PeBenito daa0e0
class dir { getattr search read write add_name remove_name }; 
Chris PeBenito daa0e0
class blk_file { getattr read write ioctl create unlink setattr };
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 fs_type:filesystem mount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_all_filesystems_depend',`
Chris PeBenito b4cd15
attribute fs_type;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 fs_type:filesystem remount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_remount_all_filesystems_depend',`
Chris PeBenito b4cd15
attribute fs_type;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 fs_type:filesystem unmount;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`filesystem_mount_all_filesystems_depend',`
Chris PeBenito b4cd15
attribute fs_type;
Chris PeBenito b4cd15
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 bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 219bcf
allow $1 fs_type:filesystem getattr;
Chris PeBenito 219bcf
')
Chris PeBenito 219bcf
Chris PeBenito 219bcf
define(`filesystem_get_all_filesystems_attributes_depend',`
Chris PeBenito 219bcf
attribute fs_type;
Chris PeBenito 219bcf
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 b16c6b
requires_block_template(`$0'_depend)
Chris PeBenito b16c6b
allow $1 fs_type:filesystem quotaget;
Chris PeBenito b16c6b
')
Chris PeBenito b16c6b
Chris PeBenito b16c6b
define(`filesystem_get_all_filesystems_quotas_depend',`
Chris PeBenito b16c6b
attribute fs_type;
Chris PeBenito b16c6b
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 759ba0
requires_block_template(`$0'_depend)
Chris PeBenito 759ba0
allow $1 fs_type:filesystem quotamod;
Chris PeBenito 759ba0
')
Chris PeBenito 759ba0
Chris PeBenito 759ba0
define(`filesystem_set_all_filesystems_quotas_depend',`
Chris PeBenito 759ba0
attribute fs_type;
Chris PeBenito 759ba0
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 075c4f
requires_block_template(`$0'_depend)
Chris PeBenito 075c4f
allow $1 fs_type:dir { search getattr };
Chris PeBenito 075c4f
allow $1 fs_type:file getattr;
Chris PeBenito 075c4f
allow $1 fs_type:lnk_file getattr;
Chris PeBenito 075c4f
allow $1 fs_type:fifo_file getattr;
Chris PeBenito 075c4f
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 075c4f
attribute fs_type;
Chris PeBenito 075c4f
class dir { search getattr };
Chris PeBenito 075c4f
class file getattr;
Chris PeBenito 075c4f
class lnk_file getattr;
Chris PeBenito 075c4f
class fifo_file getattr;
Chris PeBenito 075c4f
class sock_file getattr;
Chris PeBenito 075c4f
')
Chris PeBenito e32d52
Chris PeBenito e32d52
## </module>