Skip to content

Commit 2f55443

Browse files
authored
Update docs related to selinux (#411)
* Update docs related to selinux * Adress comments
1 parent 898af0f commit 2f55443

File tree

5 files changed

+20
-3
lines changed

5 files changed

+20
-3
lines changed

source/developersguide/ansible.rst

+4
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,10 @@ For the management server role we create a main.yml task like this:
294294

295295
Save this as `/etc/ansible/roles/cloudstack-management/tasks/main.yml`
296296

297+
.. note:: In a production environment, selinux should be set to enforcing
298+
and the necessary selinux policies are created to allow the
299+
services to run.
300+
297301
Now we have some new elements to deal with. The Ansible Template module
298302
uses Jinja2 based templating.  As we’re doing a simplified example here,
299303
the Jinja Template for the cloudstack.repo won’t have any variables in

source/installguide/hypervisor/kvm.rst

+4
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,10 @@ ensure the Agent has all the required permissions.
529529
530530
$ setenforce permissive
531531
532+
.. note:: In a production environment, selinux should be set to enforcing
533+
and the necessary selinux policies are created to allow the
534+
services to run.
535+
532536
#. Configure Apparmor (Ubuntu)
533537

534538

source/installguide/hypervisor/lxc.rst

+4
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ ensure the Agent has all the required permissions.
319319
320320
$ setenforce permissive
321321
322+
.. note:: In a production environment, selinux should be set to enforcing
323+
and the necessary selinux policies are created to allow the
324+
services to run.
325+
322326
#. Configure Apparmor (Ubuntu)
323327

324328
#. Check to see whether AppArmor is installed on your machine. If

source/installguide/management-server/_database.rst

+4
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ MySQL. See :ref:`install-database-on-separate-node`.
166166
167167
setenforce permissive
168168
169+
.. note:: In a production environment, selinux should be set to enforcing
170+
and the necessary selinux policies are created to allow the
171+
services to run.
172+
169173
#. Set up the database.
170174

171175
The cloudstack-setup-databases script is used for creating the cloudstack

source/quickinstallationguide/qig.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,10 @@ and ensure that it returns a FQDN response
227227
SELinux
228228
^^^^^^^
229229

230-
At the moment, for CloudStack to work properly SELinux must be set to
231-
permissive or disabled. We want to both configure this for future boots and modify it in
232-
the current running system.
230+
In an ideal environment, selinux should be set to enforcing and the necessary
231+
selinux policies are created to allow the services to run. For this guide,
232+
we will set selinux to permissive mode. This will allow us to install and
233+
configure the services without having to worry about selinux policies.
233234

234235
To configure SELinux to be permissive in the running system we need to run the
235236
following command:

0 commit comments

Comments
 (0)