Blame mls/domains/program/unused/uptimed.te
|
Chris PeBenito |
31b7c0 |
#DESC uptimed - a uptime daemon
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Author: Carsten Grohmann <carsten@securityenhancedlinux.de>
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Date: 19. June 2003
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
#################################
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# General Types
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
type uptimed_spool_t, file_type, sysadmfile;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
#################################
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Rules for the uptimed_t domain.
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
daemon_domain(uptimed, `,privmail')
|
|
Chris PeBenito |
31b7c0 |
etc_domain(uptimed)
|
|
Chris PeBenito |
31b7c0 |
typealias uptimed_etc_t alias etc_uptimed_t;
|
|
Chris PeBenito |
31b7c0 |
file_type_auto_trans(uptimed_t, var_spool_t, uptimed_spool_t)
|
|
Chris PeBenito |
31b7c0 |
allow uptimed_t proc_t:file { getattr read };
|
|
Chris PeBenito |
31b7c0 |
read_locale(uptimed_t)
|
|
Chris PeBenito |
31b7c0 |
allow uptimed_t uptimed_spool_t:file create_file_perms;
|
|
Chris PeBenito |
31b7c0 |
allow uptimed_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# to send mail
|
|
Chris PeBenito |
31b7c0 |
can_exec(uptimed_t, shell_exec_t)
|
|
Chris PeBenito |
31b7c0 |
allow uptimed_t { bin_t sbin_t }:dir search;
|
|
Chris PeBenito |
31b7c0 |
allow uptimed_t bin_t:lnk_file read;
|
|
Chris PeBenito |
31b7c0 |
allow uptimed_t etc_runtime_t:file { getattr read };
|
|
Chris PeBenito |
31b7c0 |
allow uptimed_t self:fifo_file { getattr write };
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# rules for uprecords - it runs in the user context
|
|
Chris PeBenito |
31b7c0 |
allow userdomain uptimed_spool_t:dir search;
|
|
Chris PeBenito |
31b7c0 |
allow userdomain uptimed_spool_t:file { getattr read };
|