Dwight Engen
4818302fbf
xfstests: generic/317 use relative paths to avoid traversal permission problems
...
On Wed, 30 Oct 2013 09:24:41 -0700
Christoph Hellwig <hch@infradead.org > wrote:
> On Wed, Oct 30, 2013 at 09:19:55AM -0700, Christoph Hellwig wrote:
> > On Mon, Oct 28, 2013 at 11:43:28AM -0400, Dwight Engen wrote:
> > > Hi Cristoph, on my system (where fsgqa is id 501) the one liner
> > > the test is running is:
> > >
> > > # ./src/nsexec -s -U -M "0 501 1000" -G "0 501 1000" ./src/lstat64
> > > Usage: lstat64 [-t] filename ...
> >
> > The id here is 1000 and the following works just fine:
> >
> > /src/nsexec -s -U -M "0 1000 1000" -G "0 1000 1000" ./src/lstat64
> > Usage: lstat64 [-t] filename ...
>
> But:
>
> ./src/nsexec -s -U -M "0 1000 1000" -G "0 501
> 1000" /root/xfstests/src/lstat64 execvp: Permission denied
>
>
> Which is probably due to:
> root@vm:~/xfstests# ls -ld ~
> drwx------ 6 root root 4096 Oct 30 16:24 /root
>
>
> Guess we need a relative path here?
Yep, that makes sense. I modeled this on 219 which was using
$here/src/lstat64 but didn't think about the fact that in my test fsgqa
might have traversal problems. I see plenty of other tests are using
relative paths so the following patch should (hopefully) fix 317 for you.
Thanks for tracking it down.
Signed-off-by: Dwight Engen <dwight.engen@oracle.com >
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Rich Johnston <rjohnston@sgi.com >
2013-11-04 14:33:04 -06:00
..
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-03 09:22:13 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-07-19 15:50:09 -05:00
2013-03-26 11:43:49 -05:00
2013-06-25 14:53:59 -05:00
2013-10-16 14:58:28 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-10-13 18:41:00 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-10-16 14:58:28 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-05-03 09:22:13 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:34:44 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-05-16 06:53:05 -05:00
2013-10-16 14:58:28 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-10-16 14:58:28 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-05-14 08:33:44 -05:00
2013-03-26 11:43:49 -05:00
2013-08-15 13:57:38 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-05-22 13:50:59 -05:00
2013-03-26 11:43:49 -05:00
2013-10-16 15:15:35 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-10-23 18:57:14 -05:00
2013-03-26 11:43:49 -05:00
2013-10-18 15:07:29 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-04-04 06:55:21 -05:00
2013-03-26 11:43:49 -05:00
2013-06-03 13:40:36 -05:00
2013-03-26 11:43:49 -05:00
2013-05-15 08:17:51 -05:00
2013-03-26 11:43:49 -05:00
2013-05-15 08:17:51 -05:00
2013-03-26 11:43:49 -05:00
2013-10-16 15:17:35 -05:00
2013-10-16 14:58:28 -05:00
2013-05-15 08:17:51 -05:00
2013-03-26 11:43:49 -05:00
2013-05-15 08:17:51 -05:00
2013-03-26 11:43:49 -05:00
2013-05-15 08:17:51 -05:00
2013-10-16 14:58:28 -05:00
2013-05-15 08:17:51 -05:00
2013-04-05 08:26:47 -05:00
2013-05-15 08:17:51 -05:00
2013-04-05 08:26:47 -05:00
2013-05-15 08:17:51 -05:00
2013-04-05 08:26:47 -05:00
2013-05-03 09:22:12 -05:00
2013-04-05 12:25:29 -05:00
2013-05-16 08:48:03 -05:00
2013-05-03 14:13:09 -05:00
2013-05-15 08:17:51 -05:00
2013-05-15 07:48:41 -05:00
2013-07-08 16:59:48 -05:00
2013-07-08 16:59:48 -05:00
2013-07-26 11:15:42 -05:00
2013-07-26 11:15:42 -05:00
2013-07-30 13:37:11 -05:00
2013-07-19 17:16:27 -05:00
2013-08-16 08:54:43 -05:00
2013-08-16 08:54:43 -05:00
2013-11-04 14:33:04 -06:00
2013-08-19 09:47:20 -05:00
2013-11-04 14:31:04 -06:00
2013-11-04 14:15:52 -06:00
2013-10-16 16:19:25 -05:00
2013-10-16 16:19:25 -05:00
2013-10-16 16:19:25 -05:00
2013-04-12 13:17:46 -05:00