Bug#854392: Run "make check" as root via autopkgtest

Michael Biebl biebl at debian.org
Mon Feb 6 15:29:33 GMT 2017


Source: systemd
Version: 232-15
Severity: normal

Several of the upstream tests require root privileges as otherwise they
do nothing:
if (geteuid() != 0)
        return;

It seems we missed issues because of that like the recent RAS/seccomp
incident has shown [1].
E.g. test-seccomp was rightfully failing on i386, because the seccomp
sandboxing is not working properly there, but this went unnoticed.

Copying individual tests into the -dev packages [2] is a slight
improvement, but it's kinda ugly to ship the test binaries in the
package and it requires ongoing maintenance.
Most importantly, it's incomplete, there are a few more tests which
require root privs and that list is changing over time.

We should run the complete test suite as root via autopkgtest.



[1] https://github.com/systemd/systemd/issues/5215#issuecomment-277162523
[2] https://anonscm.debian.org/cgit/pkg-systemd/systemd.git/commit/?id=ac866cbd3825e1

-- Package-specific info:

-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.127
ii  udev             232-15

-- no debconf information



More information about the Pkg-systemd-maintainers mailing list