1rshd_selinux(8) SELinux Policy rshd rshd_selinux(8)
2
3
4
6 rshd_selinux - Security Enhanced Linux Policy for the rshd processes
7
9 Security-Enhanced Linux secures the rshd processes via flexible manda‐
10 tory access control.
11
12 The rshd processes execute with the rshd_t SELinux type. You can check
13 if you have these processes running by executing the ps command with
14 the -Z qualifier.
15
16 For example:
17
18 ps -eZ | grep rshd_t
19
20
21
23 The rshd_t SELinux type can be entered via the rshd_exec_t file type.
24
25 The default entrypoint paths for the rshd_t domain are the following:
26
27 /usr/sbin/in.rshd, /usr/sbin/in.rexecd, /usr/kerberos/sbin/kshd
28
30 SELinux defines process types (domains) for each process running on the
31 system
32
33 You can see the context of a process using the -Z option to ps
34
35 Policy governs the access confined processes have to files. SELinux
36 rshd policy is very flexible allowing users to setup their rshd pro‐
37 cesses in as secure a method as possible.
38
39 The following process types are defined for rshd:
40
41 rshd_t
42
43 Note: semanage permissive -a rshd_t can be used to make the process
44 type rshd_t permissive. SELinux does not deny access to permissive
45 process types, but the AVC (SELinux denials) messages are still gener‐
46 ated.
47
48
50 SELinux policy is customizable based on least access required. rshd
51 policy is extremely flexible and has several booleans that allow you to
52 manipulate the policy and run rshd with the tightest access possible.
53
54
55
56 If you want to allow all domains to execute in fips_mode, you must turn
57 on the fips_mode boolean. Enabled by default.
58
59 setsebool -P fips_mode 1
60
61
62
63 If you want to allow confined applications to run with kerberos, you
64 must turn on the kerberos_enabled boolean. Enabled by default.
65
66 setsebool -P kerberos_enabled 1
67
68
69
70 If you want to allow system to run with NIS, you must turn on the
71 nis_enabled boolean. Disabled by default.
72
73 setsebool -P nis_enabled 1
74
75
76
77 If you want to enable polyinstantiated directory support, you must turn
78 on the polyinstantiation_enabled boolean. Disabled by default.
79
80 setsebool -P polyinstantiation_enabled 1
81
82
83
85 SELinux defines port types to represent TCP and UDP ports.
86
87 You can see the types associated with a port by using the following
88 command:
89
90 semanage port -l
91
92
93 Policy governs the access confined processes have to these ports.
94 SELinux rshd policy is very flexible allowing users to setup their rshd
95 processes in as secure a method as possible.
96
97 The following port types are defined for rshd:
98
99
100 rsh_port_t
101
102
103
104 Default Defined Ports:
105 tcp 514
106
108 The SELinux process type rshd_t can manage files labeled with the fol‐
109 lowing 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 auth_cache_t
113
114 /var/cache/coolkey(/.*)?
115
116 auth_home_t
117
118 /root/.yubico(/.*)?
119 /root/.config/Yubico(/.*)?
120 /root/.google_authenticator
121 /root/.google_authenticator~
122 /home/[^/]+/.yubico(/.*)?
123 /home/[^/]+/.config/Yubico(/.*)?
124 /home/[^/]+/.google_authenticator
125 /home/[^/]+/.google_authenticator~
126
127 faillog_t
128
129 /var/log/btmp.*
130 /var/log/faillog.*
131 /var/log/tallylog.*
132 /var/run/faillock(/.*)?
133
134 initrc_var_run_t
135
136 /var/run/utmp
137 /var/run/random-seed
138 /var/run/runlevel.dir
139 /var/run/setmixer_flag
140
141 krb5_host_rcache_t
142
143 /var/tmp/krb5_0.rcache2
144 /var/cache/krb5rcache(/.*)?
145 /var/tmp/nfs_0
146 /var/tmp/DNS_25
147 /var/tmp/host_0
148 /var/tmp/imap_0
149 /var/tmp/HTTP_23
150 /var/tmp/HTTP_48
151 /var/tmp/ldap_55
152 /var/tmp/ldap_487
153 /var/tmp/ldapmap1_0
154
155 lastlog_t
156
157 /var/log/lastlog.*
158
159 pam_var_run_t
160
161 /var/(db|adm)/sudo(/.*)?
162 /var/lib/sudo(/.*)?
163 /var/run/sudo(/.*)?
164 /var/run/pam_ssh(/.*)?
165 /var/run/sepermit(/.*)?
166 /var/run/pam_mount(/.*)?
167 /var/run/pam_timestamp(/.*)?
168
169 security_t
170
171 /selinux
172
173 user_tmp_t
174
175 /dev/shm/mono.*
176 /var/run/user(/.*)?
177 /tmp/.ICE-unix(/.*)?
178 /tmp/.X11-unix(/.*)?
179 /dev/shm/pulse-shm.*
180 /tmp/.X0-lock
181 /tmp/hsperfdata_root
182 /var/tmp/hsperfdata_root
183 /home/[^/]+/tmp
184 /home/[^/]+/.tmp
185 /tmp/gconfd-[^/]+
186
187 user_tmp_type
188
189 all user tmp files
190
191 var_auth_t
192
193 /var/ace(/.*)?
194 /var/rsa(/.*)?
195 /var/lib/abl(/.*)?
196 /var/lib/rsa(/.*)?
197 /var/lib/pam_ssh(/.*)?
198 /var/lib/pam_shield(/.*)?
199 /var/opt/quest/vas/vasd(/.*)?
200 /var/lib/google-authenticator(/.*)?
201
202 wtmp_t
203
204 /var/log/wtmp.*
205
206
208 SELinux requires files to have an extended attribute to define the file
209 type.
210
211 You can see the context of a file using the -Z option to ls
212
213 Policy governs the access confined processes have to these files.
214 SELinux rshd policy is very flexible allowing users to setup their rshd
215 processes in as secure a method as possible.
216
217 STANDARD FILE CONTEXT
218
219 SELinux defines the file context types for the rshd, if you wanted to
220 store files with these types in a diffent paths, you need to execute
221 the semanage command to specify alternate labeling and then use re‐
222 storecon to put the labels on disk.
223
224 semanage fcontext -a -t rshd_keytab_t '/srv/myrshd_content(/.*)?'
225 restorecon -R -v /srv/myrshd_content
226
227 Note: SELinux often uses regular expressions to specify labels that
228 match multiple files.
229
230 The following file types are defined for rshd:
231
232
233
234 rshd_exec_t
235
236 - Set files with the rshd_exec_t type, if you want to transition an ex‐
237 ecutable to the rshd_t domain.
238
239
240 Paths:
241 /usr/sbin/in.rshd, /usr/sbin/in.rexecd, /usr/kerberos/sbin/kshd
242
243
244 rshd_keytab_t
245
246 - Set files with the rshd_keytab_t type, if you want to treat the files
247 as kerberos keytab files.
248
249
250
251 Note: File context can be temporarily modified with the chcon command.
252 If you want to permanently change the file context you need to use the
253 semanage fcontext command. This will modify the SELinux labeling data‐
254 base. You will need to use restorecon to apply the labels.
255
256
258 semanage fcontext can also be used to manipulate default file context
259 mappings.
260
261 semanage permissive can also be used to manipulate whether or not a
262 process type is permissive.
263
264 semanage module can also be used to enable/disable/install/remove pol‐
265 icy modules.
266
267 semanage port can also be used to manipulate the port definitions
268
269 semanage boolean can also be used to manipulate the booleans
270
271
272 system-config-selinux is a GUI tool available to customize SELinux pol‐
273 icy settings.
274
275
277 This manual page was auto-generated using sepolicy manpage .
278
279
281 selinux(8), rshd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8),
282 setsebool(8)
283
284
285
286rshd 21-11-19 rshd_selinux(8)