-
Notifications
You must be signed in to change notification settings - Fork 38.8k
doc: FreeBSD DataDirectoryGroupReadable Setting #26741
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
doc: FreeBSD DataDirectoryGroupReadable Setting #26741
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
|
The default seems to be I confirm that on FreeBSD, by default the tor data directory is not group readable: But even if it was, that would not suffice for |
|
@vasild Correct I had to add I think it makes sense to move that suggestion up a few lines sense its required on all systems and not just some. Since the |
@jessebarton did you want to follow up with the changes here? also cc @murrayn re FreeBSD. |
It does apply to FreeBSD, but it is not required on all systems. |
On which systems it is not required? How does it work on such a system? Maybe some distro patched the tor daemon itself to make |
|
@jessebarton want to followup here? |
|
The Tor project has this set (Default: 0) freebsd takes the same Default. Makes sense to me to follow what the Tor docs show rather than each individual project. |
|
The changes in the first commit seem to be removed in the second commit? If so, please squash your commits according to https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#squashing-commits |
vasild
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
690feb04e24e14dde02ea2e9d7bfa3395994a998 looks ok
As @MarcoFalke mentioned, squash the commits, or in this case, just drop the first commit.
nit: in the commit message: s/its required/it's required/ (or it is).
9bc5ea4 to
3c531ed
Compare
|
This was my first time doing a squash commit. If it doesn't look right I can fix it. Appreciate the help. |
@jessebarton There are currently three commits here, when it should be (squashed to) one. |
|
I usually resort to git rebase -i HEAD~3an editor will open that contains this: change the last two lines to begin with save and quit the editor. Verify the result: and this diff: @@ -89,25 +89,19 @@ some or all of the following settings in `/etc/tor/torrc`, generally commented
out by default (if not, add them):
```
ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
+DataDirectoryGroupReadable 1
```
Add or uncomment those, save, and restart Tor (usually `systemctl restart tor`
or `sudo systemctl restart tor` on most systemd-based systems, including recent
Debian and Ubuntu, or just restart the computer).
-On some systems (such as Arch Linux), you may also need to add the following
-line:
-
-```
-DataDirectoryGroupReadable 1
-```
-
### Authentication
Connecting to Tor's control socket API requires one of two authentication |
a877011 to
ba071d7
Compare
|
@vasild Thanks that helped a ton! Looks like I have it down to one now. |
Move DataDirectoryGroupReadable 1 up a few lines to more clearly communicate that it is required for the filesystem group to read the DataDirectory. Per the Tor documentation https://2019.www.torproject.org/docs/tor-manual.html.en#DataDirectoryGroupReadable "If this option is set to 0, don’t allow the filesystem group to read the DataDirectory. If the option is set to 1, make the DataDirectory readable by the default GID. (Default: 0)"
ba071d7 to
499c464
Compare
vasild
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 499c464
499c464 doc: update DataDirectoryGroupReadable 1 in tor.md (Jesse Barton) Pull request description: Updating tor.md doc to include mention of FreeBSD requiring the DataDirectoryGroupReadable be set to 1. Default per the FreeBSD man page is 0. DataDirectoryGroupReadable 0|1 If this option is set to 0, don't allow the filesystem groupto readthe DataDirectory. If the option is setto 1, make the DataDirectory readable by the default GID. (Default:0) ACKs for top commit: vasild: ACK 499c464 Tree-SHA512: 8750b49cd04e900435c7991d1a24641fd1171227c1f14ed59afb157f24c1ca60380d30aecfb174ca46fd5b4b99dcdb3a1cfd019aafc343362e8103abf7c17e6a
Updating tor.md doc to include mention of FreeBSD requiring the DataDirectoryGroupReadable be set to 1.
Default per the FreeBSD man page is 0.