Skip to content

Run without sudo #106

Open
Open

Description

@kaimast

Now that OpenLambda uses cgroups v2 it should be possible to run it not as the root-user. That should make testing easier and also prevent some potential attacks.

This might be a fun "first issue" for someone new to the project.

Activity

  1. adajani commented on Aug 16, 2025

    @adajani

    I have opend a pull request to run Openlambda as regular user.

  2. yiquanlin212 commented on Mar 3, 2026

    @yiquanlin212

    Tried running ol worker init without sudo in GitHub Codespaces (cgroups v2). After relaxing the sudo checks for init + cgroup pool ownership, init still fails in initOLBaseDir when creating /dev nodes:

    mknod ... Operation not permitted (even after creating the dev/ directory).

    So beyond cgroups delegation, rootless support also needs an alternative to mknod during base extraction, e.g.:

    • bind-mount host /dev/{null,random,urandom} into the base, or
    • skip device creation and rely on existing nodes in the extracted image (if present), or
    • gate this step behind a “root-required” path and document it.

    Repro (Codespaces):

    • make ol imgs/ol-min
    • ./ol worker init -p myworker -i ol-min -> fails at mknod with EPERM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions