Fix selinux_capable_file.sh to call setup before running the second set
of tests.  This wasn't an issue prior to the $SELINUXTMPDIR patch as
cleanup didn't previously remove the temporary directory, just the
files.  The bug wasn't evident in enforcing mode since the second set of
tests still got error exit values as expected just for the wrong reason.
Detected by forcing a run of the testsuite under permissive mode and
checking that all of the testcases FAIL as expected.  

Signed-off-by:  Stephen Smalley <[email protected]>

---

Index: 
testcases/kernel/security/selinux-testsuite/tests/capable_file/selinux_capable_file.sh
===================================================================
RCS file: 
/cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/tests/capable_file/selinux_capable_file.sh,v
retrieving revision 1.4
diff -u -r1.4 selinux_capable_file.sh
--- 
testcases/kernel/security/selinux-testsuite/tests/capable_file/selinux_capable_file.sh
      21 Apr 2009 09:39:58 -0000      1.4
+++ 
testcases/kernel/security/selinux-testsuite/tests/capable_file/selinux_capable_file.sh
      7 May 2009 18:33:46 -0000
@@ -252,6 +252,7 @@
 test04 || EXIT_VAL=$RC
 test05 || EXIT_VAL=$RC
 cleanup
+setup
 test06 || EXIT_VAL=$RC
 test07 || EXIT_VAL=$RC
 test08 || EXIT_VAL=$RC

-- 
Stephen Smalley
National Security Agency


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to