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=
# Do this.
# 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=
# This should happen.
# 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

  1. Download this File:Xen-domu-execshield-invalid.c file into the domU.
  2. Compile the test case with
    $> gcc Xen-domu-execshield-invalid.c -o Xen-domu-execshield-invalid
  3. Inside the guest, run
    $> ./Xen-domu-execshield-invalid
  4. Next download this File:Xen-domu-execshield-strace.c file into the domU.
  5. Compile the test case with
    $> gcc Xen-domu-execshield-strace.c -o Xen-domu-execshield-strace
  6. Inside the guest, run
    $> ./Xen-domu-execshield-strace
    This should print -1 as the output.
  7. Inside the guest, run
    $> strace ./Xen-domu-execshield-strace
    This should also print -1 as the output.

Expected Results

  1. The application should immediately SEGV when the Xen-domu-execshield-invalid program is run.
  2. The application should always print a -1 when the Xen-domu-execshield-strace program is run.