Mike,
Test results with the new version look lot better and consistent but I am
running into a failure consistently with this test case.
Thanks,
Praveen
[EMAIL PROTECTED] fs_perms]# strace ./fs_perms 010 99 99 99 500 x 0
execve("./fs_perms", ["./fs_perms", "010", "99", "99", "99", "500", "x", "0"],
[/* 29 vars */]) = 0
brk(0) = 0x8f93000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7fb7000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=145415, ...}) = 0
mmap2(NULL, 145415, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f93000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\320\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1577052, ...}) = 0
mmap2(0x2ff7000, 1295780, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
= 0x2ff7000
mmap2(0x312e000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x137) = 0x312e000
mmap2(0x3131000, 9636, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3131000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7f92000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7f926c0, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0,
useable:1}) = 0
mprotect(0x312e000, 8192, PROT_READ) = 0
mprotect(0x55f000, 4096, PROT_READ) = 0
munmap(0xb7f93000, 145415) = 0
unlink("test.file") = -1 ENOENT (No such file or directory)
rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_PARENT_SETTID|SIGCHLD,
parent_tidptr=0xbfda9e24) = 8018
waitpid(8018, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 8018
rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
chmod("test.file", 010) = 0
chown32("test.file", 99, 99) = 0
setresgid32(-1, 500, -1) = 0
setresuid32(-1, 99, -1) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7f92708) = 8019
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 255}], 0, NULL) = 8019
setresuid32(-1, 0, -1) = 0
setresgid32(-1, 0, -1) = 0
unlink("test.file") = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7fb6000
write(1, "x a 010 file owned by (99/99) as"..., 58x a 010 file owned by (99/99)
as user/group(99/500) FAIL
) = 58
exit_group(1) = ?
Process 8017 detached
[EMAIL PROTECTED] fs_perms]#
-----Original Message-----
From: Mike Frysinger [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 27, 2008 8:24 PM
To: Praveen Kandala
Cc: [EMAIL PROTECTED]; Jeff Burke; Masatake YAMATO; Patrick Kirsch; Nate Straz;
Ricardo Salveti de Araujo; Renaud Lottiaux; [email protected]
Subject: Re: [LTP] fs_perms tests
On Sunday 27 April 2008, Praveen Kandala wrote:
> open("test.file", O_RDWR|O_CREAT|O_TRUNC, 0666) = -1 EACCES
> (Permission
> denied)
that shouldnt have happened. it implies something earlier failed. i've
cleaned up the code and added proper error checking. please try the latest ltp
cvs code and see if it works any better. if not, see if you get a better error
diagnostic.
-mike
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list