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 shell_exec_t,
25 user_cron_spool_t file types.
26
27 The default entrypoint paths for the cronjob_t domain are the follow‐
28 ing:
29
30 /bin/d?ash, /bin/ksh.*, /bin/zsh.*, /usr/bin/d?ash, /usr/bin/ksh.*,
31 /usr/bin/zsh.*, /bin/esh, /bin/bash, /bin/fish, /bin/mksh, /bin/sash,
32 /bin/tcsh, /bin/yash, /bin/bash2, /usr/bin/esh, /sbin/nologin,
33 /usr/bin/bash, /usr/bin/fish, /usr/bin/mksh, /usr/bin/sash,
34 /usr/bin/tcsh, /usr/bin/yash, /usr/bin/bash2, /usr/sbin/sesh,
35 /usr/sbin/smrsh, /usr/bin/scponly, /usr/libexec/sesh, /usr/sbin/nolo‐
36 gin, /usr/bin/git-shell, /usr/sbin/scponlyc, /usr/libexec/sudo/sesh,
37 /usr/bin/cockpit-bridge, /usr/libexec/cockpit-agent, /usr/libexec/git-
38 core/git-shell, /var/spool/at(/.*)?, /var/spool/cron
39
41 SELinux defines process types (domains) for each process running on the
42 system
43
44 You can see the context of a process using the -Z option to ps
45
46 Policy governs the access confined processes have to files. SELinux
47 cronjob policy is very flexible allowing users to setup their cronjob
48 processes in as secure a method as possible.
49
50 The following process types are defined for cronjob:
51
52 cronjob_t
53
54 Note: semanage permissive -a cronjob_t can be used to make the process
55 type cronjob_t permissive. SELinux does not deny access to permissive
56 process types, but the AVC (SELinux denials) messages are still gener‐
57 ated.
58
59
61 SELinux policy is customizable based on least access required. cronjob
62 policy is extremely flexible and has several booleans that allow you to
63 manipulate the policy and run cronjob with the tightest access possi‐
64 ble.
65
66
67
68 If you want to allow all domains to execute in fips_mode, you must turn
69 on the fips_mode boolean. Enabled by default.
70
71 setsebool -P fips_mode 1
72
73
74
75 If you want to allow system to run with NIS, you must turn on the
76 nis_enabled boolean. Disabled by default.
77
78 setsebool -P nis_enabled 1
79
80
81
83 The SELinux process type cronjob_t can manage files labeled with the
84 following file types. The paths listed are the default paths for these
85 file types. Note the processes UID still need to have DAC permissions.
86
87 user_home_t
88
89 /home/[^/]+/.+
90
91 user_tmp_t
92
93 /dev/shm/mono.*
94 /var/run/user(/.*)?
95 /tmp/.ICE-unix(/.*)?
96 /tmp/.X11-unix(/.*)?
97 /dev/shm/pulse-shm.*
98 /tmp/.X0-lock
99 /tmp/hsperfdata_root
100 /var/tmp/hsperfdata_root
101 /home/[^/]+/tmp
102 /home/[^/]+/.tmp
103 /tmp/gconfd-[^/]+
104
105
107 semanage fcontext can also be used to manipulate default file context
108 mappings.
109
110 semanage permissive can also be used to manipulate whether or not a
111 process type is permissive.
112
113 semanage module can also be used to enable/disable/install/remove pol‐
114 icy modules.
115
116 semanage boolean can also be used to manipulate the booleans
117
118
119 system-config-selinux is a GUI tool available to customize SELinux pol‐
120 icy settings.
121
122
124 This manual page was auto-generated using sepolicy manpage .
125
126
128 selinux(8), cronjob(8), semanage(8), restorecon(8), chcon(1), sepol‐
129 icy(8), setsebool(8)
130
131
132
133cronjob 19-06-18 cronjob_selinux(8)