Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
George Kadianakis
Tor
Commits
f944e463
Commit
f944e463
authored
Jun 28, 2021
by
Steven Engler
Browse files
If TestingTorNetwork, skip perm check on the hs directory
parent
2b97c1dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/issue40338
0 → 100644
View file @
f944e463
o Minor features (testing configuration):
- When TestingTorNetwork is enabled, skip the permission check on
the hidden service directory. Closes ticket 40338.
src/feature/hs/hs_config.c
View file @
f944e463
...
...
@@ -544,15 +544,19 @@ config_service(config_line_t *line, const or_options_t *options,
tor_assert
(
service
->
config
.
version
<=
HS_VERSION_MAX
);
/* Check permission on service directory that was just parsed. And this must
* be done regardless of the service version. Do not ask for the directory
* to be created, this is done when the keys are loaded because we could be
* in validation mode right now. */
if
(
hs_check_service_private_dir
(
options
->
User
,
service
->
config
.
directory_path
,
service
->
config
.
dir_group_readable
,
0
)
<
0
)
{
goto
err
;
/* If we're running with TestingTorNetwork enabled, we relax the permissions
* check on the hs directory. */
if
(
!
options
->
TestingTorNetwork
)
{
/* Check permission on service directory that was just parsed. And this
* must be done regardless of the service version. Do not ask for the
* directory to be created, this is done when the keys are loaded because
* we could be in validation mode right now. */
if
(
hs_check_service_private_dir
(
options
->
User
,
service
->
config
.
directory_path
,
service
->
config
.
dir_group_readable
,
0
)
<
0
)
{
goto
err
;
}
}
/* We'll try to learn the service version here by loading the key(s) if
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment