DESCRIPTION

FILE CONTEXTS

SELinux requires files to have an extended attribute to define the file type.

You can see the context of a file using the -Z option to lsP
Policy governs the access confined processes have to these files.
SELinux dcc policy is very flexible allowing users to setup their dcc processes in as secure a method as possible.

The following file types are defined for dcc:

dcc_client_exec_t

- Set files with the dcc_client_exec_t type, if you want to transition an executable to the dcc_client_t domain.

dcc_client_map_t

- Set files with the dcc_client_map_t type, if you want to treat the files as dcc client map data.

Paths:

/var/lib/dcc/map, /etc/dcc/map, /var/dcc/map, /var/run/dcc/map

dcc_client_tmp_t

- Set files with the dcc_client_tmp_t type, if you want to store dcc client temporary files in the /tmp directories.

dcc_dbclean_exec_t

- Set files with the dcc_dbclean_exec_t type, if you want to transition an executable to the dcc_dbclean_t domain.

dcc_dbclean_tmp_t

- Set files with the dcc_dbclean_tmp_t type, if you want to store dcc dbclean temporary files in the /tmp directories.

dcc_var_run_t

- Set files with the dcc_var_run_t type, if you want to store the dcc files under the /run directory.

dcc_var_t

- Set files with the dcc_var_t type, if you want to store the files under the /var directory.

Paths:

/etc/dcc(/.*)?, /var/dcc(/.*)?, /var/lib/dcc(/.*)?

dccd_exec_t

- Set files with the dccd_exec_t type, if you want to transition an executable to the dccd_t domain.

dccd_tmp_t

- Set files with the dccd_tmp_t type, if you want to store dccd temporary files in the /tmp directories.

dccd_var_run_t

- Set files with the dccd_var_run_t type, if you want to store the dccd files under the /run directory.

dccifd_exec_t

- Set files with the dccifd_exec_t type, if you want to transition an executable to the dccifd_t domain.

dccifd_tmp_t

- Set files with the dccifd_tmp_t type, if you want to store dccifd temporary files in the /tmp directories.

dccifd_var_run_t

- Set files with the dccifd_var_run_t type, if you want to store the dccifd files under the /run directory.

Paths:

/etc/dcc/dccifd, /var/run/dcc/dccifd

dccm_exec_t

- Set files with the dccm_exec_t type, if you want to transition an executable to the dccm_t domain.

dccm_tmp_t

- Set files with the dccm_tmp_t type, if you want to store dccm temporary files in the /tmp directories.

dccm_var_run_t

- Set files with the dccm_var_run_t type, if you want to store the dccm files under the /run directory.

Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the
semanage fcontext
command. This will modify the SELinux labeling database. You will need to use
restorecon
to apply the labels.

PORT TYPES

SELinux defines port types to represent TCP and UDP ports.

You can see the types associated with a port by using the following command:

semanage port -l

Policy governs the access confined processes have to these ports.
SELinux dcc policy is very flexible allowing users to setup their dcc processes in as secure a method as possible.

The following port types are defined for dcc:

dcc_port_t

Default Defined Ports:
tcp 8021

dccm_port_t

Default Defined Ports:
tcp 8021

PROCESS TYPES

SELinux defines process types (domains) for each process running on the system

You can see the context of a process using the -Z option to psP
Policy governs the access confined processes have to files.
SELinux dcc policy is very flexible allowing users to setup their dcc processes in as secure a method as possible.

The following process types are defined for dcc:

dccm_t, dcc_client_t, dcc_dbclean_t, dccifd_t, dccd_t

Note:
semanage permissive -a PROCESS_TYPE
can be used to make a process type permissive. Permissive process types are not denied access by SELinux. AVC messages will still be generated.

COMMANDS

semanage fcontext
can also be used to manipulate default file context mappings.

semanage permissive
can also be used to manipulate whether or not a process type is permissive.

semanage module
can also be used to enable/disable/install/remove policy modules.

semanage port
can also be used to manipulate the port definitions

system-config-selinux
is a GUI tool available to customize SELinux policy settings.