Skip to content

Adjust websocket permissions in the same way as controlsocket permissions #17994

Description

@neuro42
  • Program: Authoritative
  • Issue type: Bug report

Short description

The control unix socket fixes its permissions when setgid is set. The webserver unix socket does not.

Environment

  • Operating system: Debian 13
  • Software version: 5.1.4
  • Software source: self-compiled backport of the current Debian 14 package; no other changes

Steps to reproduce

  1. setgid=pdns
    webserver=yes
    webserver-address=/run/pdns-config/pdns-config.apisocket

Expected behaviour

srw-rw---- 1 pdns pdns 0 Sep 1 04:21 pdns-config.apisocket
srw-rw---- 1 pdns pdns 0 Sep 1 04:21 pdns-config.controlsocket

Actual behaviour (with distro default umask 022)

srwxr-xr-x 1 pdns pdns 0 Sep 1 04:21 pdns-config.apisocket
srw-rw---- 1 pdns pdns 0 Sep 1 04:21 pdns-config.controlsocket

Other information

9oi88ii

discussion in irc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions