Skip to content

bug(provider/file): gitignore tracker bypasses Root, calls os.Open directly #224

Closed

Description

@David-Noble-at-work

Summary

pkg/op/provider/file/gitignore/tracker.go calls os.Open(path) directly at lines 180 and 268 instead of going through the Root interface (Root.Open). This bypasses OS-enforced confinement in confined mode.

Sites

  • Line 180: os.Open(path)
  • Line 268: os.Open(path)

Expected

All file I/O in pkg/op/provider/** should go through the Root interface to respect confinement boundaries.

Found during

GoLand inspection cleanup — cross-referencing unhandled Close errors with Root API usage.

Activity

  1. David-Noble-at-work commented on Aug 7, 2026

    @David-Noble-at-work
    ContributorAuthor

    Closing: pkg/op/provider/file/gitignore/tracker.go no longer exists — the code this bug names is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions