>Description:
Hi,

I'm using mysql-3.23.51 compiled with libwrap support.
If hosts.{allow,deny} have similar to the following structure:

hosts.allow:
#start of hosts.allow
mysqld: ALL
#end of hosts.allow

hosts.deny:
#start of hosts.deny
ALL: ALL
#end of hosts.deny

I end with a rejected access. A message is logged to syslog
which says:
mysqld[4639]: refused connect from <>

I place <> instead of some binary data, which definetely doesn't look
like a host name or ip address(probably s.t. taken from the memory
where it expects to find the address but the area has not been initialized
yet)

mysqld also complains:
mysqld[4639]: warning: can't get client address: Socket operation on
non-socket

strace shows it tries to do socket operations on /dev/null ?!

Anyway,
If I comment out "ALL: ALL" in hosts.deny access is granted.
The problem is, the "mysqld: ALL" in hosts.allow is ignored.

I'm using the default mysql package from slack 8.1 which comes
with libwrap support compiled in.

--
Delian Krustev

>How-To-Repeat:
        
    Description includes all necessary info.
>Fix:
        

>Submitter-Id:  <submitter ID>
>Originator:    
>Organization:
 
>MySQL support: none
>Synopsis:      libwrap ignores entry in hosts.allow
>Severity:      non-critical
>Priority:      medium
>Category:      mysql
>Class:         sw-bug
>Release:       mysql-3.23.51 (Source distribution)

>Environment:
        
System: Linux gateway 2.4.16 #4 Tue Apr 30 20:55:54 EEST 2002 i686 unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Compilation info: CC='i386-slackware-linux-gcc'  CFLAGS='-O3 -march=i486 -mcpu=i686'  
CXX='gcc'  CXXFLAGS='-O3 -march=i486 -mcpu=i686 -felide-constructors -fno-exceptions 
-fno-rtti'  LDFLAGS=''
LIBC: 
lrwxrwxrwx    1 root     root           13 Dec 29 16:53 /lib/libc.so.6 -> libc-2.2.5.so
-rwxr-xr-x    1 root     root      4783716 May 26  2001 /lib/libc-2.2.3.so
-rwxr-xr-x    1 root     root      5028973 Jul 30 23:56 /lib/libc-2.2.5.so
-rw-r--r--    1 root     root     24984184 Jul 30 23:55 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 Jul 30 23:56 /usr/lib/libc.so
Configure command: ./configure --prefix=/usr --with-mysqld-user=mysql 
--with-unix-socket-path=/var/run/mysql/mysql.sock --localstatedir=/var/lib/mysql 
--with-pthread --enable-thread-safe-client --enable-assembler --with-raid 
--with-libwrap --without-bench --program-prefix= --program-suffix= 
i386-slackware-linux 'CFLAGS=-O3 -march=i486 -mcpu=i686' 'CXXFLAGS=-O3 -march=i486 
-mcpu=i686 -felide-constructors -fno-exceptions -fno-rtti' CXX=gcc 
build_alias=i386-slackware-linux host_alias=i386-slackware-linux 
target_alias=i386-slackware-linux


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to