help:selinux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
help:selinux [2020/04/15 10:55] – removed peter | help:selinux [2020/07/19 20:09] (current) – old revision restored (2016/07/11 11:59) 192.99.4.140 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SELinux ====== | ||
+ | |||
+ | Security-Enhanced Linux (SELinux) is a Linux kernel feature that provides a mechanism for supporting access control security policies which provides great protection. | ||
+ | |||
+ | SELinux enforces the idea that programs should be limited in what files they can access and what actions they can take. | ||
+ | |||
+ | SELinux is a kernel security extension, which can be used to guard against misconfigured or compromised programs. | ||
+ | |||
+ | SELinux can be any one of the following state: | ||
+ | |||
+ | * enforcing – SELinux security policy is enforced. | ||
+ | * permissive – SELinux prints warnings instead of enforcing. | ||
+ | * disabled – SELinux is fully disabled. | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | [[SELinux: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== See SELinux Labels ===== | ||
+ | |||
+ | Type the following command: | ||
+ | |||
+ | <code bash> | ||
+ | ls -lZ / | ||
+ | ls -lZd / | ||
+ | ls -lZd /etc | ||
+ | ls -lZ /dev/ | grep deviceName | ||
+ | ls -lZ / | ||
+ | </ | ||
+ | |||
+ | Sample outputs: | ||
+ | |||
+ | < | ||
+ | -rw-r--r-- | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Do Boolean Lockdown ===== | ||
+ | |||
+ | Run the **getsebool -a** command and lockdown system: | ||
+ | |||
+ | <code bash> | ||
+ | getsebool -a | less | ||
+ | getsebool -a | grep off | ||
+ | getsebool -a | grep on | ||
+ | </ | ||
+ | |||
+ | To secure the machine, look at settings which are set to ‘on’ and change to ‘off’ if they do not apply to your setup with the help of setsebool command. | ||
+ | |||
+ | Please note that SELinux adds 2-8% overheads to a typical installation. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
help/selinux.1586948155.txt.gz · Last modified: 2020/07/15 09:30 (external edit)