LFCE on Linux Academy Flashcards

1
Q

SELinuxPolicies

targeted (the default policy)

A
  • Only targeted processes are protected by SELinux .

- Everything else is unconfined.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SELinuxPolicies

Labeling

A

Files, processes, ports, etc, are all labeled with an SELinux context.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SELinuxPolicies

getenforce

A

gets the SELinux enforcement mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

SELinuxPolicies

setenforce 0

A

Temporarily set SELinux mode to permissive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SELinuxPolicies

setenforce 1

A

Temporarily set SELinux mode to enforced.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SELinuxPolicies

restorecon

A

(restore context) This will restore the SELinux context of files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly