LFCE on Linux Academy Flashcards
1
Q
SELinuxPolicies
targeted (the default policy)
A
- Only targeted processes are protected by SELinux .
- Everything else is unconfined.
2
Q
SELinuxPolicies
mls (Multi-Level Security)
A
- Typically only used when the absolute highest security is needed.
- Can be extremely complex to set up.
3
Q
SELinuxPolicies
Labeling
A
Files, processes, ports, etc, are all labeled with an SELinux context.
4
Q
SELinuxPolicies
Type Enforcement
A
Type enforcement is the part of the policity that says, for instance, “A process running with the label httpd_t can have read access to a file labeled httpd_config_t
5
Q
SELinuxPolicies
getenforce
A
gets the SELinux enforcement mode.
6
Q
SELinuxPolicies
setenforce 0
A
Temporarily set SELinux mode to permissive.
7
Q
SELinuxPolicies
setenforce 1
A
Temporarily set SELinux mode to enforced.
8
Q
SELinuxPolicies
restorecon
A
(restore context) This will restore the SELinux context of files.