1cronjob_selinux(8) SELinux Policy cronjob cronjob_selinux(8)
2
3
4
6 cronjob_selinux - Security Enhanced Linux Policy for the cronjob pro‐
7 cesses
8
10 Security-Enhanced Linux secures the cronjob processes via flexible
11 mandatory access control.
12
13 The cronjob processes execute with the cronjob_t SELinux type. You can
14 check if you have these processes running by executing the ps command
15 with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep cronjob_t
20
21
22
24 The cronjob_t SELinux type can be entered via the user_cron_spool_t,
25 shell_exec_t file types.
26
27 The default entrypoint paths for the cronjob_t domain are the follow‐
28 ing:
29
30 /var/spool/at(/.*)?, /var/spool/cron, /bin/d?ash, /bin/zsh.*,
31 /bin/ksh.*, /bin/sash, /bin/tcsh, /bin/yash, /bin/mksh, /bin/fish,
32 /bin/bash, /bin/bash2, /usr/bin/fish, /sbin/nologin, /usr/sbin/sesh,
33 /usr/sbin/smrsh, /usr/bin/scponly, /usr/libexec/sesh, /usr/sbin/scpon‐
34 lyc, /usr/bin/git-shell, /usr/libexec/git-core/git-shell
35
37 SELinux defines process types (domains) for each process running on the
38 system
39
40 You can see the context of a process using the -Z option to ps
41
42 Policy governs the access confined processes have to files. SELinux
43 cronjob policy is very flexible allowing users to setup their cronjob
44 processes in as secure a method as possible.
45
46 The following process types are defined for cronjob:
47
48 cronjob_t
49
50 Note: semanage permissive -a cronjob_t can be used to make the process
51 type cronjob_t permissive. SELinux does not deny access to permissive
52 process types, but the AVC (SELinux denials) messages are still gener‐
53 ated.
54
55
57 SELinux policy is customizable based on least access required. cronjob
58 policy is extremely flexible and has several booleans that allow you to
59 manipulate the policy and run cronjob with the tightest access possi‐
60 ble.
61
62
63
64 If you want to allow all domains to use other domains file descriptors,
65 you must turn on the allow_domain_fd_use boolean. Enabled by default.
66
67 setsebool -P allow_domain_fd_use 1
68
69
70
71 If you want to allow sysadm to debug or ptrace all processes, you must
72 turn on the allow_ptrace boolean. Disabled by default.
73
74 setsebool -P allow_ptrace 1
75
76
77
78 If you want to allow system to run with NIS, you must turn on the
79 allow_ypbind boolean. Disabled by default.
80
81 setsebool -P allow_ypbind 1
82
83
84
85 If you want to allow all domains to have the kernel load modules, you
86 must turn on the domain_kernel_load_modules boolean. Disabled by
87 default.
88
89 setsebool -P domain_kernel_load_modules 1
90
91
92
93 If you want to allow all domains to execute in fips_mode, you must turn
94 on the fips_mode boolean. Enabled by default.
95
96 setsebool -P fips_mode 1
97
98
99
100 If you want to enable reading of urandom for all domains, you must turn
101 on the global_ssp boolean. Disabled by default.
102
103 setsebool -P global_ssp 1
104
105
106
108 The SELinux process type cronjob_t can manage files labeled with the
109 following file types. The paths listed are the default paths for these
110 file types. Note the processes UID still need to have DAC permissions.
111
112 initrc_tmp_t
113
114
115 mnt_t
116
117 /mnt(/[^/]*)
118 /mnt(/[^/]*)?
119 /rhev(/[^/]*)?
120 /media(/[^/]*)
121 /media(/[^/]*)?
122 /etc/rhgb(/.*)?
123 /media/.hal-.*
124 /net
125 /afs
126 /rhev
127 /misc
128
129 tmp_t
130
131 /tmp
132 /usr/tmp
133 /var/tmp
134 /tmp-inst
135 /var/tmp-inst
136 /var/tmp/vi.recover
137
138 user_home_t
139
140 /home/[^/]*/.+
141 /home/staff/.+
142
143 user_tmp_t
144
145 /tmp/gconfd-.*
146 /tmp/gconfd-staff
147
148
150 semanage fcontext can also be used to manipulate default file context
151 mappings.
152
153 semanage permissive can also be used to manipulate whether or not a
154 process type is permissive.
155
156 semanage module can also be used to enable/disable/install/remove pol‐
157 icy modules.
158
159 semanage boolean can also be used to manipulate the booleans
160
161
162 system-config-selinux is a GUI tool available to customize SELinux pol‐
163 icy settings.
164
165
167 This manual page was auto-generated using sepolicy manpage .
168
169
171 selinux(8), cronjob(8), semanage(8), restorecon(8), chcon(1) , setse‐
172 bool(8)
173
174
175
176cronjob 15-06-03 cronjob_selinux(8)