diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-05-27 17:14:46 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-05-27 17:14:46 +0100 |
commit | 878be3f442b5048ff65c18ae0bcd93735fc99677 (patch) | |
tree | a9388c9a12051785275b7cce7ac07debbf177abe /src/tube-stream.c | |
parent | e34c0eba26afe5054bd2d025b09bc0bff07532ef (diff) | |
download | telepathy-salut-878be3f442b5048ff65c18ae0bcd93735fc99677.tar.gz |
tube_stream_open: chmod the newly created UNIX socket to allow everyone to access to it if access control is localhost
Diffstat (limited to 'src/tube-stream.c')
-rw-r--r-- | 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 61d7aba7..ea745854 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) |