Linux - secure linux (SELinux)

1 - About

SELinux is a kernel-level policy mechanisms.

3 - How to

3.1 - Disable secure linux

Alternatively, this can be done during the installation.

  • Manually: Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:

SELINUX=disabled


- name: Disable SELinux
  selinux:
    state: disabled

- name: Reboot required for selinux
  when: selinux is changed
  fail:
    - msg: "selinux has changed, you should reboot the server first"

then reboot


reboot

3.2 - Enforce

With an ansible playbook


tasks:
  - name: enable selinux
    command: /sbin/setenforce 1


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap