Skip to content

The in-process stub: the caller's account through pkg/process, root through one sudo -n behind the interface #1130

Closed

Description

@David-Noble-at-work

The stub implements the client interface in the caller's process. An exec for the caller's own account runs through pkg/process.Runner; an exec for root runs through one sudo -n prefix, the standing TODO of pkg/platform/helpers_unix.go:70-71 done literally, so that every inlined sudo -n in pkg/platform is deleted and the stub is the only place the word appears. Any other account is refused with a named failure. The stub is deleted in iteration 3.

Done when

  • grep -rn 'sudo' pkg/platform finds nothing; the stub is the one site; the shell, pkg and service providers run through it

Plan and design documents

Kind Document
Plan docs/plans/task/1130-in-process-stub.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions