Primary management of SELinux for Linux

Source: Internet
Author: User

SElinux, kernel-level hardened firewall, selinux[security enhanced Linux (Secure hardened Linux)], is a Mac that works in the kernel (Mandatory Access Control, An implementation of a mandatory access control system that explicitly indicates which resources a process can access (files, network ports, and so on). The purpose of the mandatory access control system is to enhance the ability of the system to defend against 0-day attacks (exploits that exploit the vulnerabilities that have not been exposed). So it is not a substitute for network firewalls or ACLs, nor is it duplicated in purpose.

For SELinux's popular understanding:
SELinux, which makes a sandbox for specific programs (which are also growing), has a security label for the files, which belong to different classes and can only perform specific actions, which specifies that an application sets up the files or directories that you can access.

The impact of SELinux on the system:

Label each file, non-homogeneous labels cannot access each other

Features that will affect some of the services

in general, disabled, after setup, need to restart the kernel to take effect


SELinux Management level
SELinux turned on or off
Vim/etc/sysconfig/selinux

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9D/C6/wKioL1mFu5Tw9U-TAACAA0XD-xg180.png "title=" Screenshot from 2017-08-05 20-35-12.png "alt=" Wkiol1mfu5tw9u-taacaa0xd-xg180.png "/>

Selinux=disabled off State
Selinux=enforcing Mandatory State
Selinux=permissive Warning Status

Getenforce View Status
Two run-level levels when SELinux is turned on

Setenforce 0 Warning Status

Setenforce 1 Mandatory State


View FTP Service open in SELinux via Setsebool-p Ftp_home_dir on to open related services

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9D/C6/wKioL1mFvTWxQiwJAACSXrgsj1Q265.png "title=" Screenshot from 2017-08-05 20-41-46.png "alt=" Wkiol1mfvtwxqiwjaacsxrgsj1q265.png "/>

Primary management of SELinux for Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.