Subject: [bug#47155] [PATCH] gnu: Respect DataDirectoryGroupReadable option of tor.

From: Jean Pierre De Jesus DIAZ <[email-masked]>
Date: Tue, 27 Dec 2022 11:52:55 +0000

>+                (when #$control-port?
>+                  (format port
>+                          "\
>+ControlPort ~a
>+CookieAuthentication 1
>+CookieAuthFileGroupReadable 1
>+DataDirectoryGroupReadable 1\n"

Maybe instead of a port, we can have separate options for `control-port',
and `cookie-authentication?'.  As IIUC cookie authentication can still be
used with a control UNIX domain socket.

>+                          #$(if (eq? control-port? #t)
>+                                9051
>+                                control-port?)))

As a side note, the `if' can be removed and the port put in place into
the string directly.  But would prefer an option in the configuration
record for the control port.

—
Jean-Pierre De Jesus DIAZ