1dirsrvadmin_unconfSiEnLeidn_usxcrPioplti_csyeldiinrusxr(v8ad)dimrisnr_vuandcmoinnf_iunnecdo_nsfcirniepdt_script_selinux(8)
2
3
4

NAME

6       dirsrvadmin_unconfined_script_selinux  - Security Enhanced Linux Policy
7       for the dirsrvadmin_unconfined_script processes
8

DESCRIPTION

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

ENTRYPOINTS

24       The dirsrvadmin_unconfined_script_t SELinux type can be entered via the
25       dirsrvadmin_unconfined_script_exec_t, shell_exec_t file types.
26
27       The default entrypoint paths  for  the  dirsrvadmin_unconfined_script_t
28       domain are the following:
29
30       /usr/lib/dirsrv/cgi-bin/ds_create,   /usr/lib/dirsrv/cgi-bin/ds_remove,
31       /bin/d?ash,  /bin/ksh.*,  /bin/zsh.*,  /usr/bin/d?ash,  /usr/bin/ksh.*,
32       /usr/bin/zsh.*,  /bin/esh,  /bin/bash, /bin/fish, /bin/mksh, /bin/sash,
33       /bin/tcsh,   /bin/yash,   /bin/bash2,   /usr/bin/esh,    /sbin/nologin,
34       /usr/bin/bash,     /usr/bin/fish,     /usr/bin/mksh,     /usr/bin/sash,
35       /usr/bin/tcsh,    /usr/bin/yash,    /usr/bin/bash2,     /usr/sbin/sesh,
36       /usr/sbin/smrsh,  /usr/bin/scponly,  /usr/libexec/sesh, /usr/sbin/nolo‐
37       gin,  /usr/bin/git-shell,  /usr/sbin/scponlyc,  /usr/libexec/sudo/sesh,
38       /usr/bin/cockpit-bridge,  /usr/libexec/cockpit-agent, /usr/libexec/git-
39       core/git-shell
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_unconfined_script policy is very flexible allowing users to
49       setup  their  dirsrvadmin_unconfined_script  processes  in  as secure a
50       method as possible.
51
52       The  following  process  types  are  defined   for   dirsrvadmin_uncon‐
53       fined_script:
54
55       dirsrvadmin_unconfined_script_t
56
57       Note:  semanage  permissive  -a  dirsrvadmin_unconfined_script_t can be
58       used to make the process type  dirsrvadmin_unconfined_script_t  permis‐
59       sive. SELinux does not deny access to permissive process types, but the
60       AVC (SELinux denials) messages are still generated.
61
62

BOOLEANS

64       SELinux policy is customizable based on least access required.   dirsr‐
65       vadmin_unconfined_script  policy  is extremely flexible and has several
66       booleans that allow you to manipulate  the  policy  and  run  dirsrvad‐
67       min_unconfined_script with the tightest access possible.
68
69
70
71       If you want to deny user domains applications to map a memory region as
72       both executable and writable, this  is  dangerous  and  the  executable
73       should be reported in bugzilla, you must turn on the deny_execmem bool‐
74       ean. Disabled by default.
75
76       setsebool -P deny_execmem 1
77
78
79
80       If you want to control the ability to mmap a low area  of  the  address
81       space,  as  configured  by /proc/sys/vm/mmap_min_addr, you must turn on
82       the mmap_low_allowed boolean. Disabled by default.
83
84       setsebool -P mmap_low_allowed 1
85
86
87
88       If you want to disable kernel module loading, you must turn on the  se‐
89       cure_mode_insmod boolean. Disabled by default.
90
91       setsebool -P secure_mode_insmod 1
92
93
94
95       If  you  want to allow unconfined executables to make their heap memory
96       executable.  Doing this is a really  bad  idea.  Probably  indicates  a
97       badly  coded  executable, but could indicate an attack. This executable
98       should be reported in bugzilla, you must turn  on  the  selinuxuser_ex‐
99       echeap boolean. Disabled by default.
100
101       setsebool -P selinuxuser_execheap 1
102
103
104
105       If  you  want  to allow unconfined executables to make their stack exe‐
106       cutable.  This should never, ever be necessary.  Probably  indicates  a
107       badly  coded  executable, but could indicate an attack. This executable
108       should be reported in bugzilla, you must turn on the  selinuxuser_exec‐
109       stack boolean. Enabled by default.
110
111       setsebool -P selinuxuser_execstack 1
112
113
114

MANAGED FILES

116       The  SELinux  process  type  dirsrvadmin_unconfined_script_t can manage
117       files labeled with the following file types.  The paths listed are  the
118       default  paths for these file types.  Note the processes UID still need
119       to have DAC permissions.
120
121       file_type
122
123            all files on the system
124
125

FILE CONTEXTS

127       SELinux requires files to have an extended attribute to define the file
128       type.
129
130       You can see the context of a file using the -Z option to ls
131
132       Policy  governs  the  access  confined  processes  have to these files.
133       SELinux dirsrvadmin_unconfined_script policy is very flexible  allowing
134       users  to setup their dirsrvadmin_unconfined_script processes in as se‐
135       cure a method as possible.
136
137       STANDARD FILE CONTEXT
138
139       SELinux defines the  file  context  types  for  the  dirsrvadmin_uncon‐
140       fined_script,  if  you wanted to store files with these types in a dif‐
141       ferent paths, you need to execute the semanage command to  specify  al‐
142       ternate labeling and then use restorecon to put the labels on disk.
143
144       semanage    fcontext    -a    -t   dirsrvadmin_unconfined_script_exec_t
145       '/srv/dirsrvadmin_unconfined_script/content(/.*)?'
146       restorecon -R -v /srv/mydirsrvadmin_unconfined_script_content
147
148       Note: SELinux often uses regular expressions  to  specify  labels  that
149       match multiple files.
150
151       The following file types are defined for dirsrvadmin_unconfined_script:
152
153
154
155       dirsrvadmin_unconfined_script_exec_t
156
157       -  Set files with the dirsrvadmin_unconfined_script_exec_t type, if you
158       want to transition an executable to the dirsrvadmin_unconfined_script_t
159       domain.
160
161
162       Paths:
163            /usr/lib/dirsrv/cgi-bin/ds_create,  /usr/lib/dirsrv/cgi-bin/ds_re‐
164            move
165
166
167       Note: File context can be temporarily modified with the chcon  command.
168       If  you want to permanently change the file context you need to use the
169       semanage fcontext command.  This will modify the SELinux labeling data‐
170       base.  You will need to use restorecon to apply the labels.
171
172

COMMANDS

174       semanage  fcontext  can also be used to manipulate default file context
175       mappings.
176
177       semanage permissive can also be used to manipulate  whether  or  not  a
178       process type is permissive.
179
180       semanage  module can also be used to enable/disable/install/remove pol‐
181       icy modules.
182
183       semanage boolean can also be used to manipulate the booleans
184
185
186       system-config-selinux is a GUI tool available to customize SELinux pol‐
187       icy settings.
188
189

AUTHOR

191       This manual page was auto-generated using sepolicy manpage .
192
193

SEE ALSO

195       selinux(8),   dirsrvadmin_unconfined_script(8),  semanage(8),  restore‐
196       con(8), chcon(1), sepolicy(8), setsebool(8)
197
198
199
200dirsrvadmin_unconfined_script      23-1d0i-r2s0rvadmin_unconfined_script_selinux(8)
Impressum