Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
This repository was archived by the owner on May 27, 2025. It is now read-only.

running commands that use ch-run as root fails with non-obvious seccomp error  #1926

@scothalverson

Description

@scothalverson

I built Charliecloud with fakeroot support via seccomp, and unintentionally ran a ch-image build command on a Dockerfile with apt-get commands. This failed with the following error:

error: ch-run was not built with seccomp(2) support

Thinking I had built Charliecloud incorrectly, I rebuilt verifying seccomp support, but got the same error. After a quick debug with @reidpr he pointed out that running as root was the problem. This makes sense in hindsight, and was definitely a bad practice on my part. Nonetheless, an error message that conveyed that I should not run this command as root rather than one that suggested I did not have seccomp support would be helpful in case anyone else does this in the future.

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