Question 420
For the following operational condition, which statement is accurate: A historical LPIC-1 exercise uses TCP wrappers to allow one client and deny another?
Explanation
Correct Answer
The relevant Linux mechanism is TCP wrapper policy applies only when the relevant daemon is linked or configured for it. That supports Apply the appropriate hosts.allow and hosts.deny rules only on a wrapper-enabled service, then verifying that The permitted client connects and the disallowed client is rejected on the test system.
Incorrect Answers
The option would apply to “A user wants to decrypt a GnuPG file received for a different person's key”. This behavior is explained by Encryption to a public key normally requires the corresponding private key for decryption. This question instead requires “TCP wrapper policy applies only when the relevant daemon is linked or configured for it”.
This option serves the scenario “A legacy host consults /etc/hosts.allow but a replacement server uses a modern daemon without wrapper support”. This behavior is explained by TCP wrapper files are not universal network firewalls and many modern services ignore them. The present scenario is distinguished by “TCP wrapper policy applies only when the relevant daemon is linked or configured for it”.
This alternative addresses the separate case “A fresh server boots with an unapproved web service that nobody uses”. The governing principle is Disabling unused network services reduces attack surface beyond firewall-only masking. The deciding requirement here is “TCP wrapper policy applies only when the relevant daemon is linked or configured for it”.