bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syslogd.sh test fails when ipv6 is disabled


From: Simon Josefsson
Subject: Re: syslogd.sh test fails when ipv6 is disabled
Date: Thu, 06 May 2021 09:05:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Bone Baboon <bone.baboon@disroot.org> writes:

> I am using the Guix operating system which is a build from source
> operating system.  When I build the Guix package for inetutils from
> source it fails because the syslogd.sh test fails.  I am building the
> Guix inetutils package using this Guix command to build packages: `guix
> build --no-substitutes inetutils`.  This command does several build
> steps including running the inetutils test suite.
>
> I think the syslogd.sh test is failing because I have disabled ipv6 with
> the Linux kernel argument `ipv6.disable=1`.
>
> Disabling ipv6 stops an ipv6 leak which compromises the privacy provided
> by the VPN service I am using.  I did the ipv6 leak testing with
> https://ipv6leak.com which is a ipv6 leak testing site.  It is the first
> result I received when searching for "ipv6 leak" with searx.ir.
>
> Would it be possible to modify the inetutils test suite so that
> syslogd.sh does not fail if ipv6 is disabled?
>
> Guix build is running `make check` which can be seen in the output of
> the Guix build log for inetutils as it includes: 'command "make"
> "check" failed with status 2'.

Hi.  Thanks for the report.  Could you investigate if the
tests/runtime-ipv6.c program return appropriately?  It is supposed to
check wether the runtime system supports IPv6 or not, and should detect
this properly on your system (or there is a bug in the self-test code
elsewhere).

Looking at the code, I don't think a getaddrinfo-lookup is sufficient,
the code probably need to attempt to listen to a socket too, in order to
fully test wether IPv6 is disabled globally or not.

/Simon

> inetutils test suite log contents:
>
> ```
> ===============================================
>    GNU inetutils 1.9.4: tests/test-suite.log
> ===============================================
>
> # TOTAL: 15
> # PASS:  8
> # SKIP:  6
> # XFAIL: 0
> # FAIL:  1
> # XPASS: 0
> # ERROR: 0
>
> .. contents:: :depth: 2
>
> SKIP: ping-localhost.sh
> =======================
>
> ping needs to run as root
> SKIP ping-localhost.sh (exit status: 77)
>
> SKIP: traceroute-localhost.sh
> =============================
>
> traceroute needs to run as root
> SKIP traceroute-localhost.sh (exit status: 77)
>
> SKIP: tftp.sh
> =============
>
> The use of the superserver Inetd in this script requires
> the availability of "/etc/nsswitch.conf", "/etc/passwd", and
> "/etc/protocols".  At least one of these is now missing.
> Therefore skipping test.
> SKIP tftp.sh (exit status: 77)
>
> FAIL: syslogd.sh
> ================
>
> ../src/logger: ::1:7041: Cannot assign requested address
> Registered 24 successes out of 25.
> NOTICE: Standard port test was not run.
> Failing some tests.
> FAIL syslogd.sh (exit status: 1)
>
> SKIP: ftp-localhost.sh
> ======================
>
> The use of the superserver Inetd in this script requires
> the availability of "/etc/nsswitch.conf", "/etc/passwd", and
> "/etc/protocols".  At least one of these is now missing.
> Therefore skipping test.
> SKIP ftp-localhost.sh (exit status: 77)
>
> SKIP: inetd.sh
> ==============
>
> This test requires the availability of "/etc/protocols",
> a file which can not be found in the current system.
> Therefore skipping this test.
> SKIP inetd.sh (exit status: 77)
>
> SKIP: telnet-localhost.sh
> =========================
>
> No TTY assigned to this process.  Skipping test.
> SKIP telnet-localhost.sh (exit status: 77)
> ```
>
>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]