Closed Bug 538929 Opened 16 years ago Closed 15 years ago

Some "system" directories are created with wrong permissions

Categories

(Core :: General, defect)

1.9.1 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(1 file)

nsXREDirProvider::EnsureDirectoryExists creates directories with 0700 permissions, which is fine for most directories, which are to be created in the user profile directory, but there are two cases in nsXREDirProvider where this is wrong: XRE_SYS_LOCAL_EXTENSION_PARENT_DIR and NS_APP_PREFS_OVERRIDE_DIR. Either EnsureDirectoryExists should not be used or a new function that creates directories 0755 should be added. Which one would you prefer ? (personally, I'd prefer if mozilla apps would stop writing to the system filesystems altogether, but the present issue is only a small part of that...) Note that for the former, the quite similar XRE_SYS_SHARE_EXTENSION_PARENT_DIR does *not* use EnsureDirectoryExists.
Attached patch PatchSplinter Review
Assignee: nobody → mh+mozilla
Attachment #435837 - Flags: review?(benjamin)
Attachment #435837 - Flags: review?(benjamin) → review+
Keywords: checkin-needed
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: