public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] LTP must be extracted to an accessible location
@ 2009-08-26 14:51 Geert Uytterhoeven
  2009-08-26 19:48 ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2009-08-26 14:51 UTC (permalink / raw)
  To: Linux Test Project

If extracted to /root and /root has permissions 750, the following
tests will fail:

  - cron02:

    bash: /root/ltp-cvs/testcases/bin/cron_pos_tests.sh: Permission denied

  - cron_allow01:

    bash: /root/ltp-cvs/testcases/bin/cron_allow01: Permission denied
    bash: /root/ltp-cvs/testcases/bin/cron_allow01: Permission denied

  - cron_deny01:

    bash: /root/ltp-cvs/testcases/bin/cron_deny01: Permission denied
    bash: /root/ltp-cvs/testcases/bin/cron_deny01: Permission denied

  - su01:

    bash: /root/ltp-cvs/testcases/bin/su01_s1: Permission denied

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
---
 INSTALL |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/INSTALL b/INSTALL
index 98883fb..33edddf 100644
--- a/INSTALL
+++ b/INSTALL
@@ -67,6 +67,9 @@ contributions are welcome.
 2. Untar the ltp tarball into a spare directory.  There is not a
    standard location for it yet.  We put it in our home directory
    while we're working on it.
+   Note that this location must be accessible for unprivileged users, as
+   some tests are run as a different user than root.  Hence /root is not a
+   good choice on several distributions.
 
 3. Run "make" to build everything.
    *NOTE: Some of the Makefiles (example: pan/Makefile) require the lex (or
-- 
1.6.2.4

With kind regards,

Geert Uytterhoeven
Software Architect
Techsoft Centre

Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [LTP] [PATCH] LTP must be extracted to an accessible location
  2009-08-26 14:51 [LTP] [PATCH] LTP must be extracted to an accessible location Geert Uytterhoeven
@ 2009-08-26 19:48 ` Mike Frysinger
  2009-08-27  9:48   ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2009-08-26 19:48 UTC (permalink / raw)
  To: ltp-list; +Cc: Geert Uytterhoeven


[-- Attachment #1.1: Type: Text/Plain, Size: 654 bytes --]

On Wednesday 26 August 2009 10:51:29 Geert Uytterhoeven wrote:
> --- a/INSTALL
> +++ b/INSTALL
> @@ -67,6 +67,9 @@ contributions are welcome.
>  2. Untar the ltp tarball into a spare directory.  There is not a
>     standard location for it yet.  We put it in our home directory
>     while we're working on it.
> +   Note that this location must be accessible for unprivileged users, as
> +   some tests are run as a different user than root.  Hence /root is not a
> +   good choice on several distributions.

i would use the phrase "full path to this location".  non-root could access 
./foo/, but it could not access $PWD/foo/ ...
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 355 bytes --]

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LTP] [PATCH] LTP must be extracted to an accessible location
  2009-08-26 19:48 ` Mike Frysinger
@ 2009-08-27  9:48   ` Geert Uytterhoeven
  2009-08-28  6:08     ` Subrata Modak
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2009-08-27  9:48 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: ltp-list

On Wed, 26 Aug 2009, Mike Frysinger wrote:
> On Wednesday 26 August 2009 10:51:29 Geert Uytterhoeven wrote:
> > --- a/INSTALL
> > +++ b/INSTALL
> > @@ -67,6 +67,9 @@ contributions are welcome.
> >  2. Untar the ltp tarball into a spare directory.  There is not a
> >     standard location for it yet.  We put it in our home directory
> >     while we're working on it.
> > +   Note that this location must be accessible for unprivileged users, as
> > +   some tests are run as a different user than root.  Hence /root is not a
> > +   good choice on several distributions.
> 
> i would use the phrase "full path to this location".  non-root could access 
> ./foo/, but it could not access $PWD/foo/ ...
> -mike

Thanks, that's indeed better!

From 741d03a6753015ba6373d1f629f4117f978d6129 Mon Sep 17 00:00:00 2001
From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Date: Wed, 26 Aug 2009 16:24:59 +0200
Subject: [PATCH] LTP must be extracted to an accessible location

If extracted to /root and /root has permissions 750, the following
tests will fail:

  - cron02:

    bash: /root/ltp-cvs/testcases/bin/cron_pos_tests.sh: Permission denied

  - cron_allow01:

    bash: /root/ltp-cvs/testcases/bin/cron_allow01: Permission denied
    bash: /root/ltp-cvs/testcases/bin/cron_allow01: Permission denied

  - cron_deny01:

    bash: /root/ltp-cvs/testcases/bin/cron_deny01: Permission denied
    bash: /root/ltp-cvs/testcases/bin/cron_deny01: Permission denied

  - su01:

    bash: /root/ltp-cvs/testcases/bin/su01_s1: Permission denied

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
---
 INSTALL |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/INSTALL b/INSTALL
index 98883fb..73ff29c 100644
--- a/INSTALL
+++ b/INSTALL
@@ -67,6 +67,9 @@ contributions are welcome.
 2. Untar the ltp tarball into a spare directory.  There is not a
    standard location for it yet.  We put it in our home directory
    while we're working on it.
+   Note that the full path to this location must be accessible for
+   unprivileged users, as some tests are run as a different user than root.
+   Hence /root is not a good choice on several distributions.
 
 3. Run "make" to build everything.
    *NOTE: Some of the Makefiles (example: pan/Makefile) require the lex (or
-- 
1.6.2.4

With kind regards,

Geert Uytterhoeven
Software Architect
Techsoft Centre

Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [LTP] [PATCH] LTP must be extracted to an accessible location
  2009-08-27  9:48   ` Geert Uytterhoeven
@ 2009-08-28  6:08     ` Subrata Modak
  0 siblings, 0 replies; 4+ messages in thread
From: Subrata Modak @ 2009-08-28  6:08 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: ltp-list, Mike Frysinger

On Thu, 2009-08-27 at 11:48 +0200, Geert Uytterhoeven wrote: 
> On Wed, 26 Aug 2009, Mike Frysinger wrote:
> > On Wednesday 26 August 2009 10:51:29 Geert Uytterhoeven wrote:
> > > --- a/INSTALL
> > > +++ b/INSTALL
> > > @@ -67,6 +67,9 @@ contributions are welcome.
> > >  2. Untar the ltp tarball into a spare directory.  There is not a
> > >     standard location for it yet.  We put it in our home directory
> > >     while we're working on it.
> > > +   Note that this location must be accessible for unprivileged users, as
> > > +   some tests are run as a different user than root.  Hence /root is not a
> > > +   good choice on several distributions.
> > 
> > i would use the phrase "full path to this location".  non-root could access 
> > ./foo/, but it could not access $PWD/foo/ ...
> > -mike
> 
> Thanks, that's indeed better!
> 
> >From 741d03a6753015ba6373d1f629f4117f978d6129 Mon Sep 17 00:00:00 2001
> From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
> Date: Wed, 26 Aug 2009 16:24:59 +0200
> Subject: [PATCH] LTP must be extracted to an accessible location
> 
> If extracted to /root and /root has permissions 750, the following
> tests will fail:
> 
>   - cron02:
> 
>     bash: /root/ltp-cvs/testcases/bin/cron_pos_tests.sh: Permission denied
> 
>   - cron_allow01:
> 
>     bash: /root/ltp-cvs/testcases/bin/cron_allow01: Permission denied
>     bash: /root/ltp-cvs/testcases/bin/cron_allow01: Permission denied
> 
>   - cron_deny01:
> 
>     bash: /root/ltp-cvs/testcases/bin/cron_deny01: Permission denied
>     bash: /root/ltp-cvs/testcases/bin/cron_deny01: Permission denied
> 
>   - su01:
> 
>     bash: /root/ltp-cvs/testcases/bin/su01_s1: Permission denied
> 
> Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>

Thanks.

Regards--
Subrata

> ---
>  INSTALL |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/INSTALL b/INSTALL
> index 98883fb..73ff29c 100644
> --- a/INSTALL
> +++ b/INSTALL
> @@ -67,6 +67,9 @@ contributions are welcome.
>  2. Untar the ltp tarball into a spare directory.  There is not a
>     standard location for it yet.  We put it in our home directory
>     while we're working on it.
> +   Note that the full path to this location must be accessible for
> +   unprivileged users, as some tests are run as a different user than root.
> +   Hence /root is not a good choice on several distributions.
>  
>  3. Run "make" to build everything.
>     *NOTE: Some of the Makefiles (example: pan/Makefile) require the lex (or


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-28  6:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-26 14:51 [LTP] [PATCH] LTP must be extracted to an accessible location Geert Uytterhoeven
2009-08-26 19:48 ` Mike Frysinger
2009-08-27  9:48   ` Geert Uytterhoeven
2009-08-28  6:08     ` Subrata Modak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox