From Fedora Project Wiki
Description
This test case verifies that execshield is correctly implemented for Fedora Xen DomU.
How to test
- Download this File:Xen-domu-execshield-invalid.c file into the domU.
- Compile the test case with
$> gcc Xen-domu-execshield-invalid.c -o Xen-domu-execshield-invalid
- Inside the guest, run
$> ./Xen-domu-execshield-invalid
- Next download this File:Xen-domu-execshield-strace.c file into the domU.
- Compile the test case with
$> gcc Xen-domu-execshield-strace.c -o Xen-domu-execshield-strace
- Inside the guest, run
$> ./Xen-domu-execshield-strace
This should print -1 as the output. - Inside the guest, run
$> strace ./Xen-domu-execshield-strace
This should also print -1 as the output.
Expected Results
- The application should immediately SEGV when the Xen-domu-execshield-invalid program is run.
- The application should always print a -1 when the Xen-domu-execshield-strace program is run.