[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2535: magic-folder permissions are inconsistent

Tahoe-LAFS trac at tahoe-lafs.org
Wed Oct 14 11:01:22 UTC 2015


#2535: magic-folder permissions are inconsistent
-------------------------------------+-------------------------------------
     Reporter:  dawuud               |      Owner:  daira
         Type:  defect               |     Status:  new
     Priority:  normal               |  Milestone:  undecided
    Component:  code-frontend-       |    Version:  1.10.1
  magic-folder                       |   Keywords:  magic-folder
   Resolution:                       |  permissions
Launchpad Bug:                       |
-------------------------------------+-------------------------------------

Comment (by daira):

 I don't think it uses the original uploader's permissions. It uses
 `fileutil.write` ([https://github.com/tahoe-lafs/tahoe-lafs/blob/2438
 .magic-folder-stable.3/src/allmydata/frontends/magic_folder.py#L583
 here]), which uses whatever the default is for `open(path, "wb")`
 ([https://github.com/tahoe-lafs/tahoe-lafs/blob/2438.magic-folder-
 stable.3/src/allmydata/util/fileutil.py#L227 here]). But it does this as
 the node process, which might not have the same umask as the user's shell
 (ISTR that twistd changes the umask).

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2535#comment:2>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list