1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
policy_module(at, 0.2)
type at_t;
type at_exec_t;
domain_type(at_t)
domain_entry_file(at_t, at_exec_t)
type at_spool_t;
files_type(at_spool_t)
type at_job_t;
files_type(at_job_t)
type at_job_log_t;
logging_log_file(at_job_log_t)
type atd_t;
type atd_exec_t;
init_daemon_domain(atd_t, atd_exec_t)
type atd_initrc_exec_t;
init_script_file(atd_initrc_exec_t)
type atd_runtime_t alias atd_var_run_t;
files_runtime_file(atd_runtime_t)
########################################
#
# At daemon local policy
#
allow atd_t self:capability { chown dac_override setgid setuid };
allow atd_t self:process { setexec setsched setkeycreate };
allow atd_t self:key manage_key_perms;
allow atd_t self:fifo_file rw_fifo_file_perms;
manage_files_pattern(atd_t, at_job_t, at_job_t)
list_dirs_pattern(atd_t, at_spool_t, at_job_t)
manage_files_pattern(atd_t, at_job_log_t, at_job_log_t)
manage_files_pattern(atd_t, atd_runtime_t, atd_runtime_t)
files_runtime_filetrans(atd_t, atd_runtime_t, file)
kernel_read_kernel_sysctls(atd_t)
corecmd_exec_shell(atd_t)
domain_subj_id_change_exemption(atd_t)
domain_role_change_exemption(atd_t)
files_read_etc_files(atd_t)
files_search_spool(atd_t)
auth_domtrans_chk_passwd(atd_t)
auth_manage_var_auth(atd_t)
# pam_selinux support
selinux_get_fs_mount(atd_t)
selinux_compute_user_contexts(atd_t)
seutil_read_config(atd_t)
logging_send_syslog_msg(atd_t)
miscfiles_read_localization(atd_t)
optional_policy(`
mta_send_mail(atd_t)
')
########################################
#
# At local policy
#
allow at_t self:unix_stream_socket create_stream_socket_perms;
manage_files_pattern(at_t, at_job_t, at_job_t)
allow at_t at_spool_t:dir search_dir_perms;
allow at_t atd_t:process signal;
allow at_t atd_runtime_t:file read_file_perms;
domain_use_interactive_fds(at_t)
files_read_etc_files(at_t)
files_search_spool(at_t)
files_search_runtime(at_t)
miscfiles_read_localization(at_t)
userdom_use_user_terminals(at_t)
|