1dirsrvadmin_selinux(8)    SELinux Policy dirsrvadmin    dirsrvadmin_selinux(8)
2
3
4

NAME

6       dirsrvadmin_selinux  - Security Enhanced Linux Policy for the dirsrvad‐
7       min processes
8

DESCRIPTION

10       Security-Enhanced Linux secures the dirsrvadmin processes via  flexible
11       mandatory access control.
12
13       The  dirsrvadmin processes execute with the dirsrvadmin_t SELinux type.
14       You can check if you have these processes running by executing  the  ps
15       command with the -Z qualifier.
16
17       For example:
18
19       ps -eZ | grep dirsrvadmin_t
20
21
22

ENTRYPOINTS

24       The  dirsrvadmin_t  SELinux  type  can be entered via the shell_exec_t,
25       dirsrvadmin_exec_t file types.
26
27       The default entrypoint paths for the dirsrvadmin_t domain are the  fol‐
28       lowing:
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,    /usr/sbin/stop-ds-admin,   /usr/sbin/start-ds-admin,
39       /usr/sbin/restart-ds-admin
40

PROCESS TYPES

42       SELinux defines process types (domains) for each process running on the
43       system
44
45       You can see the context of a process using the -Z option to ps
46
47       Policy  governs  the  access confined processes have to files.  SELinux
48       dirsrvadmin policy is very  flexible  allowing  users  to  setup  their
49       dirsrvadmin processes in as secure a method as possible.
50
51       The following process types are defined for dirsrvadmin:
52
53       dirsrvadmin_t, dirsrvadmin_unconfined_script_t, dirsrvadmin_script_t
54
55       Note:  semanage  permissive  -a  dirsrvadmin_t  can be used to make the
56       process type dirsrvadmin_t permissive. SELinux does not deny access  to
57       permissive  process  types,  but the AVC (SELinux denials) messages are
58       still generated.
59
60

BOOLEANS

62       SELinux policy is customizable based on least access required.   dirsr‐
63       vadmin policy is extremely flexible and has several booleans that allow
64       you to manipulate the policy and  run  dirsrvadmin  with  the  tightest
65       access possible.
66
67
68
69       If you want to allow all domains to execute in fips_mode, you must turn
70       on the fips_mode boolean. Enabled by default.
71
72       setsebool -P fips_mode 1
73
74
75

MANAGED FILES

77       The SELinux process type dirsrvadmin_t can manage  files  labeled  with
78       the  following  file types.  The paths listed are the default paths for
79       these file types.  Note the processes UID still need to have  DAC  per‐
80       missions.
81
82       cluster_conf_t
83
84            /etc/cluster(/.*)?
85
86       cluster_var_lib_t
87
88            /var/lib/pcsd(/.*)?
89            /var/lib/cluster(/.*)?
90            /var/lib/openais(/.*)?
91            /var/lib/pengine(/.*)?
92            /var/lib/corosync(/.*)?
93            /usr/lib/heartbeat(/.*)?
94            /var/lib/heartbeat(/.*)?
95            /var/lib/pacemaker(/.*)?
96
97       cluster_var_run_t
98
99            /var/run/crm(/.*)?
100            /var/run/cman_.*
101            /var/run/rsctmp(/.*)?
102            /var/run/aisexec.*
103            /var/run/heartbeat(/.*)?
104            /var/run/corosync-qnetd(/.*)?
105            /var/run/corosync-qdevice(/.*)?
106            /var/run/corosync.pid
107            /var/run/cpglockd.pid
108            /var/run/rgmanager.pid
109            /var/run/cluster/rgmanager.sk
110
111       root_t
112
113            /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
114            /
115            /initrd
116
117

FILE CONTEXTS

119       SELinux requires files to have an extended attribute to define the file
120       type.
121
122       You can see the context of a file using the -Z option to ls
123
124       Policy governs the access  confined  processes  have  to  these  files.
125       SELinux  dirsrvadmin  policy  is  very flexible allowing users to setup
126       their dirsrvadmin processes in as secure a method as possible.
127
128       STANDARD FILE CONTEXT
129
130       SELinux defines the file context types  for  the  dirsrvadmin,  if  you
131       wanted  to store files with these types in a diffent paths, you need to
132       execute the semanage command to sepecify alternate  labeling  and  then
133       use restorecon to put the labels on disk.
134
135       semanage  fcontext  -a  -t  dirsrvadmin_ra_content_t  '/srv/mydirsrvad‐
136       min_content(/.*)?'
137       restorecon -R -v /srv/mydirsrvadmin_content
138
139       Note: SELinux often uses regular expressions  to  specify  labels  that
140       match multiple files.
141
142       The following file types are defined for dirsrvadmin:
143
144
145
146       dirsrvadmin_config_t
147
148       -  Set  files  with the dirsrvadmin_config_t type, if you want to treat
149       the files as dirsrvadmin configuration data, usually stored  under  the
150       /etc directory.
151
152
153       Paths:
154            /etc/dirsrv/dsgw(/.*)?, /etc/dirsrv/admin-serv(/.*)?
155
156
157       dirsrvadmin_content_t
158
159       -  Set  files with the dirsrvadmin_content_t type, if you want to treat
160       the files as dirsrvadmin content.
161
162
163
164       dirsrvadmin_exec_t
165
166       - Set files with the dirsrvadmin_exec_t type, if you want to transition
167       an executable to the dirsrvadmin_t domain.
168
169
170       Paths:
171            /usr/sbin/stop-ds-admin,                 /usr/sbin/start-ds-admin,
172            /usr/sbin/restart-ds-admin
173
174
175       dirsrvadmin_htaccess_t
176
177       - Set files with the dirsrvadmin_htaccess_t type, if you want to  treat
178       the file as a dirsrvadmin access file.
179
180
181
182       dirsrvadmin_lock_t
183
184       -  Set files with the dirsrvadmin_lock_t type, if you want to treat the
185       files as dirsrvadmin lock data, stored under the /var/lock directory
186
187
188
189       dirsrvadmin_ra_content_t
190
191       - Set files with the dirsrvadmin_ra_content_t  type,  if  you  want  to
192       treat the files as dirsrvadmin read/append content.
193
194
195
196       dirsrvadmin_rw_content_t
197
198       -  Set  files  with  the  dirsrvadmin_rw_content_t type, if you want to
199       treat the files as dirsrvadmin read/write content.
200
201
202
203       dirsrvadmin_script_exec_t
204
205       - Set files with the dirsrvadmin_script_exec_t type,  if  you  want  to
206       transition an executable to the dirsrvadmin_script_t domain.
207
208
209       Paths:
210            /usr/lib/dirsrv/cgi-bin(/.*)?, /usr/lib/dirsrv/dsgw-cgi-bin(/.*)?
211
212
213       dirsrvadmin_tmp_t
214
215       -  Set  files  with  the  dirsrvadmin_tmp_t  type, if you want to store
216       dirsrvadmin temporary files in the /tmp directories.
217
218
219
220       dirsrvadmin_unconfined_script_exec_t
221
222       - Set files with the dirsrvadmin_unconfined_script_exec_t type, if  you
223       want to transition an executable to the dirsrvadmin_unconfined_script_t
224       domain.
225
226
227       Paths:
228            /usr/lib/dirsrv/cgi-bin/ds_create,            /usr/lib/dirsrv/cgi-
229            bin/ds_remove
230
231
232       dirsrvadmin_unit_file_t
233
234       - Set files with the dirsrvadmin_unit_file_t type, if you want to treat
235       the files as dirsrvadmin unit content.
236
237
238
239       Note: File context can be temporarily modified with the chcon  command.
240       If  you want to permanently change the file context you need to use the
241       semanage fcontext command.  This will modify the SELinux labeling data‐
242       base.  You will need to use restorecon to apply the labels.
243
244

COMMANDS

246       semanage  fcontext  can also be used to manipulate default file context
247       mappings.
248
249       semanage permissive can also be used to manipulate  whether  or  not  a
250       process type is permissive.
251
252       semanage  module can also be used to enable/disable/install/remove pol‐
253       icy modules.
254
255       semanage boolean can also be used to manipulate the booleans
256
257
258       system-config-selinux is a GUI tool available to customize SELinux pol‐
259       icy settings.
260
261

AUTHOR

263       This manual page was auto-generated using sepolicy manpage .
264
265

SEE ALSO

267       selinux(8),   dirsrvadmin(8),   semanage(8),  restorecon(8),  chcon(1),
268       sepolicy(8),  setsebool(8),  dirsrvadmin_script_selinux(8),   dirsrvad‐
269       min_script_selinux(8), dirsrvadmin_unconfined_script_selinux(8), dirsr‐
270       vadmin_unconfined_script_selinux(8)
271
272
273
274dirsrvadmin                        21-03-26             dirsrvadmin_selinux(8)
Impressum