GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit fa4e114a authored by Georg Koppen's avatar Georg Koppen
Browse files

fixup! Bug 14272: Make Tor Launcher work with Unix Domain Socket option

Permissions for the Tor data directory are too permissive for control
sockets. We adapt them (and those for creating files) to the ones used
for Linux bundles by default. This fixes: #20076 and #20075 as FileUtils
is not needed anymore (and hence can't be missing in tl-utils.jsm).
parent 32ddac70
......@@ -16,8 +16,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "TorLauncherUtil",
"resource://torlauncher/modules/tl-util.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "TorLauncherLogger",
"resource://torlauncher/modules/tl-logger.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "FileUtils",
"resource://gre/modules/FileUtils.jsm");
function TorProcessService()
{
......
......@@ -513,9 +513,9 @@ let TorLauncherUtil = // Public
try
{
if ("tordatadir" == aTorFileType)
f.create(f.DIRECTORY_TYPE, FileUtils.PERMS_DIRECTORY);
f.create(f.DIRECTORY_TYPE, 0700);
else
f.create(f.NORMAL_FILE_TYPE, FileUtils.PERMS_FILE);
f.create(f.NORMAL_FILE_TYPE, 0600);
}
catch (e)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment