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/11 12:40] – peter | help:selinux [2020/07/19 20:09] (current) – old revision restored (2016/07/11 11:59) 192.99.4.140 | ||
---|---|---|---|
Line 16: | Line 16: | ||
[[SELinux: | [[SELinux: | ||
- | |||
- | [[SELinux: | ||
[[SELinux: | [[SELinux: | ||
Line 24: | Line 22: | ||
[[SELinux: | [[SELinux: | ||
- | |||
- | [[SELinux: | ||
[[SELinux: | [[SELinux: | ||
- | |||
- | [[SELinux: | ||
- | |||
- | [[SELinux: | ||
[[SELinux: | [[SELinux: | ||
Line 60: | Line 52: | ||
+ | |||
+ | ===== 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.1468240835.txt.gz · Last modified: 2020/07/15 09:30 (external edit)