nerdexam
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)
  • A
    6% (2)
  • B
    79% (27)
  • C
    3% (1)
  • D
    12% (4)

Community Discussion

No community discussion yet for this question.

Full 117-303 Practice