[telepathy-salut/master] tube_stream_open: chmod the newly created UNIX socket to allow everyone to access to it if access control is localhost
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed May 27 09:14:46 PDT 2009
---
src/tube-stream.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/tube-stream.c b/src/tube-stream.c
index 61d7aba..ea74585 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -790,6 +790,13 @@ tube_stream_open (SalutTubeStream *self,
g_free (path);
return FALSE;
}
+
+ if (priv->access_control == TP_SOCKET_ACCESS_CONTROL_LOCALHOST)
+ {
+ /* Everyone can use the socket */
+ chmod (path, 0777);
+ }
+
g_free (path);
}
else if (priv->address_type == TP_SOCKET_ADDRESS_TYPE_IPV4)
--
1.5.6.5
More information about the telepathy-commits
mailing list