The current version of fam (2.6.4) does not support several users
connecting to the fam daemon, because it fails to chown the unix domain
socket for the new connection since it is running with an euid of the
first user.
Here is a patch that fixes this:
diff -ur fam-oss-2.6.4.orig/fam/Listener.c++ fam-oss-2.6.4/fam/Listener.c++
--- fam-oss-2.6.4.orig/fam/Listener.c++ Tue Aug 7 13:03:44 2001
+++ fam-oss-2.6.4/fam/Listener.c++ Tue Aug 7 14:52:08 2001
@@ -213,6 +213,7 @@
strcpy(sun.sun_path, tmpfile);
free(tmpfile);
+ Cred::SuperUser.become_user();
int client_sock = socket(PF_UNIX, SOCK_STREAM, 0);
if (client_sock < 0)
{ Log::perror("localclient socket(PF_UNIX, SOCK_STREAM, 0)");
Has there been any release since 2.6.4? Will there be? Is there a cvs
repository somewhere with fixes? Is this thing even maintained?
We're shipping fam starting with the RedHat 7.2 beta (with the dnotify
patches), and I'm a bit worried that it doesn't seem very well tested.
/ Alex
--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx
|