Source: urlscan Version: 1.0.8-0.1 Severity: important Justification: fails autopkgtest on Debian CI infrastructure Tags: forky sid User: [email protected] Usertags: lxc
Hi,
Debian CI is switching away from lxc containers in favor of incus Containers.
This is motivated by security concerns from us; incus is based on lxc, but
orchestrates containers substantially different: containers are not privileged
(so root in the container is not uid 0 outside of it), and incus imposes a
stricter isolation from the host system).
urlscan passes its tests under lxc, but fails under incus.
The relevant part of the failure is (hopefully):
> autopkgtest [21:07:43]: test test: [-----------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/urlscan/__main__.py", line 109, in
> close_stdin
> fdesc = os.open('/dev/tty', os.O_RDONLY)
> OSError: [Errno 6] No such device or address: '/dev/tty'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/usr/bin/urlscan", line 8, in <module>
> sys.exit(main())
> ~~~~^^
> File "/usr/lib/python3/dist-packages/urlscan/__main__.py", line 183, in main
> msg = process_input(args.message)
> File "/usr/lib/python3/dist-packages/urlscan/__main__.py", line 154, in
> process_input
> close_stdin()
> ~~~~~~~~~~~^^
> File "/usr/lib/python3/dist-packages/urlscan/__main__.py", line 113, in
> close_stdin
> fdesc = os.open('/dev/stdin', os.O_RDONLY)
> PermissionError: [Errno 13] Permission denied: '/dev/stdin'
> autopkgtest [21:07:43]: test test: -----------------------]
> autopkgtest [21:07:44]: test test: - - - - - - - - - - results - - - - - - -
> - - -
> test FAIL non-zero exit status 1
> autopkgtest [21:07:44]: test test: - - - - - - - - - - stderr - - - - - - -
> - - -
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/urlscan/__main__.py", line 109, in
> close_stdin
> fdesc = os.open('/dev/tty', os.O_RDONLY)
> OSError: [Errno 6] No such device or address: '/dev/tty'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/usr/bin/urlscan", line 8, in <module>
> sys.exit(main())
> ~~~~^^
> File "/usr/lib/python3/dist-packages/urlscan/__main__.py", line 183, in main
> msg = process_input(args.message)
> File "/usr/lib/python3/dist-packages/urlscan/__main__.py", line 154, in
> process_input
> close_stdin()
> ~~~~~~~~~~~^^
> File "/usr/lib/python3/dist-packages/urlscan/__main__.py", line 113, in
> close_stdin
> fdesc = os.open('/dev/stdin', os.O_RDONLY)
> PermissionError: [Errno 13] Permission denied: '/dev/stdin'
> autopkgtest [21:07:44]: @@@@@@@@@@@@@@@@@@@@ summary
> test FAIL non-zero exit status 1
The full autokpgtest logs are available at:
https://ci.debian.net/experiments/8/regressions/
(please beware of pagination)
Common types of failure and suggested fixes are being documented at:
https://wiki.debian.org/ContinuousIntegration/LxcToIncus
Note that for the time being, urlscan is still being tested under lxc to
avoid disturbing its testing migration test results.
If you decide to add the `isolation-machine` restriction to get this package
tested under qemu, please mention that explicitly when closing this bug (it's
fine to do that only in the package changelog entry that closes the bug) so
that we can configure your package for qemu on ci.debian.net.
signature.asc
Description: PGP signature

