LFCS practice question 6 of 35

Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?

Full set: 260 questions
Answer options
A: tcpd Correct answer
B: inetd
C: fingerd
D: mountd
E: xinetd
Correct Answer:
A. tcpd
Explanation

The tcpd program is the core component of the TCP Wrappers access control facility. It is a "wrapper" program that is invoked by a super-server (like inetd or xinetd) for network services. tcpd consults the /etc/hosts.allow and /etc/hosts.deny files to determine if the connection from a specific client should be permitted before passing it to the actual service daemon.

Why Incorrect

B. inetd is a super-server that can be configured to use tcpd to launch services, but it does not read the hosts.allow file itself.
C. fingerd is an example of a service daemon that can be protected by tcpd, but it is not the program that performs the access control check.
D. mountd is the NFS mount daemon. While it can be protected by TCP Wrappers, it does not perform the primary check of the hosts.allow file.
E. xinetd is a modern replacement for inetd. Like inetd, it can use tcpd but does not directly process the hosts.allow file for its main task.

References

- The Linux man-pages project. (2017). hostsaccess(5) — Linux manual page. Section: DESCRIPTION. "This document describes a simple access control language which is based on client (host name/address, user name), and server (process name, host name/address) patterns. ... The language is used by the tcpd program".

- Wietse Venema. (1992). TCP WRAPPER: Network monitoring, access control, and booby traps. Proceedings of the Third Usenix UNIX Security Symposium. pp. 85-92. This paper by the creator of TCP Wrappers describes the function of the tcpd program in relation to the access control files.

Scroll to Top