Incerc sa fac un chrooted mysql dar ma confrunt cu urmatoarea eroare:
Oct 5 01:27:07 astro mysqld[3672]: warning: can't get client address: Bad
file descriptor
El merge corect si fara alte erori. Testat inclusiv permisiile pe hosturi
dar ... nu reusesc sa scap de eroarea asta orice as face. din ce strace am
facut am reusit sa inteleg ca nu resuseste sa faca revers la ip-ul care se
conecteaza la mysql. mai jos output de la strace:
open("/etc/hosts.allow", O_RDONLY) = 9
fstat64(9, {st_mode=S_IFREG|0644, st_size=293, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40016000
read(9, "#\n# hosts.allow\tThis file descri"..., 4096) = 293
read(9, "", 4096) = 0
close(9) = 0
munmap(0x40016000, 4096) = 0
open("/etc/hosts.deny", O_RDONLY) = 9
fstat64(9, {st_mode=S_IFREG|0644, st_size=296, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40016000
read(9, "#\n# hosts.deny\tThis file describ"..., 4096) = 296
read(9, "", 4096) = 0
close(9) = 0
munmap(0x40016000, 4096) = 0
getsockname(52, {sin_family=AF_INET, sin_port=htons(3306),
sin_addr=inet_addr("193.231.198.227")}}, [16]) = 0
fcntl64(52, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(52, F_SETFL, O_RDWR|O_NONBLOCK) = 0
setsockopt(52, SOL_IP, IP_TOS, [8], 4) = 0
setsockopt(52, SOL_TCP, TCP_NODELAY, [1], 4) = 0
kill(3697, SIGRTMIN) = 0
kill(3697, SIGRTMIN) = 0
select(5, [3 4], NULL, NULL, NULL) = 1 (in [3])
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
accept(3, {sin_family=AF_INET, sin_port=htons(59037),
sin_addr=inet_addr("193.231.198.227")}}, [16]) = 9
fcntl64(3, F_SETFL, O_RDWR) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
getpid() = 3672
getpeername(1920234337, 0x81c4360, [16]) = -1 EBADF (Bad file descriptor)
recvfrom(1920234337, 0xbfffcffc, 8192, 2, 0x81c4360, 0xbfffcff8) = -1
EBADF (Bad file descriptor)
time([1033770910]) = 1033770910
getpid() = 3672
rt_sigaction(SIGPIPE, {0x40026078, [], 0x4000000}, {SIG_IGN}, 8) = 0
send(10, "<35>Oct 5 01:35:10 mysqld[3672]"..., 88, 0) = 88
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
open("/etc/hosts.allow", O_RDONLY) = 53
Vreo idee?
axl
---
Pentru dezabonare, trimiteti mail la
[EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/