Newsgroup: it.comp.os.linux.sys
Titolo: crond dentro chroot [lungo]

salve,
ho settato una chroot dentro alla quale gira un secondo server innd
all'interno della stessa macchina bindato a un IP virtuale.
Tutto fila liscio (o quasi) tranne per il crond che non ne vuole sapere di
partire. Ecco cosa mi da l'output di strace:
root@news1:~#strace crond
execve("/usr/sbin/crond", ["/usr/sbin/crond"], [/* 23 vars */]) = 0
uname({sys="Linux", node="
server2.ouverture.it
", ...}) = 0
brk(0)                                  = 0x804e2c4
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, 0xbfffecec)                  = -1 ENOSYS (Function not
implemented)
fstat(3, {st_mode=S_IFREG|0644, st_size=21557, ...}) = 0
old_mmap(NULL, 21557, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
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`\300\1"..., 1024) =
1024
fstat(3, {st_mode=S_IFREG|0755, st_size=5155229, ...}) = 0
old_mmap(NULL, 1214792, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001e000
mprotect(0x4013e000, 35144, PROT_NONE)  = 0
old_mmap(0x4013e000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x11f000) = 0x4013e000
old_mmap(0x40143000, 14664, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40143000
close(3)                                = 0
munmap(0x40018000, 21557)               = 0
getpid()                                = 29961
rt_sigaction(SIGCHLD, {0x8049a30, [CHLD], SA_RESTART|0x4000000}, {SIG_DFL},
8) = 0
rt_sigaction(SIGHUP, {0x8049a60, [HUP], SA_RESTART|0x4000000}, {SIG_DFL}, 8)
= 0
open("/var/run/crond.pid", O_RDWR|O_CREAT, 0644) = 3
fcntl64(3, F_GETFL)                     = -1 ENOSYS (Function not
implemented)
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
brk(0)                                  = 0x804e2c4
brk(0x804e444)                          = 0x804e444
brk(0x804f000)                          = 0x804f000
fstat64(3, 0xbffff7e0)                  = -1 ENOSYS (Function not
implemented)
fstat(3, {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x40018000
_llseek(3, 0, [0], SEEK_CUR)            = 0
flock(3, LOCK_EX|LOCK_NB)               = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
_llseek(3, 0, [0], SEEK_SET)            = 0
getpid()                                = 29961
write(3, "29961\n", 6)                  = 6
_llseek(3, 0, [6], SEEK_CUR)            = 0
ftruncate(3, 6)                         = 0
setresuid32(ruid 4294967295, euid 0, suid 4294967295) = -1 ENOSYS (Function
not implemented)
setresuid(ruid 4294967295, euid 0, suid 4294967295) = 0
stat("/var/spool", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
chdir("/var/spool")                     = 0
stat("cron", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
fork()                                  = 29962
_exit(0)
le librerie ci sono tutte, le dir che servono a cron lo stesso.. E' quel
"Function not implemented" che non capisco da cosa derivi..
Qualcuno ci capisce qualcosa ?
Ciao,
Francesco

 "Function not implemented" che non capisco da cosa derivi..
E' la libc che testa se c'e' la lseek a 64 bit ( per file + lunghi di 4GB 
.... ). Non e' un problema