|
Chris PeBenito |
e181fe |
|
|
Chris PeBenito |
960373 |
policy_module(files,1.0)
|
|
Chris PeBenito |
960373 |
|
|
Chris PeBenito |
fd89e1 |
########################################
|
|
Chris PeBenito |
fd89e1 |
#
|
|
Chris PeBenito |
fd89e1 |
# Declarations
|
|
Chris PeBenito |
fd89e1 |
#
|
|
Chris PeBenito |
fd89e1 |
|
|
Chris PeBenito |
b4cd15 |
attribute file_type;
|
|
Chris PeBenito |
b4cd15 |
attribute lockfile;
|
|
Chris PeBenito |
46410f |
attribute mountpoint;
|
|
Chris PeBenito |
b4cd15 |
attribute pidfile;
|
|
Chris PeBenito |
b4cd15 |
attribute tmpfile;
|
|
Chris PeBenito |
46410f |
attribute tmpfsfile;
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
# default_t is the default type for files that do not
|
|
Chris PeBenito |
b4cd15 |
# match any specification in the file_contexts configuration
|
|
Chris PeBenito |
b4cd15 |
# other than the generic /.* specification.
|
|
Chris PeBenito |
a2d824 |
type default_t, file_type, mountpoint;
|
|
Chris PeBenito |
763c44 |
fs_associate(default_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(default_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# etc_t is the type of the system etc directories.
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
type etc_t, file_type;
|
|
Chris PeBenito |
763c44 |
fs_associate(etc_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(etc_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# etc_runtime_t is the type of various
|
|
Chris PeBenito |
b4cd15 |
# files in /etc that are automatically
|
|
Chris PeBenito |
b4cd15 |
# generated during initialization.
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
type etc_runtime_t, file_type;
|
|
Chris PeBenito |
763c44 |
fs_associate(etc_runtime_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(etc_runtime_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# file_t is the default type of a file that has not yet been
|
|
Chris PeBenito |
b4cd15 |
# assigned an extended attribute (EA) value (when using a filesystem
|
|
Chris PeBenito |
b4cd15 |
# that supports EAs).
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
a2d824 |
type file_t, file_type, mountpoint;
|
|
Chris PeBenito |
763c44 |
fs_associate(file_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(file_t)
|
|
Chris PeBenito |
0fd9dc |
kernel_rootfs_mountpoint(file_t)
|
|
Chris PeBenito |
cabfa5 |
sid file context_template(system_u:object_r:file_t,s0)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# home_root_t is the type for the directory where user home directories
|
|
Chris PeBenito |
b4cd15 |
# are created
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
0907bd |
type home_root_t, file_type, mountpoint; #, polyparent
|
|
Chris PeBenito |
763c44 |
fs_associate(home_root_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(home_root_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# lost_found_t is the type for the lost+found directories.
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
type lost_found_t, file_type;
|
|
Chris PeBenito |
763c44 |
fs_associate(lost_found_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(lost_found_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# mnt_t is the type for mount points such as /mnt/cdrom
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
a2d824 |
type mnt_t, file_type, mountpoint;
|
|
Chris PeBenito |
763c44 |
fs_associate(mnt_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(mnt_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
219bcf |
type no_access_t, file_type;
|
|
Chris PeBenito |
763c44 |
fs_associate(no_access_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(no_access_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
219bcf |
type poly_t, file_type;
|
|
Chris PeBenito |
763c44 |
fs_associate(poly_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(poly_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
219bcf |
type readable_t, file_type;
|
|
Chris PeBenito |
763c44 |
fs_associate(readable_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(readable_t)
|
|
Chris PeBenito |
219bcf |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
a2d824 |
# root_t is the type for rootfs and the root directory.
|
|
Chris PeBenito |
a2d824 |
#
|
|
Chris PeBenito |
0907bd |
type root_t, file_type, mountpoint; #, polyparent
|
|
Chris PeBenito |
763c44 |
fs_associate(root_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(root_t)
|
|
Chris PeBenito |
0fd9dc |
kernel_rootfs_mountpoint(root_t)
|
|
Chris PeBenito |
e32c0d |
genfscon rootfs / context_template(system_u:object_r:root_t,s0)
|
|
Chris PeBenito |
a2d824 |
|
|
Chris PeBenito |
a2d824 |
#
|
|
Chris PeBenito |
b4cd15 |
# src_t is the type of files in the system src directories.
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
0907bd |
type src_t, file_type, mountpoint;
|
|
Chris PeBenito |
763c44 |
fs_associate(src_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(src_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# tmp_t is the type of the temporary directories
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
0907bd |
type tmp_t, file_type, tmpfile, mountpoint; #, polydir
|
|
Chris PeBenito |
763c44 |
fs_associate(tmp_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(tmp_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# usr_t is the type for /usr.
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
a2d824 |
type usr_t, file_type, mountpoint;
|
|
Chris PeBenito |
763c44 |
fs_associate(usr_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(usr_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# var_t is the type of /var
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
a2d824 |
type var_t, file_type, mountpoint;
|
|
Chris PeBenito |
763c44 |
fs_associate(var_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(var_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# var_lib_t is the type of /var/lib
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
ea7d57 |
type var_lib_t, file_type, mountpoint;
|
|
Chris PeBenito |
763c44 |
fs_associate(var_lib_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(var_lib_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# var_lock_t is tye type of /var/lock
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
type var_lock_t, file_type, lockfile;
|
|
Chris PeBenito |
763c44 |
fs_associate(var_lock_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(var_lock_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# var_run_t is the type of /var/run, usually
|
|
Chris PeBenito |
b4cd15 |
# used for pid and other runtime files.
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
type var_run_t, file_type, pidfile;
|
|
Chris PeBenito |
763c44 |
fs_associate(var_run_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(var_run_t)
|
|
Chris PeBenito |
b4cd15 |
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# var_spool_t is the type of /var/spool
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
type var_spool_t, file_type;
|
|
Chris PeBenito |
763c44 |
fs_associate(var_spool_t)
|
|
Chris PeBenito |
0fd9dc |
fs_associate_noxattr(var_spool_t)
|