Uploaded image for project: 'DRP 2-D Pipeline'
  1. DRP 2-D Pipeline
  2. PIPE2D-1011

Remove os.chmod() from RegistryContext initialization?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      https://github.com/Subaru-PFS/obs_pfs/commit/cdc82a032b98eca51253622ccc1c23adad7b5c56 added a context manager for registry access. That does an os.chmod() on the registry itself. But chmod(2) requires that the process and file users match, not just the groups. So only the sqlite file owner can ingest files. [or someone in the group can exploit fragile hacks inside the directory. ]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cloomis cloomis
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: