Practice Exams:

RedHat EX200 Dumps

EXAM: Red Hat Certified System Administrator (RHCSA)
Verified By Experts
Premium Bundle
$40.00
$59.97 $99.97

EX200 Premium Bundle


  • Premium File 111 Questions & Answers
  • Training Course 71 Lectures
  • Study Guide 1601 Pages

RedHat EX200 Practice Test 78

Question 770

A bank needs to identify why a system daemon cannot open a file owned by its service account. Suppose the team follows this shortcut instead: Run chmod 777 on an already readable file and assume SELinux will stop blocking it. What is the most likely direct system or operational consequence?

  1. Expected key authentication fails or secret key material is exposed
  2. Mandatory-policy denial persists while discretionary access becomes unnecessarily broad
  3. Mandatory access protection is lost across the system and the original file labeling mistake remains
  4. Future relabeling can remove the temporary fix and the service fails again

Answer & Explanations

Correct answer: B

A.

This failure concerns another scenario: A law firm provisions key-only maintenance access to a restricted RHEL host. In the stated case: A bank needs to identify why a system daemon cannot open a file owned by its service account. The relevant consequence is: Mandatory-policy denial persists while discretionary access becomes unnecessarily broad. The control that prevents it is: Use ls -Z or ps -eZ and audit messages to identify the actual SELinux type of the affected path or process.

B.

Mandatory-policy denial persists while discretionary access becomes unnecessarily broad. This is the risk in the stated situation: A bank needs to identify why a system daemon cannot open a file owned by its service account. The risky shortcut is: Run chmod 777 on an already readable file and assume SELinux will stop blocking it. Prevent it by: Use ls -Z or ps -eZ and audit messages to identify the actual SELinux type of the affected path or process.

C.

This failure concerns another scenario: A hospital web application fails to read a moved directory and an operator suspects SELinux. In the stated case: A bank needs to identify why a system daemon cannot open a file owned by its service account. The relevant consequence is: Mandatory-policy denial persists while discretionary access becomes unnecessarily broad. The control that prevents it is: Use ls -Z or ps -eZ and audit messages to identify the actual SELinux type of the affected path or process.

D.

This failure concerns another scenario: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. In the stated case: A bank needs to identify why a system daemon cannot open a file owned by its service account. The relevant consequence is: Mandatory-policy denial persists while discretionary access becomes unnecessarily broad. The control that prevents it is: Use ls -Z or ps -eZ and audit messages to identify the actual SELinux type of the affected path or process.

Question 771

A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. Which RHEL 10 command or administration approach best addresses the situation?

  1. Use firewall-cmd with the correct zone and --permanent service or port scope, then reload and verify only the approved inbound connection
  2. Configure an approved user or service umask and verify newly created files and directories get no more access than required
  3. Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type
  4. Install an authorized user's public key in the correct ~/.ssh/authorized_keys with secure ownership and directory permissions and confirm sshd policy

Answer & Explanations

Correct answer: C

A.

This action is appropriate in a different case: A bank needs a secure management service open only on a specific internal zone. There, the reason is: A firewalld runtime change can vanish at restart and a broad zone rule exposes more services than the requested exception. The current case is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The appropriate response is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

B.

This action is appropriate in a different case: A medical research team needs new private reports protected from other local accounts. There, the reason is: Umask removes permission bits from default creation modes, and changing one existing file's chmod does not set future creation defaults. The current case is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The appropriate response is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

C.

Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type. The technical reason is: Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel. The stated condition is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. Confirm the result by: Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel.

D.

This action is appropriate in a different case: A law firm provisions key-only maintenance access to a restricted RHEL host. There, the reason is: SSH authenticates a private-key holder against the listed public key, while world-writable key directories can be refused or exploited. The current case is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The appropriate response is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

Question 772

A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. A Red Hat administrator recommends: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type. Which technical process explanation best justifies that recommendation?

  1. SSH authenticates a private-key holder against the listed public key, while world-writable key directories can be refused or exploited
  2. SELinux enforcing denies prohibited actions while permissive logs policy violations without enforcing them; a temporary setenforce state does not persist as a configured boot policy
  3. SELinux type enforcement adds a mandatory security decision beyond Unix owner and mode bits; a DAC allowance does not guarantee policy permits access
  4. Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel

Answer & Explanations

Correct answer: D

A.

This principle explains a different technical intervention: Install an authorized user's public key in the correct ~/.ssh/authorized_keys with secure ownership and directory permissions and confirm sshd policy. It applies to: A law firm provisions key-only maintenance access to a restricted RHEL host. The actual case is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The mechanism relevant here is: Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel.

B.

This principle explains a different technical intervention: Check getenforce and use an authorized temporary setenforce change only for diagnosis, restoring enforcing and setting persistent policy through documented configuration if truly required. It applies to: A hospital web application fails to read a moved directory and an operator suspects SELinux. The actual case is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The mechanism relevant here is: Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel.

C.

This principle explains a different technical intervention: Use ls -Z or ps -eZ and audit messages to identify the actual SELinux type of the affected path or process. It applies to: A university moves web assets to a new directory and Apache denies them despite broad Unix permissions. The actual case is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The mechanism relevant here is: Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel.

D.

Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel. That mechanism explains the decision: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type. In the reported situation: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. Confirmation requires: Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel.

Question 773

A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. After the targeted configuration or process is implemented, which evidence most directly demonstrates the requested behavior?

  1. Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel
  2. Compare the observed context with matchpathcon or documented policy expectations and identify the specific AVC denial
  3. Inspect semanage port -l and verify the exact daemon successfully binds the new port while unwanted ports remain restricted
  4. Verify the specific Boolean before and after a controlled reboot and confirm intended application behavior plus no broad policy bypass

Answer & Explanations

Correct answer: A

A.

Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel. This check directly tests: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type. The underlying behavior is: Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel. The case is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type.

B.

This observation would verify a different remedy: Use ls -Z or ps -eZ and audit messages to identify the actual SELinux type of the affected path or process. That remedy applies to: A university moves web assets to a new directory and Apache denies them despite broad Unix permissions. The present condition is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. To assess it, check: Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel.

C.

This observation would verify a different remedy: Use semanage port to add or modify the intended SELinux port type for a specifically approved nonstandard service listener. That remedy applies to: A retailer's HTTP service moves to an approved nonstandard TCP port but fails at startup despite an open firewall. The present condition is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. To assess it, check: Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel.

D.

This observation would verify a different remedy: Inspect getsebool or semanage boolean settings, then change only the documented relevant Boolean with setsebool -P after authorization. That remedy applies to: A university web application needs an approved network database connection while SELinux enforcing remains enabled. The present condition is: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. To assess it, check: Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel.

Question 774

A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. Which apparently convenient shortcut would most directly undermine the required control?

  1. Set all SELinux booleans to on because one web service needs outbound database access
  2. Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade
  3. Open all TCP ports globally to make a single internal service work
  4. Set umask 000 for every account because a shared report directory once had a permission problem

Answer & Explanations

Correct answer: B

A.

This proposed shortcut concerns a separate case: A university web application needs an approved network database connection while SELinux enforcing remains enabled. The risk in this question concerns: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. Here the unsafe shortcut is: Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. Use this response instead: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

B.

Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. This shortcut is unsafe for: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The resulting failure can be: Future relabeling can remove the temporary fix and the service fails again. The safer response is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

C.

This proposed shortcut concerns a separate case: A bank needs a secure management service open only on a specific internal zone. The risk in this question concerns: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. Here the unsafe shortcut is: Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. Use this response instead: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

D.

This proposed shortcut concerns a separate case: A medical research team needs new private reports protected from other local accounts. The risk in this question concerns: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. Here the unsafe shortcut is: Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. Use this response instead: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

Question 775

A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. Suppose the team follows this shortcut instead: Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. What is the most likely direct system or operational consequence?

  1. New sensitive files become readable or writable to unrelated users
  2. Expected key authentication fails or secret key material is exposed
  3. Future relabeling can remove the temporary fix and the service fails again
  4. Mandatory access protection is lost across the system and the original file labeling mistake remains

Answer & Explanations

Correct answer: C

A.

This failure concerns another scenario: A medical research team needs new private reports protected from other local accounts. In the stated case: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The relevant consequence is: Future relabeling can remove the temporary fix and the service fails again. The control that prevents it is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

B.

This failure concerns another scenario: A law firm provisions key-only maintenance access to a restricted RHEL host. In the stated case: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The relevant consequence is: Future relabeling can remove the temporary fix and the service fails again. The control that prevents it is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

C.

Future relabeling can remove the temporary fix and the service fails again. This is the risk in the stated situation: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The risky shortcut is: Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. Prevent it by: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

D.

This failure concerns another scenario: A hospital web application fails to read a moved directory and an operator suspects SELinux. In the stated case: A hospital hosts a web document root under /srv/intranet and needs a persistent httpd content type. The relevant consequence is: Future relabeling can remove the temporary fix and the service fails again. The control that prevents it is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

Question 776

A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. Which RHEL 10 command or administration approach best addresses the situation?

  1. Use semanage port to add or modify the intended SELinux port type for a specifically approved nonstandard service listener
  2. Inspect getsebool or semanage boolean settings, then change only the documented relevant Boolean with setsebool -P after authorization
  3. Use firewall-cmd with the correct zone and --permanent service or port scope, then reload and verify only the approved inbound connection
  4. Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type

Answer & Explanations

Correct answer: D

A.

This action is appropriate in a different case: A retailer's HTTP service moves to an approved nonstandard TCP port but fails at startup despite an open firewall. There, the reason is: SELinux port types constrain which service domains may bind to ports independently of firewalld network allow rules. The current case is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The appropriate response is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

B.

This action is appropriate in a different case: A university web application needs an approved network database connection while SELinux enforcing remains enabled. There, the reason is: SELinux booleans toggle defined policy permissions for a domain; -P writes the persistent state and unrelated booleans should remain unchanged. The current case is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The appropriate response is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

C.

This action is appropriate in a different case: A bank needs a secure management service open only on a specific internal zone. There, the reason is: A firewalld runtime change can vanish at restart and a broad zone rule exposes more services than the requested exception. The current case is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The appropriate response is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

D.

Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type. The technical reason is: Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel. The stated condition is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. Confirm the result by: Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel.

Question 777

A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. A Red Hat administrator recommends: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type. Which technical process explanation best justifies that recommendation?

  1. Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel
  2. A firewalld runtime change can vanish at restart and a broad zone rule exposes more services than the requested exception
  3. Umask removes permission bits from default creation modes, and changing one existing file's chmod does not set future creation defaults
  4. SSH authenticates a private-key holder against the listed public key, while world-writable key directories can be refused or exploited

Answer & Explanations

Correct answer: A

A.

Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel. That mechanism explains the decision: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type. In the reported situation: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. Confirmation requires: Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel.

B.

This principle explains a different technical intervention: Use firewall-cmd with the correct zone and --permanent service or port scope, then reload and verify only the approved inbound connection. It applies to: A bank needs a secure management service open only on a specific internal zone. The actual case is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The mechanism relevant here is: Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel.

C.

This principle explains a different technical intervention: Configure an approved user or service umask and verify newly created files and directories get no more access than required. It applies to: A medical research team needs new private reports protected from other local accounts. The actual case is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The mechanism relevant here is: Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel.

D.

This principle explains a different technical intervention: Install an authorized user's public key in the correct ~/.ssh/authorized_keys with secure ownership and directory permissions and confirm sshd policy. It applies to: A law firm provisions key-only maintenance access to a restricted RHEL host. The actual case is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The mechanism relevant here is: Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel.

Question 778

A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. After the targeted configuration or process is implemented, which evidence most directly demonstrates the requested behavior?

  1. Test key login from the authorized client and confirm a different key fails under the approved account
  2. Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel
  3. Verify current mode, expected audit AVC messages and restored enforcing state after a controlled reboot
  4. Compare the observed context with matchpathcon or documented policy expectations and identify the specific AVC denial

Answer & Explanations

Correct answer: B

A.

This observation would verify a different remedy: Install an authorized user's public key in the correct ~/.ssh/authorized_keys with secure ownership and directory permissions and confirm sshd policy. That remedy applies to: A law firm provisions key-only maintenance access to a restricted RHEL host. The present condition is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. To assess it, check: Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel.

B.

Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel. This check directly tests: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type. The underlying behavior is: Semanage fcontext modifies the file-context policy database, while restorecon relabels actual on-disk objects; chcon by itself can be lost on full relabel. The case is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux.

C.

This observation would verify a different remedy: Check getenforce and use an authorized temporary setenforce change only for diagnosis, restoring enforcing and setting persistent policy through documented configuration if truly required. That remedy applies to: A hospital web application fails to read a moved directory and an operator suspects SELinux. The present condition is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. To assess it, check: Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel.

D.

This observation would verify a different remedy: Use ls -Z or ps -eZ and audit messages to identify the actual SELinux type of the affected path or process. That remedy applies to: A university moves web assets to a new directory and Apache denies them despite broad Unix permissions. The present condition is: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. To assess it, check: Check matchpathcon -V and ls -Z before and after and confirm application access remains correct after a scheduled relabel.

Question 779

A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. Which apparently convenient shortcut would most directly undermine the required control?

  1. Run chmod 777 on an already readable file and assume SELinux will stop blocking it
  2. Disable SELinux because the service cannot bind to a new port that firewalld already permits
  3. Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade
  4. Set all SELinux booleans to on because one web service needs outbound database access

Answer & Explanations

Correct answer: C

A.

This proposed shortcut concerns a separate case: A university moves web assets to a new directory and Apache denies them despite broad Unix permissions. The risk in this question concerns: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. Here the unsafe shortcut is: Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. Use this response instead: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

B.

This proposed shortcut concerns a separate case: A retailer's HTTP service moves to an approved nonstandard TCP port but fails at startup despite an open firewall. The risk in this question concerns: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. Here the unsafe shortcut is: Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. Use this response instead: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

C.

Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. This shortcut is unsafe for: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The resulting failure can be: Future relabeling can remove the temporary fix and the service fails again. The safer response is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

D.

This proposed shortcut concerns a separate case: A university web application needs an approved network database connection while SELinux enforcing remains enabled. The risk in this question concerns: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. Here the unsafe shortcut is: Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. Use this response instead: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

Question 780

A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. Suppose the team follows this shortcut instead: Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. What is the most likely direct system or operational consequence?

  1. Processes gain unintended capabilities and the specific denied operation may be obscured
  2. Unrelated services become exposed without necessary authentication or inspection
  3. New sensitive files become readable or writable to unrelated users
  4. Future relabeling can remove the temporary fix and the service fails again

Answer & Explanations

Correct answer: D

A.

This failure concerns another scenario: A university web application needs an approved network database connection while SELinux enforcing remains enabled. In the stated case: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The relevant consequence is: Future relabeling can remove the temporary fix and the service fails again. The control that prevents it is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

B.

This failure concerns another scenario: A bank needs a secure management service open only on a specific internal zone. In the stated case: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The relevant consequence is: Future relabeling can remove the temporary fix and the service fails again. The control that prevents it is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

C.

This failure concerns another scenario: A medical research team needs new private reports protected from other local accounts. In the stated case: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The relevant consequence is: Future relabeling can remove the temporary fix and the service fails again. The control that prevents it is: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

D.

Future relabeling can remove the temporary fix and the service fails again. This is the risk in the stated situation: A software firm repairs incorrectly labeled data after moving a service directory without disabling SELinux. The risky shortcut is: Use chcon on one file as the sole permanent fix to a custom service directory after every upgrade. Prevent it by: Use semanage fcontext for a justified persistent custom path mapping where needed and run restorecon on that path to apply the configured type.

Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests