1sge_job_selinux(8) SELinux Policy sge_job sge_job_selinux(8)
2
3
4
6 sge_job_selinux - Security Enhanced Linux Policy for the sge_job pro‐
7 cesses
8
10 Security-Enhanced Linux secures the sge_job processes via flexible
11 mandatory access control.
12
13 The sge_job processes execute with the sge_job_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 sge_job_t
20
21
22
24 The sge_job_t SELinux type can be entered via the file_type,
25 shell_exec_t, unlabeled_t, proc_type, filesystem_type, mtrr_device_t,
26 sge_job_exec_t, sysctl_type file types.
27
28 The default entrypoint paths for the sge_job_t domain are the follow‐
29 ing:
30
31 all files on the system, /bin/d?ash, /bin/zsh.*, /bin/ksh.*, /bin/sash,
32 /bin/tcsh, /bin/yash, /bin/mksh, /bin/fish, /bin/bash, /bin/bash2,
33 /usr/bin/fish, /sbin/nologin, /usr/sbin/sesh, /usr/sbin/smrsh,
34 /usr/bin/scponly, /usr/libexec/sesh, /usr/sbin/scponlyc, /usr/bin/git-
35 shell, /usr/libexec/git-core/git-shell, /dev/cpu/mtrr
36
38 SELinux defines process types (domains) for each process running on the
39 system
40
41 You can see the context of a process using the -Z option to ps
42
43 Policy governs the access confined processes have to files. SELinux
44 sge_job policy is very flexible allowing users to setup their sge_job
45 processes in as secure a method as possible.
46
47 The following process types are defined for sge_job:
48
49 sge_job_ssh_t, sge_job_t
50
51 Note: semanage permissive -a sge_job_t can be used to make the process
52 type sge_job_t permissive. SELinux does not deny access to permissive
53 process types, but the AVC (SELinux denials) messages are still gener‐
54 ated.
55
56
58 SELinux policy is customizable based on least access required. sge_job
59 policy is extremely flexible and has several booleans that allow you to
60 manipulate the policy and run sge_job with the tightest access possi‐
61 ble.
62
63
64
65 If you want to allow all domains to use other domains file descriptors,
66 you must turn on the allow_domain_fd_use boolean. Enabled by default.
67
68 setsebool -P allow_domain_fd_use 1
69
70
71
72 If you want to allow unconfined executables to make their heap memory
73 executable. Doing this is a really bad idea. Probably indicates a
74 badly coded executable, but could indicate an attack. This executable
75 should be reported in bugzilla, you must turn on the allow_execheap
76 boolean. Disabled by default.
77
78 setsebool -P allow_execheap 1
79
80
81
82 If you want to allow unconfined executables to map a memory region as
83 both executable and writable, this is dangerous and the executable
84 should be reported in bugzilla), you must turn on the allow_execmem
85 boolean. Enabled by default.
86
87 setsebool -P allow_execmem 1
88
89
90
91 If you want to allow all unconfined executables to use libraries
92 requiring text relocation that are not labeled textrel_shlib_t), you
93 must turn on the allow_execmod boolean. Enabled by default.
94
95 setsebool -P allow_execmod 1
96
97
98
99 If you want to allow unconfined executables to make their stack exe‐
100 cutable. This should never, ever be necessary. Probably indicates a
101 badly coded executable, but could indicate an attack. This executable
102 should be reported in bugzilla), you must turn on the allow_execstack
103 boolean. Enabled by default.
104
105 setsebool -P allow_execstack 1
106
107
108
109 If you want to allow sysadm to debug or ptrace all processes, you must
110 turn on the allow_ptrace boolean. Disabled by default.
111
112 setsebool -P allow_ptrace 1
113
114
115
116 If you want to allow all domains to have the kernel load modules, you
117 must turn on the domain_kernel_load_modules boolean. Disabled by
118 default.
119
120 setsebool -P domain_kernel_load_modules 1
121
122
123
124 If you want to allow all domains to execute in fips_mode, you must turn
125 on the fips_mode boolean. Enabled by default.
126
127 setsebool -P fips_mode 1
128
129
130
131 If you want to enable reading of urandom for all domains, you must turn
132 on the global_ssp boolean. Disabled by default.
133
134 setsebool -P global_ssp 1
135
136
137
138 If you want to allow certain domains to map low memory in the kernel,
139 you must turn on the mmap_low_allowed boolean. Disabled by default.
140
141 setsebool -P mmap_low_allowed 1
142
143
144
145 If you want to boolean to determine whether the system permits loading
146 policy, setting enforcing mode, and changing boolean values. Set this
147 to true and you have to reboot to set it back, you must turn on the
148 secure_mode_policyload boolean. Disabled by default.
149
150 setsebool -P secure_mode_policyload 1
151
152
153
154 If you want to allow sge to connect to the network using any TCP port,
155 you must turn on the sge_domain_can_network_connect boolean. Disabled
156 by default.
157
158 setsebool -P sge_domain_can_network_connect 1
159
160
161
162 If you want to allow sge to access nfs file systems, you must turn on
163 the sge_use_nfs boolean. Disabled by default.
164
165 setsebool -P sge_use_nfs 1
166
167
168
169 If you want to support X userspace object manager, you must turn on the
170 xserver_object_manager boolean. Disabled by default.
171
172 setsebool -P xserver_object_manager 1
173
174
175
177 The SELinux process type sge_job_t can manage files labeled with the
178 following file types. The paths listed are the default paths for these
179 file types. Note the processes UID still need to have DAC permissions.
180
181 file_type
182
183 all files on the system
184
185
187 semanage fcontext can also be used to manipulate default file context
188 mappings.
189
190 semanage permissive can also be used to manipulate whether or not a
191 process type is permissive.
192
193 semanage module can also be used to enable/disable/install/remove pol‐
194 icy modules.
195
196 semanage boolean can also be used to manipulate the booleans
197
198
199 system-config-selinux is a GUI tool available to customize SELinux pol‐
200 icy settings.
201
202
204 This manual page was auto-generated using sepolicy manpage .
205
206
208 selinux(8), sge_job(8), semanage(8), restorecon(8), chcon(1) , setse‐
209 bool(8), sge_job_ssh_selinux(8), sge_job_ssh_selinux(8)
210
211
212
213sge_job 15-06-03 sge_job_selinux(8)