summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2008-11-07 02:06:12 +0000
committerSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2008-11-07 02:06:12 +0000
commit9d68ed08e9689cde194475657fb09f9693c38e5c (patch)
treea96d96d1676ca438b9c99e628cffedb6d5f0481b /src/or/config.c
parent6e3de8530e49b926d25ba071720b7c8054b6d8ac (diff)
downloadtor-9d68ed08e9689cde194475657fb09f9693c38e5c.tar.gz
tor-9d68ed08e9689cde194475657fb09f9693c38e5c.zip
Patch from Jacob Appelbaum and me to make User option more robust, properly set supplementary groups, deprecated the Group option, and log more information on credential switching
svn:r17200
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/or/config.c b/src/or/config.c
index bd42860011..66ee6cd52b 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -219,7 +219,7 @@ static config_var_t _option_vars[] = {
V(GeoIPFile, FILENAME,
SHARE_DATADIR PATH_SEPARATOR "tor" PATH_SEPARATOR "geoip"),
#endif
- V(Group, STRING, NULL),
+ OBSOLETE("Group"),
V(HardwareAccel, BOOL, "0"),
V(HashedControlPassword, LINELIST, NULL),
V(HidServDirectoryV2, BOOL, "1"),
@@ -434,7 +434,6 @@ static config_var_description_t options_description[] = {
/* { "FastFirstHopPK", "" }, */
/* FetchServerDescriptors, FetchHidServDescriptors,
* FetchUselessDescriptors */
- { "Group", "On startup, setgid to this group." },
{ "HardwareAccel", "If set, Tor tries to use hardware crypto accelerators "
"when it can." },
/* HashedControlPassword */
@@ -1084,13 +1083,12 @@ options_act_reversible(or_options_t *old_options, char **msg)
#endif
/* Setuid/setgid as appropriate */
- if (options->User || options->Group) {
+ if (options->User) {
/* XXXX021 We should only do this the first time through, not on
* every setconf. */
- if (switch_id(options->User, options->Group) != 0) {
+ if (switch_id(options->User) != 0) {
/* No need to roll back, since you can't change the value. */
- *msg = tor_strdup("Problem with User or Group value. "
- "See logs for details.");
+ *msg = tor_strdup("Problem with User value. See logs for details.");
goto done;
}
}