Libwrap requires access to some more files when using landlock (fix #450 again)

This commit is contained in:
Yves Rutschle committed 2025-11-14 14:53:56 +01:00
1 parent 0dd580f45b
commit 8d58164fdd
1 file changed
+1 -1
+1 -1
View File
@@ -118,7 +118,7 @@ static int add_resolv(int ruleset_fd)
static int add_libwrap(int ruleset_fd)
{
/* Files for libwrap */
#ifdef LIBWRAP
#ifdef HAVE_LIBWRAP
add_path_ro(ruleset_fd, LL_FILE, "/etc/hosts.allow");
add_path_ro(ruleset_fd, LL_FILE, "/etc/hosts.deny");
#endif