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