help:selinux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
help:selinux [2016/07/14 15:00] – 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 ====== | ====== SELinux ====== | ||
- | Security-Enhanced Linux (SELinux) is a security | + | Security-Enhanced Linux (SELinux) is a Linux kernel feature that provides a mechanism for supporting access control |
- | SELinux also adds finer granularity to access controls. Instead of only being able to specify who can read, write or execute a file, SELinux lets you specify who can unlink, append only, move a file and so on. Additionally SELinux allows you to specify access to many resources other than files as well, such as network resources and interprocess communication (IPC). | + | SELinux enforces the idea that programs should be limited |
- | + | ||
- | SELinux enforces the idea that programs should be limited | + | |
SELinux is a kernel security extension, which can be used to guard against misconfigured or compromised programs. | SELinux is a kernel security extension, which can be used to guard against misconfigured or compromised programs. | ||
Line 14: | Line 12: | ||
* permissive – SELinux prints warnings instead of enforcing. | * permissive – SELinux prints warnings instead of enforcing. | ||
* disabled – SELinux is fully disabled. | * disabled – SELinux is fully disabled. | ||
- | |||
- | The type of policies that can be used for the SELinux include: | ||
- | |||
- | * targeted – This policy will protected only specific targeted network daemons (such as DNS, Apache and others). | ||
- | * mls - Multi Level Security (MLS) allows further categorization of data privilege levels, such as “confidential, | ||
- | * strict – This is for maximum SELinux protection. | ||
- | |||
- | [[SELinix: | ||
- | |||
[[SELinux: | [[SELinux: | ||
[[SELinux: | [[SELinux: | ||
- | |||
- | [[SELinux: | ||
[[SELinux: | [[SELinux: | ||
Line 35: | Line 22: | ||
[[SELinux: | [[SELinux: | ||
- | |||
- | [[SELinux: | ||
[[SELinux: | [[SELinux: | ||
- | |||
- | [[SELinux: | ||
- | |||
- | [[SELinux: | ||
[[SELinux: | [[SELinux: | ||
Line 49: | Line 30: | ||
[[SELinux: | [[SELinux: | ||
- | |||
- | [[SELinux: | ||
[[SELinux: | [[SELinux: | ||
[[SELinux: | [[SELinux: | ||
- | |||
- | [[SELinux: | ||
[[SELinux: | [[SELinux: | ||
Line 70: | Line 47: | ||
- | References: | ||
- | * https:// | ||
+ | |||
+ | |||
+ | ===== 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.1468508418.txt.gz · Last modified: 2020/07/15 09:30 (external edit)