From Fedora Project Wiki
(stub out this page) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|description=This test case verifies that execshield is correctly implemented for Fedora Xen DomU. | |description=This test case verifies that execshield is correctly implemented for Fedora Xen DomU. | ||
|actions= | |actions= | ||
# | # Download this [[File:Xen-domu-execshield-invalid.c]] file into the domU. | ||
# Compile the test case with <pre>$> gcc Xen-domu-execshield-invalid.c -o Xen-domu-execshield-invalid</pre> | |||
# Inside the guest, run <pre>$> ./Xen-domu-execshield-invalid</pre> | |||
# Next download this [[File:Xen-domu-execshield-strace.c]] file into the domU. | |||
# Compile the test case with <pre>$> gcc Xen-domu-execshield-strace.c -o Xen-domu-execshield-strace</pre> | |||
# Inside the guest, run <pre>$> ./Xen-domu-execshield-strace</pre> This should print -1 as the output. | |||
# Inside the guest, run <pre>$> strace ./Xen-domu-execshield-strace</pre> This should also print -1 as the output. | |||
|results= | |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. | |||
}} | }} | ||
[[Category:Virtualization XenDomU Test Cases|Execshield]] | [[Category:Virtualization XenDomU Test Cases|Execshield]] |
Latest revision as of 13:02, 4 May 2009
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.