All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Helsley <matthltc@us.ibm.com>
To: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Linux Test Project <Ltp-list@lists.sourceforge.net>,
	Serge Hallyn <serue@linux.vnet.ibm.com>
Subject: Re: [LTP] [PATCH] Filecaps: Update error message for recent kernels
Date: Tue, 15 Sep 2009 14:53:07 -0700	[thread overview]
Message-ID: <20090915215307.GD10922@count0.beaverton.ibm.com> (raw)
In-Reply-To: <alpine.LRH.2.00.0909151730320.29846@vixen.sonytel.be>

On Tue, Sep 15, 2009 at 05:30:55PM +0200, Geert Uytterhoeven wrote:
>    - As of 2.6.24, `capability' can no longer be a module,
>    - As of 2.6.27, CONFIG_SECURITY_CAPABILITIES no longer exists.
> 
> Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
> ---
>  .../kernel/security/filecaps/checkforfilecaps.sh   |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/testcases/kernel/security/filecaps/checkforfilecaps.sh b/testcases/kernel/security/filecaps/checkforfilecaps.sh
> index 20f97f5..3f6a4ec 100755
> --- a/testcases/kernel/security/filecaps/checkforfilecaps.sh
> +++ b/testcases/kernel/security/filecaps/checkforfilecaps.sh
> @@ -23,8 +23,7 @@ check_simple_capset
>  ret=$?
>  if [ $ret -ne 0 ]; then
>  	echo Posix capabilities not compiled into the kernel.  Please
> -	echo modprobe capability or recompile your kernel with
> -	echo CONFIG_SECURITY_CAPABILITIES=y.
> +	echo recompile your kernel with CONFIG_SECURITY_FILE_CAPABILITIES=y.

Then the advice is incorrect for older kernels. If LTP should still run
nicely for users of older kernels then perhaps something like this is better:

-	echo modprobe capability or recompile your kernel with
-	echo CONFIG_SECURITY_CAPABILITIES=y.
+	if tst_kvercmp 2 6 24 ; then
+		echo modprobe capability or recompile your kernel with
+		echo CONFIG_SECURITY_CAPABILITIES=y.
+	elif tst_kvercmp 2 6 27 ; then
+		echo recompile your kernel with CONFIG_SECURITY_CAPABILITIES=y.
+	else
+		echo recompile your kernel with CONFIG_SECURITY_FILE_CAPABILITIES=y.
+	fi

Cheers,
	-Matt Helsley

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  parent reply	other threads:[~2009-09-15 21:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15 15:30 [LTP] [PATCH] Filecaps: Update error message for recent kernels Geert Uytterhoeven
2009-09-15 15:56 ` Serge E. Hallyn
2009-09-15 21:53 ` Matt Helsley [this message]
2009-09-16 15:17   ` Subrata Modak
2009-09-16 16:01     ` Geert Uytterhoeven
2009-09-16 17:07       ` Serge E. Hallyn
2009-09-17  8:17         ` Geert Uytterhoeven
2009-09-17 13:43           ` Serge E. Hallyn

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=20090915215307.GD10922@count0.beaverton.ibm.com \
    --to=matthltc@us.ibm.com \
    --cc=Geert.Uytterhoeven@sonycom.com \
    --cc=Ltp-list@lists.sourceforge.net \
    --cc=serue@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.