shin-yuko root # strace /bin/cp /dev/null temp execve("./cp-xattr", ["/bin/cp", "/dev/null", "temp"], [/* 77 vars */]) = 0 brk(0) = 0x805f000 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=130887, ...}) = 0 mmap2(NULL, 130887, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f50000 close(3) = 0 open("/lib/libacl.so.1", 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\0\200\31\0\0004\0\0\0\20"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=26144, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f4f000 mmap2(NULL, 29024, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f47000 mmap2(0xb7f4d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0xb7f4d000 close(3) = 0 open("/lib/libattr.so.1", 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\0\300\20\0\0004\0\0\0t"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=17796, ...}) = 0 mmap2(NULL, 20660, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f41000 mmap2(0xb7f45000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3) = 0xb7f45000 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\0\260g\1\0004\0\0\0\244"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1417500, ...}) = 0 mmap2(NULL, 1422928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7de5000 mmap2(0xb7f3b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x156) = 0xb7f3b000 mmap2(0xb7f3e000, 9808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f3e000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7de4000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb7de46c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xb7f3b000, 8192, PROT_READ) = 0 mprotect(0xb7f45000, 4096, PROT_READ) = 0 mprotect(0xb7f4d000, 4096, PROT_READ) = 0 mprotect(0x805d000, 4096, PROT_READ) = 0 mprotect(0xb7f8e000, 4096, PROT_READ) = 0 munmap(0xb7f50000, 130887) = 0 brk(0) = 0x805f000 brk(0x8080000) = 0x8080000 geteuid32() = 0 stat64("temp", 0xbfd8c7a4) = -1 ENOENT (No such file or directory) stat64("/dev/null", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 stat64("temp", 0xbfd8c5f0) = -1 ENOENT (No such file or directory) open("/dev/null", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0 open("temp", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0666) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 read(3, ""..., 8192) = 0 llistxattr("/dev/null", (nil), 0) = -1 EINVAL (Invalid argument) write(2, "/bin/cp: "..., 12/bin/cp: ) = 12 write(2, "listing attributes of `/dev/null'"..., 33listing attributes of `/dev/null') = 33 write(2, ": Invalid argument"..., 18: Invalid argument) = 18 write(2, "\n"..., 1 ) = 1 close(4) = 0 close(3) = 0 close(0) = 0 close(1) = 0 close(2) = 0 exit_group(1) = ?