From: Bencsath Boldizsar <boldi@datacontact.hu>
Subject: mysql problems
Date: Sun, 15 Apr 2001 02:05:05 +0200 (CEST)
Next Article (by Date): Re: rsbac-v1.1.2-pre2 uploaded Amon Ott
Previous Article (by Date): Re: [syslog-ng]syslog-ng problem description(again) Balazs Scheidler
Articles sorted by: [Date]
[Author]
[Subject]
I am trying to install mysql too...
Mysql 3.23.36, rsbac 1.1.1, kernel 2.4.3 ->
can't bind to unix socket....
The problem is just like with rsbac, a short patch of mysql solves the
problem: sql/mysqld.cc:
(void) unlink(mysql_unix_port);
(void) setsockopt(unix_sock,SOL_SOCKET,SO_REUSEADDR,(char*)&arg,
sizeof(arg));
umask(0);
if (bind(unix_sock, my_reinterpret_cast(struct sockaddr *) (&UNIXaddr),
- sizeof(UNIXaddr)) < 0)
+sizeof(UNIXaddr)-sizeof(UNIXaddr.sun_path) +strlen(UNIXaddr.sun_path) +1)<0)
It could be great if it wouldn't be neccesary to patch all other programs ;-)
boldi
/* i am surprised that noone uses rsbac and syslog-ng or mysqld ? */
--------------------------------
Bencsath Boldizsar
boldi@etl.hu
--------------------------------
-
To unsubscribe from the rsbac list, send a mail to
majordomo@rsbac.org with
unsubscribe rsbac
as single line in the body.
Next Article (by Date): Re: rsbac-v1.1.2-pre2 uploaded Amon Ott
Previous Article (by Date): Re: [syslog-ng]syslog-ng problem description(again) Balazs Scheidler
Articles sorted by: [Date]
[Author]
[Subject]