Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 515550 - app-emulation/qemu-2.0.0 fails tests on hardened
Summary: app-emulation/qemu-2.0.0 fails tests on hardened
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2014-06-27 20:33 UTC by Nikoli
Modified: 2019-04-26 02:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for ebuild (qemu-2.0.0-r1.ebuild.patch,363 bytes, patch)
2014-06-27 20:33 UTC, Nikoli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2014-06-27 20:33:16 UTC
Created attachment 379802 [details, diff]
patch for ebuild

r1 fails tests too.
build.log:
TEST: tests/acpi-test... (pid=9952)
  /i386/acpi/tcg:                                                      Could not allocate dynamic translator buffer
**
ERROR:/var/package-manager/tmp/portage/app-emulation/qemu-2.0.0/work/qemu-2.0.0/tests/libqtest.c:185:qtest_init: assertion failed: (s->fd >= 0 && s->qmp_fd >= 0)
FAIL
GTester: last random seed: R02S378fe2e9de37fd0346c7a4559947075a
(pid=9954)
FAIL: tests/acpi-test

dmesg:
grsec: denied RWX mmap of <anonymous mapping> by /var/package-manager/tmp/portage/app-emulation/qemu-2.0.0/work/qemu-2.0.0/softmmu-build/i386-softmmu/qemu-system-i386[qemu-system-i38:9953] uid/euid:250/250 gid/egid:250/250, parent /var/package-manager/tmp/portage/app-emulation/qemu-2.0.0/work/qemu-2.0.0/softmmu-build/tests/acpi-test[acpi-test:9952] uid/euid:250/250 gid/egid:250/250

Attached patch solved problem for me (Totals: 60 Binaries, 704 Tests, 0 Failed, 704 Succeeded), but best solution would be to do pax marking only in src_compile.
Comment 1 SpanKY gentoo-dev 2014-07-29 09:50:31 UTC
should be all set now in the tree; thanks for the report!

Commit message: Update PaX markings on system binaries before executing tests with them
http://sources.gentoo.org/app-emulation/qemu/qemu-2.0.0-r1.ebuild?r1=1.5&r2=1.6
http://sources.gentoo.org/app-emulation/qemu/qemu-9999.ebuild?r1=1.75&r2=1.76