]> git.ipfire.org Git - people/stevee/selinux-policy.git/blame - refpolicy/policy/modules/services/sysstat.te
renaming from 20060131 interface review
[people/stevee/selinux-policy.git] / refpolicy / policy / modules / services / sysstat.te
CommitLineData
0f73fdea
CP
1
2policy_module(sysstat,1.0.0)
3
4########################################
5#
6# Declarations
7#
8
9type sysstat_t;
10type sysstat_exec_t;
11init_system_domain(sysstat_t,sysstat_exec_t)
12role system_r types sysstat_t;
13
14type sysstat_log_t;
15logging_log_file(sysstat_log_t)
16
17########################################
18#
19# Local policy
20#
21
22allow sysstat_t self:capability sys_resource;
23dontaudit sysstat_t self:capability sys_admin;
24allow sysstat_t self:fifo_file rw_file_perms;
25
26can_exec(sysstat_t, sysstat_exec_t)
27
28allow sysstat_t sysstat_log_t:file create_file_perms;
29allow sysstat_t sysstat_log_t:dir rw_dir_perms;
9d594986 30logging_filetrans_log(sysstat_t,sysstat_log_t,{ file dir })
0f73fdea
CP
31
32# get info from /proc
33kernel_read_system_state(sysstat_t)
34kernel_read_network_state(sysstat_t)
35kernel_read_kernel_sysctl(sysstat_t)
36kernel_read_fs_sysctl(sysstat_t)
37kernel_read_rpc_sysctl(sysstat_t)
38
39corecmd_dontaudit_search_sbin(sysstat_t)
40corecmd_exec_bin(sysstat_t)
41
42dev_read_urand(sysstat_t)
43
44files_search_var(sysstat_t)
45# for mtab
46files_read_etc_runtime_files(sysstat_t)
47#for fstab
48files_read_etc_files(sysstat_t)
49
50fs_getattr_xattr_fs(sysstat_t)
51
9667c156 52term_use_console(sysstat_t)
0f73fdea
CP
53
54init_use_fd(sysstat_t)
55init_use_script_pty(sysstat_t)
56
57libs_use_ld_so(sysstat_t)
58libs_use_shared_libs(sysstat_t)
59
60miscfiles_read_localization(sysstat_t)
61
9667c156 62userdom_dontaudit_list_sysadm_home_dir(sysstat_t)
0f73fdea
CP
63
64optional_policy(`cron',`
65 cron_system_entry(sysstat_t,sysstat_exec_t)
66')
67
68optional_policy(`logging',`
69 logging_send_syslog_msg(sysstat_t)
70')