Skip to content

To what extent is callr::r_safe safe? #261

Closed

Description

@king-of-poppk

From experience, code evaluated with callr::r_safe can read environment variables from /proc/*/environ, and modify the files ${TMPDIR}/<random>/callr-client--<version>.so and ${TMPDIR}/<random>/callr-env-<random> which enables hijacking other evaluation sessions. The serialized input and output files of other sessions can also be read provided callr::r_safe is run in parallel (or that those files are not properly cleaned up).

What does safe mean in callr::r_safe?

Activity

  1. gaborcsardi commented on Oct 19, 2023

    @gaborcsardi
    Member

    It is in the documentation, see ?callr::r_safe. It is a completely different definition of safe, I am afraid.

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