From: "Serge E. Hallyn" <serge.hallyn@canonical.com>
To: ARJIT SHARMA <joyarjit@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] smack testcase
Date: Wed, 20 Oct 2010 07:55:37 -0500 [thread overview]
Message-ID: <20101020125537.GA3623@hallyn.com> (raw)
In-Reply-To: <AANLkTinR7pDvxfq32hkVSFq-wrkiJk-9O1JPkehpKQw-@mail.gmail.com>
Quoting ARJIT SHARMA (joyarjit@gmail.com):
> Hi,
>
> Inside the smack testcase, the sript "smack_common.sh" has a function
> named "check_onlycap()" , please tell me its functionality as every time
> this function is reporting that onlycap is "" not the expected "".
>
> the log of the testcase is as follows---
Yeah the check seems backward. Does this patch help?
From efe6116a6b284bb409b7fe9946cf990092183650 Mon Sep 17 00:00:00 2001
From: Serge Hallyn <serge.hallyn@canonical.com>
Date: Wed, 20 Oct 2010 07:54:21 -0500
Subject: [PATCH 1/1] Fix inverted logic testing for string which is NOT empty
Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
---
testcases/kernel/security/smack/smack_common.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/testcases/kernel/security/smack/smack_common.sh b/testcases/kernel/security/smack/smack_common.sh
index eb339f3..25405fe 100755
--- a/testcases/kernel/security/smack/smack_common.sh
+++ b/testcases/kernel/security/smack/smack_common.sh
@@ -36,7 +36,7 @@ check_mounted() {
check_onlycap() {
onlycap=`cat "$smackfsdir/onlycap" 2>/dev/null`
- if [ -z "$onlycap" ]; then
+ if [ ! -z "$onlycap" ]; then
cat <<EOM
The smack label reported for $smackfsdir/onlycap is "$onlycap", not the expected "".
EOM
--
1.7.1
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2010-10-20 12:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-20 6:00 [LTP] smack testcase ARJIT SHARMA
2010-10-20 12:55 ` Serge E. Hallyn [this message]
2010-10-20 18:29 ` Garrett Cooper
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=20101020125537.GA3623@hallyn.com \
--to=serge.hallyn@canonical.com \
--cc=joyarjit@gmail.com \
--cc=ltp-list@lists.sourceforge.net \
/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.