Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
7528e8b8
Commit
7528e8b8
authored
20 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
don't check permissions on our datadirectory until we switch uid/gid
svn:r2759
parent
5a5be93f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/or/config.c
+7
-3
7 additions, 3 deletions
src/or/config.c
with
7 additions
and
3 deletions
src/or/config.c
+
7
−
3
View file @
7528e8b8
...
...
@@ -277,7 +277,7 @@ options_act(void) {
/* XXXX We once had a reason to separate start_daemon and finish_daemon: It
* let us have the parent process stick around until we were sure Tor was
* started. Should
s
e make start_daemon get called earlier? -NM */
* started. Should
w
e make start_daemon get called earlier? -NM */
if
(
options
->
RunAsDaemon
)
{
start_daemon
(
options
->
DataDirectory
);
}
...
...
@@ -689,7 +689,7 @@ config_assign(or_options_t *options, struct config_line_t *list, int reset)
/** Try assigning <b>list</b> to the global options. You do this by duping
* options, assigning list to the new one, then validating it. If it's
* ok, then thro
ugh
out the old one and stick with the new one. Else,
* ok, then thro
w
out the old one and stick with the new one. Else,
* revert to old and return failure. Return 0 on success, -1 on bad
* keys, -2 on bad values, -3 on bad transition.
*/
...
...
@@ -1234,6 +1234,8 @@ options_transition_allowed(or_options_t *old, or_options_t *new_val) {
return
-
1
;
}
/* XXX not allowed to change User or Group either */
return
0
;
}
...
...
@@ -1839,7 +1841,7 @@ parse_dir_server_line(const char *line, int validate_only)
return
r
;
}
/** Adjust
or
the value of options->DataDirectory, or fill it in if it's
/** Adjust the value of options->DataDirectory, or fill it in if it's
* absent. Return 0 on success, -1 on failure. */
static
int
normalize_data_directory
(
or_options_t
*
options
)
{
...
...
@@ -1885,10 +1887,12 @@ validate_data_directory(or_options_t *options) {
log_fn
(
LOG_ERR
,
"DataDirectory is too long."
);
return
-
1
;
}
#if 0
if (check_private_dir(options->DataDirectory, CPD_CHECK != 0)) {
log_fn(LOG_WARN, "Can't create directory %s", options->DataDirectory);
return -1;
}
#endif
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment