Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to add a flag to set unix domain socket permissions #331

Open
emilfihlman opened this issue Jul 29, 2024 · 1 comment
Open

Request to add a flag to set unix domain socket permissions #331

emilfihlman opened this issue Jul 29, 2024 · 1 comment

Comments

@emilfihlman
Copy link

It would be really good if there was a flag, maybe -m / --mode that would allow us to set the permissions for the unix domain socket.
Otherwise the default umask doesn't allow most distribution default setting proxies from accessing the socket xandikos creates.

Ie usage could be for example xandikos --defaults -d /path/to/directory --listen /path/to/socket --mode 666

@jelmer
Copy link
Owner

jelmer commented Jul 29, 2024

Note that this is nontrivial since aiohttp/Python don't expose this:

https://docs.aiohttp.org/en/stable/_modules/aiohttp/web_runner.html#UnixSite

python/cpython#94984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants