Set Linux Configuration with Fabric (set.py)

/etc/selinux/config | /etc/sysconfig/selinux Example Configuration

My /etc/selinux/config

#=======================================================
# /etc/selinux/config (RHEL/CentOS7) 
# /etc/sysconfig/selinux (RHEL/CentOS5,6)
# -rw-r--r-- root root
#
# How to Use
#    getenforce
#        Enforcing  <-  Enable SELinux 
#        Permissive   <- DisableSELinux
#========================================================

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled

# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted


CentOS 7 Default /etc/selinux/config


# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted


Set Linux Configuration with Fabric (set.py)





Set Linux Configuration with Fabric (set.py)