FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

os:linux:set:etc:etc_selinux_config.html




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)



os/linux/set/etc/etc_selinux_config.html.txt ยท Last modified: 2018/02/18 00:24 by kurihara