From: Stephen Smalley <sds@tycho.nsa.gov>
To: "Jiří Paleček" <jpalecek@web.de>
Cc: subrata@linux.vnet.ibm.com, ltp-list <ltp-list@lists.sf.net>,
SE Linux <selinux@tycho.nsa.gov>
Subject: Re: [LTP] Fwd: [PATCH] Create $SELINUXTMPDIR in each of the tests
Date: Thu, 30 Apr 2009 08:45:30 -0400 [thread overview]
Message-ID: <1241095530.27331.8.camel@localhost.localdomain> (raw)
In-Reply-To: <op.us51ezmiu2flwt@debian>
On Wed, 2009-04-29 at 22:48 +0200, Jiří Paleček wrote:
> On Wed, 29 Apr 2009 21:40:01 +0200, Stephen Smalley <sds@tycho.nsa.gov>
> wrote:
>
> > On Wed, 2009-04-29 at 21:27 +0200, Jiří Paleček wrote:
> >> On Wed, 29 Apr 2009 21:07:38 +0200, Stephen Smalley <sds@tycho.nsa.gov>
> >> wrote:
> >>
> >> > On Sun, 2009-04-19 at 00:17 +0530, Subrata Modak wrote:
> >> >> Stephen,
> >> >>
> >> >> Would you like to say something about the following Patch ?
> >> >
> >> > Yes, it breaks the selinux testsuite for me. Please revert.
> >>
> >> How exactly does it break it?
> >
> > Running it via test_selinux.sh was generating errors like:
> > cd: /testcases/bin: No such file or directory
> > in selinux.outfile, producing a couple bogus FAILs.
>
> This is probably caused by the line setting LTPBIN (which shouldn't have
> been there in the first place, my fault), does the attached patch fix it
> for you?
Your patch doesn't apply - looks like it is relative to further local
changes you have made in your own git repo (extra args to mktemp). But
applying the corresponding change here does fix that problem for me,
yes. Diff below is relative to ltp cvs.
Fix LTPBIN definition in selinux_file.sh
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
---
testcases/kernel/security/selinux-testsuite/tests/file/selinux_file.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: testcases/kernel/security/selinux-testsuite/tests/file/selinux_file.sh
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/tests/file/selinux_file.sh,v
retrieving revision 1.5
diff -u -r1.5 selinux_file.sh
--- testcases/kernel/security/selinux-testsuite/tests/file/selinux_file.sh 21 Apr 2009 09:39:58 -0000 1.5
+++ testcases/kernel/security/selinux-testsuite/tests/file/selinux_file.sh 30 Apr 2009 12:50:35 -0000
@@ -17,7 +17,7 @@
export TST_COUNT=0
export TST_TOTAL=14
- LTPBIN=$LTPROOT/testcases/bin
+ LTPBIN=${LTPBIN:-$LTPROOT/testcases/bin}
SELINUXTMPDIR=$(mktemp -d)
chcon -t test_file_t $SELINUXTMPDIR
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2009-04-30 12:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-18 18:47 Fwd: [LTP] [PATCH] Create $SELINUXTMPDIR in each of the tests Subrata Modak
2009-04-20 1:32 ` [LTP] Fwd: " Serge E. Hallyn
2009-04-20 1:35 ` Serge E. Hallyn
[not found] ` <op.usoj4f1cu2flwt@marcela-gaxm89c>
2009-04-20 13:36 ` Serge E. Hallyn
2009-04-29 19:07 ` Stephen Smalley
[not found] ` <op.us5xofaeu2flwt@debian>
2009-04-29 19:40 ` Stephen Smalley
2009-04-29 19:52 ` Stephen Smalley
[not found] ` <op.us51ezmiu2flwt@debian>
2009-04-30 12:45 ` Stephen Smalley [this message]
2009-05-11 6:44 ` Subrata Modak
2009-04-30 15:20 ` [PATCH] Fix MLS handling in selinux tests Stephen Smalley
2009-05-11 6:44 ` Subrata Modak
[not found] ` <1241087321.5983.12.camel@subratamodak.linux.ibm.com>
[not found] ` <1241097725.27331.13.camel@localhost.localdomain>
2009-05-01 11:52 ` [LTP] Fwd: [PATCH] Create $SELINUXTMPDIR in each of the tests Stephen Smalley
2009-05-05 13:52 ` Stephen Smalley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1241095530.27331.8.camel@localhost.localdomain \
--to=sds@tycho.nsa.gov \
--cc=jpalecek@web.de \
--cc=ltp-list@lists.sf.net \
--cc=selinux@tycho.nsa.gov \
--cc=subrata@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.