1.2.9 and later break gpm clients

Alessandro Rubini (rubini@ipvvis.UNIPV.IT)
Sat, 15 Jul 1995 18:13:14 +0100 (BST)

Hi Linuxers,
I took some time to upgrade after 1.2.8, and yesterday I found
that 1.0.9 breaks gpm clients, because connecting to a unix-domain socket
needs write permission on the filesystem node.

Though I changed my gpm source, any user installing the new kernel but
running the old software won't be able to run gpm clients (unless being

I found no comments about this change. Can you please tell me
why it was changed? Network sockets accept connection from anyone, why
should filesystem sockets be different?

This is the guilty change in linux/net/unix/sock.c

- i = open_namei(fname, 0, S_IFSOCK, &inode, NULL);
+ i = open_namei(fname, 2, S_IFSOCK, &inode, NULL);

Feel free to flame at me, if needed.