LPI
117-303 · Question #91
An SELinux security context is required to ensure that all files in /opt have the default context of system_u:object_r:usr_t. How should the corresponding configuration entry be formatted?
The correct answer is B. /opt/.* system_u:object_r:usr_t. See the full explanation below for the reasoning.
Question
An SELinux security context is required to ensure that all files in /opt have the default context of system_u:object_r:usr_t. How should the corresponding configuration entry be formatted?
Options
- Asystem_u:object_r:usr_t /opt/*
- B/opt/.* system_u:object_r:usr_t
- C/opt/* system_u:object_r:usr_t
- Dsystem_u:object_r:usr_t: /opt/.*
- Esystem_u:object_r:usr_t /opt/.*
How the community answered
(34 responses)- A6% (2)
- B79% (27)
- C3% (1)
- D12% (4)
Community Discussion
No community discussion yet for this question.