2016-02-03 13:49:39 +00:00
|
|
|
policy_module(filesystem, 1.20.4)
|
2005-04-26 17:00:25 +00:00
|
|
|
|
2005-06-30 18:54:08 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
2005-06-28 17:48:59 +00:00
|
|
|
attribute filesystem_type;
|
2006-04-10 21:04:51 +00:00
|
|
|
attribute filesystem_unconfined_type;
|
2005-06-09 15:20:31 +00:00
|
|
|
attribute noxattrfs;
|
2014-04-04 20:52:52 +00:00
|
|
|
attribute xattrfs;
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2005-06-30 18:54:08 +00:00
|
|
|
##############################
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
# fs_t is the default type for persistent
|
|
|
|
# filesystems with extended attributes
|
|
|
|
#
|
2005-10-25 20:06:27 +00:00
|
|
|
type fs_t;
|
2014-04-04 20:52:53 +00:00
|
|
|
fs_xattr_type(fs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
sid fs gen_context(system_u:object_r:fs_t,s0)
|
2005-06-02 15:39:10 +00:00
|
|
|
|
|
|
|
# Use xattrs for the following filesystem types.
|
|
|
|
# Requires that a security xattr handler exist for the filesystem.
|
2009-03-04 15:53:07 +00:00
|
|
|
fs_use_xattr btrfs gen_context(system_u:object_r:fs_t,s0);
|
2006-12-04 20:10:56 +00:00
|
|
|
fs_use_xattr encfs gen_context(system_u:object_r:fs_t,s0);
|
2005-10-06 19:33:06 +00:00
|
|
|
fs_use_xattr ext2 gen_context(system_u:object_r:fs_t,s0);
|
|
|
|
fs_use_xattr ext3 gen_context(system_u:object_r:fs_t,s0);
|
2008-05-26 21:07:22 +00:00
|
|
|
fs_use_xattr ext4 gen_context(system_u:object_r:fs_t,s0);
|
|
|
|
fs_use_xattr ext4dev gen_context(system_u:object_r:fs_t,s0);
|
2014-11-22 21:16:38 +00:00
|
|
|
fs_use_xattr f2fs gen_context(system_u:object_r:fs_t,s0);
|
2006-12-04 20:10:56 +00:00
|
|
|
fs_use_xattr gfs gen_context(system_u:object_r:fs_t,s0);
|
2006-06-12 21:36:38 +00:00
|
|
|
fs_use_xattr gfs2 gen_context(system_u:object_r:fs_t,s0);
|
2010-03-12 16:40:59 +00:00
|
|
|
fs_use_xattr gpfs gen_context(system_u:object_r:fs_t,s0);
|
2006-08-25 13:28:57 +00:00
|
|
|
fs_use_xattr jffs2 gen_context(system_u:object_r:fs_t,s0);
|
2005-10-06 19:33:06 +00:00
|
|
|
fs_use_xattr jfs gen_context(system_u:object_r:fs_t,s0);
|
2007-10-29 18:35:32 +00:00
|
|
|
fs_use_xattr lustre gen_context(system_u:object_r:fs_t,s0);
|
2015-10-11 10:35:20 +00:00
|
|
|
fs_use_xattr overlay gen_context(system_u:object_r:fs_t,s0);
|
2014-02-15 12:24:55 +00:00
|
|
|
fs_use_xattr squashfs gen_context(system_u:object_r:fs_t,s0);
|
2005-10-06 19:33:06 +00:00
|
|
|
fs_use_xattr xfs gen_context(system_u:object_r:fs_t,s0);
|
2012-11-27 15:29:18 +00:00
|
|
|
fs_use_xattr zfs gen_context(system_u:object_r:fs_t,s0);
|
2005-06-02 15:39:10 +00:00
|
|
|
|
|
|
|
# Use the allocating task SID to label inodes in the following filesystem
|
|
|
|
# types, and label the filesystem itself with the specified context.
|
|
|
|
# This is appropriate for pseudo filesystems that represent objects
|
|
|
|
# like pipes and sockets, so that these objects are labeled with the same
|
2009-11-23 18:16:28 +00:00
|
|
|
# type as the creating task.
|
2006-06-28 20:28:09 +00:00
|
|
|
fs_use_task eventpollfs gen_context(system_u:object_r:fs_t,s0);
|
2005-10-06 19:33:06 +00:00
|
|
|
fs_use_task pipefs gen_context(system_u:object_r:fs_t,s0);
|
|
|
|
fs_use_task sockfs gen_context(system_u:object_r:fs_t,s0);
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2005-06-30 18:54:08 +00:00
|
|
|
##############################
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
# Non-persistent/pseudo filesystems
|
|
|
|
#
|
2007-08-08 20:04:28 +00:00
|
|
|
|
|
|
|
type anon_inodefs_t;
|
|
|
|
fs_type(anon_inodefs_t)
|
|
|
|
files_mountpoint(anon_inodefs_t)
|
|
|
|
genfscon anon_inodefs / gen_context(system_u:object_r:anon_inodefs_t,s0)
|
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type bdev_t;
|
|
|
|
fs_type(bdev_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon bdev / gen_context(system_u:object_r:bdev_t,s0)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type binfmt_misc_fs_t;
|
|
|
|
fs_type(binfmt_misc_fs_t)
|
2005-09-13 13:06:07 +00:00
|
|
|
files_mountpoint(binfmt_misc_fs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon binfmt_misc / gen_context(system_u:object_r:binfmt_misc_fs_t,s0)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type capifs_t;
|
|
|
|
fs_type(capifs_t)
|
2007-06-20 19:47:10 +00:00
|
|
|
files_mountpoint(capifs_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
genfscon capifs / gen_context(system_u:object_r:capifs_t,s0)
|
|
|
|
|
2010-06-07 18:17:14 +00:00
|
|
|
type cgroup_t;
|
|
|
|
fs_type(cgroup_t)
|
|
|
|
files_mountpoint(cgroup_t)
|
2013-09-11 08:53:08 +00:00
|
|
|
dev_associate_sysfs(cgroup_t)
|
2010-06-07 18:17:14 +00:00
|
|
|
genfscon cgroup / gen_context(system_u:object_r:cgroup_t,s0)
|
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type configfs_t;
|
|
|
|
fs_type(configfs_t)
|
2005-10-24 03:21:26 +00:00
|
|
|
genfscon configfs / gen_context(system_u:object_r:configfs_t,s0)
|
|
|
|
|
2007-06-20 19:47:10 +00:00
|
|
|
type cpusetfs_t;
|
|
|
|
fs_type(cpusetfs_t)
|
|
|
|
allow cpusetfs_t self:filesystem associate;
|
|
|
|
genfscon cpuset / gen_context(system_u:object_r:cpusetfs_t,s0)
|
|
|
|
|
2009-03-04 15:53:07 +00:00
|
|
|
type ecryptfs_t;
|
|
|
|
fs_noxattr_type(ecryptfs_t)
|
|
|
|
files_mountpoint(ecryptfs_t)
|
|
|
|
genfscon ecryptfs / gen_context(system_u:object_r:ecryptfs_t,s0)
|
|
|
|
|
2012-12-11 19:50:03 +00:00
|
|
|
type efivarfs_t;
|
|
|
|
fs_noxattr_type(efivarfs_t)
|
|
|
|
files_mountpoint(efivarfs_t)
|
|
|
|
genfscon efivarfs / gen_context(system_u:object_r:efivarfs_t,s0)
|
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type futexfs_t;
|
|
|
|
fs_type(futexfs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon futexfs / gen_context(system_u:object_r:futexfs_t,s0)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type hugetlbfs_t;
|
2014-04-04 20:52:53 +00:00
|
|
|
fs_xattr_type(hugetlbfs_t)
|
2005-09-13 13:06:07 +00:00
|
|
|
files_mountpoint(hugetlbfs_t)
|
2014-04-16 18:02:23 +00:00
|
|
|
dev_associate(hugetlbfs_t)
|
2009-11-23 18:16:28 +00:00
|
|
|
fs_use_trans hugetlbfs gen_context(system_u:object_r:hugetlbfs_t,s0);
|
2005-09-13 13:06:07 +00:00
|
|
|
|
2006-06-21 18:25:06 +00:00
|
|
|
type ibmasmfs_t;
|
|
|
|
fs_type(ibmasmfs_t)
|
|
|
|
allow ibmasmfs_t self:filesystem associate;
|
|
|
|
genfscon ibmasmfs / gen_context(system_u:object_r:ibmasmfs_t,s0)
|
|
|
|
|
2011-03-31 13:49:01 +00:00
|
|
|
type infinibandeventfs_t;
|
|
|
|
fs_type(infinibandeventfs_t)
|
|
|
|
allow infinibandeventfs_t self:filesystem associate;
|
|
|
|
genfscon infinibandeventfs / gen_context(system_u:object_r:infinibandeventfs_t,s0)
|
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type inotifyfs_t;
|
|
|
|
fs_type(inotifyfs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon inotifyfs / gen_context(system_u:object_r:inotifyfs_t,s0)
|
2005-09-13 13:06:07 +00:00
|
|
|
|
2007-06-20 19:47:10 +00:00
|
|
|
type mvfs_t;
|
|
|
|
fs_noxattr_type(mvfs_t)
|
|
|
|
allow mvfs_t self:filesystem associate;
|
|
|
|
genfscon mvfs / gen_context(system_u:object_r:mvfs_t,s0)
|
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type nfsd_fs_t;
|
|
|
|
fs_type(nfsd_fs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon nfsd / gen_context(system_u:object_r:nfsd_fs_t,s0)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2016-01-11 14:02:39 +00:00
|
|
|
type nsfs_t;
|
2016-01-11 18:14:55 +00:00
|
|
|
fs_type(nsfs_t)
|
2016-01-11 14:02:39 +00:00
|
|
|
genfscon nsfs / gen_context(system_u:object_r:nsfs_t,s0)
|
|
|
|
|
2006-06-07 17:43:10 +00:00
|
|
|
type oprofilefs_t;
|
|
|
|
fs_type(oprofilefs_t)
|
|
|
|
genfscon oprofilefs / gen_context(system_u:object_r:oprofilefs_t,s0)
|
|
|
|
|
2013-09-11 08:53:08 +00:00
|
|
|
type pstore_t;
|
|
|
|
fs_type(pstore_t)
|
|
|
|
files_mountpoint(pstore_t)
|
|
|
|
dev_associate_sysfs(pstore_t)
|
|
|
|
genfscon pstore / gen_context(system_u:object_r:pstore_t,s0)
|
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type ramfs_t;
|
|
|
|
fs_type(ramfs_t)
|
2007-10-29 18:35:32 +00:00
|
|
|
files_mountpoint(ramfs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon ramfs / gen_context(system_u:object_r:ramfs_t,s0)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type romfs_t;
|
|
|
|
fs_type(romfs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon romfs / gen_context(system_u:object_r:romfs_t,s0)
|
|
|
|
genfscon cramfs / gen_context(system_u:object_r:romfs_t,s0)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2005-10-25 20:06:27 +00:00
|
|
|
type rpc_pipefs_t;
|
|
|
|
fs_type(rpc_pipefs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon rpc_pipefs / gen_context(system_u:object_r:rpc_pipefs_t,s0)
|
2007-02-16 23:01:42 +00:00
|
|
|
files_mountpoint(rpc_pipefs_t)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2007-06-20 19:47:10 +00:00
|
|
|
type spufs_t;
|
|
|
|
fs_type(spufs_t)
|
|
|
|
genfscon spufs / gen_context(system_u:object_r:spufs_t,s0)
|
|
|
|
files_mountpoint(spufs_t)
|
|
|
|
|
2011-03-31 13:49:01 +00:00
|
|
|
type sysv_t;
|
|
|
|
fs_noxattr_type(sysv_t)
|
|
|
|
files_mountpoint(sysv_t)
|
|
|
|
genfscon sysv / gen_context(system_u:object_r:sysv_t,s0)
|
|
|
|
genfscon v7 / gen_context(system_u:object_r:sysv_t,s0)
|
|
|
|
|
2016-01-30 13:22:01 +00:00
|
|
|
type tracefs_t;
|
|
|
|
fs_type(tracefs_t)
|
|
|
|
genfscon tracefs / gen_context(system_u:object_r:tracefs_t,s0)
|
|
|
|
|
2008-05-26 21:07:22 +00:00
|
|
|
type vmblock_t;
|
|
|
|
fs_noxattr_type(vmblock_t)
|
|
|
|
files_mountpoint(vmblock_t)
|
|
|
|
genfscon vmblock / gen_context(system_u:object_r:vmblock_t,s0)
|
2009-03-04 15:53:07 +00:00
|
|
|
genfscon vboxsf / gen_context(system_u:object_r:vmblock_t,s0)
|
|
|
|
genfscon vmhgfs / gen_context(system_u:object_r:vmblock_t,s0)
|
2008-05-26 21:07:22 +00:00
|
|
|
|
2007-06-20 19:47:10 +00:00
|
|
|
type vxfs_t;
|
|
|
|
fs_noxattr_type(vxfs_t)
|
|
|
|
files_mountpoint(vxfs_t)
|
|
|
|
genfscon vxfs / gen_context(system_u:object_r:vxfs_t,s0)
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
# tmpfs_t is the type for tmpfs filesystems
|
|
|
|
#
|
2005-10-25 20:06:27 +00:00
|
|
|
type tmpfs_t;
|
2013-09-24 13:39:21 +00:00
|
|
|
dev_associate(tmpfs_t)
|
2014-04-04 20:52:53 +00:00
|
|
|
fs_xattr_type(tmpfs_t)
|
2005-06-29 14:26:41 +00:00
|
|
|
files_type(tmpfs_t)
|
2005-09-16 19:36:10 +00:00
|
|
|
files_mountpoint(tmpfs_t)
|
2007-08-08 20:04:28 +00:00
|
|
|
files_poly_parent(tmpfs_t)
|
2005-05-30 21:17:20 +00:00
|
|
|
|
2005-06-02 15:39:10 +00:00
|
|
|
# Use a transition SID based on the allocating task SID and the
|
|
|
|
# filesystem SID to label inodes in the following filesystem types,
|
|
|
|
# and label the filesystem itself with the specified context.
|
|
|
|
# This is appropriate for pseudo filesystems like devpts and tmpfs
|
|
|
|
# where we want to label objects with a derived type.
|
2005-10-06 19:33:06 +00:00
|
|
|
fs_use_trans mqueue gen_context(system_u:object_r:tmpfs_t,s0);
|
|
|
|
fs_use_trans shm gen_context(system_u:object_r:tmpfs_t,s0);
|
|
|
|
fs_use_trans tmpfs gen_context(system_u:object_r:tmpfs_t,s0);
|
2005-06-02 15:39:10 +00:00
|
|
|
|
2005-06-09 15:20:31 +00:00
|
|
|
allow tmpfs_t noxattrfs:filesystem associate;
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2009-11-23 18:16:28 +00:00
|
|
|
type xenfs_t;
|
|
|
|
fs_noxattr_type(xenfs_t)
|
|
|
|
files_mountpoint(xenfs_t)
|
|
|
|
genfscon xenfs / gen_context(system_u:object_r:xenfs_t,s0)
|
|
|
|
|
2005-06-30 18:54:08 +00:00
|
|
|
##############################
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
# Filesystems without extended attribute support
|
|
|
|
#
|
2010-03-12 16:40:59 +00:00
|
|
|
|
2006-03-29 19:55:30 +00:00
|
|
|
type autofs_t;
|
|
|
|
fs_noxattr_type(autofs_t)
|
2005-11-23 19:02:40 +00:00
|
|
|
files_mountpoint(autofs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon autofs / gen_context(system_u:object_r:autofs_t,s0)
|
|
|
|
genfscon automount / gen_context(system_u:object_r:autofs_t,s0)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# cifs_t is the type for filesystems and their
|
|
|
|
# files shared from Windows servers
|
|
|
|
#
|
2006-03-29 19:55:30 +00:00
|
|
|
type cifs_t alias sambafs_t;
|
|
|
|
fs_noxattr_type(cifs_t)
|
2007-02-16 23:01:42 +00:00
|
|
|
files_mountpoint(cifs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon cifs / gen_context(system_u:object_r:cifs_t,s0)
|
|
|
|
genfscon smbfs / gen_context(system_u:object_r:cifs_t,s0)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# dosfs_t is the type for fat and vfat
|
|
|
|
# filesystems and their files.
|
|
|
|
#
|
2006-03-29 19:55:30 +00:00
|
|
|
type dosfs_t;
|
|
|
|
fs_noxattr_type(dosfs_t)
|
2010-03-12 16:40:59 +00:00
|
|
|
files_mountpoint(dosfs_t)
|
2006-02-06 22:47:46 +00:00
|
|
|
allow dosfs_t fs_t:filesystem associate;
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon fat / gen_context(system_u:object_r:dosfs_t,s0)
|
2009-06-08 17:18:26 +00:00
|
|
|
genfscon hfs / gen_context(system_u:object_r:dosfs_t,s0)
|
|
|
|
genfscon hfsplus / gen_context(system_u:object_r:dosfs_t,s0)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon msdos / gen_context(system_u:object_r:dosfs_t,s0)
|
2007-02-16 23:01:42 +00:00
|
|
|
genfscon ntfs-3g / gen_context(system_u:object_r:dosfs_t,s0)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon ntfs / gen_context(system_u:object_r:dosfs_t,s0)
|
|
|
|
genfscon vfat / gen_context(system_u:object_r:dosfs_t,s0)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2007-10-24 18:37:26 +00:00
|
|
|
type fusefs_t;
|
|
|
|
fs_noxattr_type(fusefs_t)
|
2010-03-12 16:40:59 +00:00
|
|
|
files_mountpoint(fusefs_t)
|
2007-10-24 18:37:26 +00:00
|
|
|
allow fusefs_t self:filesystem associate;
|
|
|
|
allow fusefs_t fs_t:filesystem associate;
|
|
|
|
genfscon fuse / gen_context(system_u:object_r:fusefs_t,s0)
|
|
|
|
genfscon fuseblk / gen_context(system_u:object_r:fusefs_t,s0)
|
2008-05-26 21:07:22 +00:00
|
|
|
genfscon fusectl / gen_context(system_u:object_r:fusefs_t,s0)
|
2007-10-24 18:37:26 +00:00
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
# iso9660_t is the type for CD filesystems
|
|
|
|
# and their files.
|
|
|
|
#
|
2006-03-29 19:55:30 +00:00
|
|
|
type iso9660_t;
|
|
|
|
fs_noxattr_type(iso9660_t)
|
2010-03-12 16:40:59 +00:00
|
|
|
files_mountpoint(iso9660_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon iso9660 / gen_context(system_u:object_r:iso9660_t,s0)
|
|
|
|
genfscon udf / gen_context(system_u:object_r:iso9660_t,s0)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2005-04-21 22:46:49 +00:00
|
|
|
#
|
|
|
|
# removable_t is the default type of all removable media
|
|
|
|
#
|
2006-03-29 19:55:30 +00:00
|
|
|
type removable_t;
|
2005-06-09 15:20:31 +00:00
|
|
|
allow removable_t noxattrfs:filesystem associate;
|
2006-03-29 19:55:30 +00:00
|
|
|
fs_noxattr_type(removable_t)
|
2010-03-12 16:40:59 +00:00
|
|
|
files_mountpoint(removable_t)
|
2005-04-21 22:46:49 +00:00
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
# nfs_t is the default type for NFS file systems
|
|
|
|
# and their files.
|
|
|
|
#
|
2006-03-29 19:55:30 +00:00
|
|
|
type nfs_t;
|
|
|
|
fs_noxattr_type(nfs_t)
|
2005-06-13 17:35:46 +00:00
|
|
|
files_mountpoint(nfs_t)
|
2005-10-06 19:33:06 +00:00
|
|
|
genfscon nfs / gen_context(system_u:object_r:nfs_t,s0)
|
|
|
|
genfscon nfs4 / gen_context(system_u:object_r:nfs_t,s0)
|
|
|
|
genfscon afs / gen_context(system_u:object_r:nfs_t,s0)
|
2009-03-04 15:53:07 +00:00
|
|
|
genfscon dazukofs / gen_context(system_u:object_r:nfs_t,s0)
|
2007-09-04 13:38:39 +00:00
|
|
|
genfscon coda / gen_context(system_u:object_r:nfs_t,s0)
|
2008-05-26 21:07:22 +00:00
|
|
|
genfscon lustre / gen_context(system_u:object_r:nfs_t,s0)
|
2009-03-04 15:53:07 +00:00
|
|
|
genfscon ncpfs / gen_context(system_u:object_r:nfs_t,s0)
|
2006-03-29 14:53:58 +00:00
|
|
|
genfscon reiserfs / gen_context(system_u:object_r:nfs_t,s0)
|
2008-05-26 21:07:22 +00:00
|
|
|
genfscon panfs / gen_context(system_u:object_r:nfs_t,s0)
|
2009-06-08 17:18:26 +00:00
|
|
|
genfscon gadgetfs / gen_context(system_u:object_r:nfs_t,s0)
|
2006-03-29 19:55:30 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Rules for all filesystem types
|
|
|
|
#
|
|
|
|
|
|
|
|
allow filesystem_type self:filesystem associate;
|
2006-04-10 21:04:51 +00:00
|
|
|
|
2006-12-04 20:10:56 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Rules for filesystems without xattr support
|
|
|
|
#
|
|
|
|
|
|
|
|
# Allow me to mv from one noxattrfs to another nfs_t to dosfs_t for example
|
|
|
|
fs_associate_noxattr(noxattrfs)
|
|
|
|
|
2006-04-10 21:04:51 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Unconfined access to this module
|
|
|
|
#
|
|
|
|
|
|
|
|
allow filesystem_unconfined_type filesystem_type:filesystem *;
|
|
|
|
|
2009-11-23 18:16:28 +00:00
|
|
|
# Create/access other files. fs_type is to pick up various
|
2006-04-10 21:04:51 +00:00
|
|
|
# pseudo filesystem types that are applied to both the filesystem
|
|
|
|
# and its files.
|
|
|
|
allow filesystem_unconfined_type filesystem_type:{ dir file lnk_file sock_file fifo_file chr_file blk_file } *;
|