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

Make sure sockets are not world readable #36

Closed
wants to merge 1 commit into from
Closed

Make sure sockets are not world readable #36

wants to merge 1 commit into from

Conversation

kseistrup
Copy link
Contributor

This pull request sets umask 0027 before calling bind_socket(), such that sockets are not world readable.
If applied, this will fix the last part of #12 so that the issue can be closed.

Since Python 2 uses the notation 0027 and Python 3 uses the notation 0o027, the correct value is created from the string '0027'.

@jonathanslenders
Copy link
Member

Thank you Klaus! It's merged in: 0e1b164

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

Successfully merging this pull request may close these issues.

None yet

2 participants