pat / thinking-sphinx

Sphinx/Manticore plugin for ActiveRecord/Rails
http://freelancing-gods.com/thinking-sphinx
MIT License
1.63k stars 469 forks source link

Socket Permissions #1223

Closed DaAwesomeP closed 2 years ago

DaAwesomeP commented 2 years ago

Hello!

I currently have Sphinx listen on a socket with socket: /path/to/my/socket.sock. However, I have noticed that this socket has permissions of 777, which means it is readable/writable by anyone. How can I limit the permissions of the socket?

Thanks!

pat commented 2 years ago

Hi Perry - unfortunately, it doesn't seem that Sphinx has a configuration option for this (and it's not something that Thinking Sphinx can control directly). I guess you could try modifying the permissions directly with chmod and see if that has an impact?

DaAwesomeP commented 2 years ago

Ah, darn! I'll open an issue there. Another way I thought about would be to use a SystemD socket activation. I'll close this since both of those are more of issues with Sphinx. I'll report back what I find. Thanks for taking a look!