Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
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 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 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 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 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 b4cd15
#
Chris PeBenito bd202f
# filesystem_tmpfs_associate(type)
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 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 b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
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
')