From: Luc Dumaine (luc.dumaine_at_sitiv.fr)
Date: Fri 13 Aug 2004 - 14:17:28 BST
see the attached file for the output of:
strace -fF -s 10000 chattr -i foo
regards.
execve("/bin/chattr", ["chattr", "-i", "foo"], [/* 36 vars */]) = 0
uname({sys="Linux", node="chapo", ...}) = 0
brk(0) = 0x503000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9556a000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=16770, ...}) = 0
mmap(NULL, 16770, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2a9556b000
close(3) = 0
open("/lib/libe2p.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\32\0\0\0\0\0\0@\0\0\0\0\0\0\0h]\0\0\0\0\0\0\0\0\0\0@\0008\0\6\0@\0\31\0\30\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\334G\0\0\0\0\0\0\334G\0\0\0\0\0\0\0\0\20\0\0\0\0\0\1\0\0\0\6\0\0\0\0P\0\0\0\0\0\0\0P\20\0\0\0\0\0\0P\20\0\0\0\0\0p\6\0\0\0\0\0\0\260\10\0\0\0\0\0\0\0\0\20\0\0\0\0\0\2\0\0\0\6\0\0\0(P\0\0\0\0\0\0(P\20\0\0\0\0\0(P\20\0\0\0\0\0\220\1\0\0\0\0\0\0\220\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0P\345td\4\0\0\0\354A\0\0\0\0\0\0\354A\0\0\0\0\0\0\354A\0\0\0\0\0\0$\1\0\0\0\0\0\0$\1\0\0\0\0\0\0\4\0\0\0\0\0\0\0Q\345td\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0\200\25\4e\0(\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0C\0\0\0L\0\0\0\0\0\0\0H\0\0\0\0\0\0\0/\0\0\0007\0\0\0!\0\0\0-\0\0\0\0\0\0\0\36\0\0\0A\0\0\0;\0\0\0F\0\0\0:\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0$\0\0\0\0\0\0\0\0\0\0\0\25\0\0\0\0\0\0\0\0\0\0\0=\0\0\0?\0\0\0\33\0\0\0006\0\0\0J\0\0\0>\0\0\0005\0\0\0\0\0\0\0D\0\0\0000\0\0\0004\0\0\0K\0\0\0+\0\0\0,\0\0\0\17\0\0\0\31\0\0\0\0\0\0\0&\0\0\0\0\0\0\0%\0\0\0E\0\0\0\35\0\0\0008\0\0\0\0\0\0\0\0\0\0\0002\0\0\0\0\0\0\0@\0\0\0\22\0\0\0\37\0\0\0B\0\0\0001\0\0\0#\0\0\0\0\0\0\0", 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=25512, ...}) = 0
mmap(NULL, 1071280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a9566b000
mprotect(0, 1050800, PROT_NONE) = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a9576b000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a9576b000
close(3) = 0
open("/lib/libcom_err.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\f\0\0\0\0\0\0@\0\0\0\0\0\0\0X\34\0\0\0\0\0\0\0\0\0\0@\0008\0\6\0@\0\31\0\30\0\1\0\0\0\5\0\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\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\r\0\0\0\0\0\0\0\0\0\0\0\21\0\0\0\0\0\0\0\0\0\0\0", 640) = 640
fstat(3, {st_mode=S_IFREG|0755, st_size=8856, ...}) = 0
mmap(NULL, 1055032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95771000
mprotect(0, 1046840, PROT_NONE) = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95871000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x2a95871000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\303\1\0\0\0\0\0@\0\0\0\0\0\0\0\270\227!\0\0\0\0\0\0\0\0\0@\0008\0\v\0@\0@\0=\0\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0h\2\0\0\0\0\0\0h\2\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0P\202\17\0\0\0\0\0P\202\17\0\0\0\0\0P\202\17\0\0\0\0\0\32\0\0\0\0\0\0\0\32\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\302\36\21\0\0\0\0\0\302\36\21\0\0\0\0\0\0\0\20\0\0\0\0\0\1\0\0\0\6\0\0\0P\17 \0\0\0\0\0P\17 \0\0\0\0\0P\17 \0\0\0\0\0\20K\0\0\0\0\0\0x\217\0\0\0\0\0\0\0\0\20\0\0\0\0\0\2\0\0\0\6\0\0\0\300: \0\0\0\0\0\300: \0\0\0\0\0\300: \0\0\0\0\0\320\1\0\0\0\0\0\0\320\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\4\0\0\0\4\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\0\6\0\0\0\300: \0\0\0\0\0\300: \0\0\0\0\0\300: \0\0\0\0\0\320\1\0\0\0\0\0\0\320\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\250\2\0\0\0\0\0\0\250\2\0\0\0\0\0\0\250\2\0\0\0\0\0\0 \0\0\0\0\0\0\0 \0\0\0\0\0\0\0\4\0\0\0\0\0\0\0\7\0\0\0\4\0\0\0P\17 \0\0\0\0\0P\17 \0\0\0\0\0P\17 \0\0\0\0\0\20\0\0\0\0\0\0\0P\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0P\345td\4\0\0\0l\202\17\0\0\0\0\0l\202\17\0\0\0\0\0l\202\17\0\0\0\0\0DQ\0\0\0\0\0\0DQ\0\0\0\0\0\0\4\0\0\0\0\0\0\0Q\345td\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0\200\25\4e\0(\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0R\345td\4\0\0\0P\17 \0\0\0\0\0P\17 \0\0\0\0\0P\17 \0\0\0\0\0\2500\0\0\0\0\0\0\2500\0\0\0\0\0\0\1\0\0\0\0\0\0\0", 616) = 616
lseek(3, 680, SEEK_SET) = 680
read(3, "\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\2\0\0\0\6\0\0\0\0\0\0\0", 32) = 32
fstat(3, {st_mode=S_IFREG|0755, st_size=2490358, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95873000
lseek(3, 64, SEEK_SET) = 64
read(3, "\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0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0\0\0P\17 \0\0\0\0\0P\17 \0\0\0\0\0P\17 \0\0\0\0\0\2500\0\0\0\0\0\0\2500\0\0\0\0\0\0\1\0\0\0\0\0\0\0", 616) = 616
mmap(NULL, 2137800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2a95874000
mprotect(0, 1015496, PROT_NONE) = -1 ENOMEM (Cannot allocate memory)
mmap(0x2a95a74000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x200000) = 0x2a95a74000
mmap(0x2a95a7a000, 16072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a95a7a000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95a7e000
mprotect(0x2a95a74000, 12288, PROT_READ) = 0
arch_prctl(0x1002, 0x2a95a7e090) = 0
munmap(0x2a9556b000, 16770) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "\220\313a\257D\23\22\26", 8) = 8
close(3) = 0
brk(0) = 0x503000
brk(0x524000) = 0x524000
brk(0) = 0x524000
lstat("foo", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
stat("foo", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("foo", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, EXT2_IOC_GETFLAGS, 0x7fbffff65c) = 0
close(3) = 0
stat("foo", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("foo", O_RDONLY|O_NONBLOCK) = 3
ioctl(3, EXT2_IOC_SETFLAGS, 0x7fbffff66c) = -1 EPERM (Operation not permitted)
close(3) = 0
write(2, "chattr", 6chattr) = 6
write(2, ": ", 2: ) = 2
write(2, "Operation not permitted", 23Operation not permitted) = 23
write(2, " ", 1 ) = 1
write(2, "while setting flags on foo", 26while setting flags on foo) = 26
write(2, "\r\n", 2
) = 2
exit_group(0) = ?
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver