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

Set socket permissions for unix domain sockets #5760

Merged
merged 6 commits into from
Apr 26, 2019

Conversation

danielnelson
Copy link
Contributor

Continuation of the work on #3996.

Renamed the option to socket_mode to match the name in pdns_recursor and only set the mode if set in the configuration file so by default we honor the umask.

closes #3239

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@danielnelson danielnelson added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Apr 23, 2019
@danielnelson danielnelson added this to the 1.11.0 milestone Apr 23, 2019
@danielnelson
Copy link
Contributor Author

@gentstr Can you review?

@@ -25,6 +25,13 @@ This is a sample configuration for the plugin.
# service_address = "unix:///tmp/telegraf.sock"
# service_address = "unixgram:///tmp/telegraf.sock"

## Change the file mode bits on unix sockets. These permissions may not be
## repected by some platforms, to safely restrict write permissions it is best
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/repected/respected

@danielnelson danielnelson merged commit 6615362 into master Apr 26, 2019
@danielnelson danielnelson deleted the gentstr-mg-3239-socket-permission branch April 26, 2019 03:06
hwaastad pushed a commit to hwaastad/telegraf that referenced this pull request Jun 13, 2019
bitcharmer pushed a commit to bitcharmer/telegraf that referenced this pull request Oct 18, 2019
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
@SudoNova
Copy link

This either should be merged with syslog plugin, or this issue should be addressed. As syslog plugin currently lacks the ability to set proper ownership and mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

socket listener: needs a way to set socket permissions for unix/dgram sockets.
3 participants