containers / containers/bubblewrap

Allow setting noexec flag for newly created filesystems

Open
#349 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
C
Stars
8.7k
Forks
386
Avg merge
3d 17h
Merged PRs (30d)
11

Description

On systems which strictly use noexec flag for filesystems, creating new, arbitrary ones with exec flag means apps in sandbox will have more privileges than they would have on host.

This won't cover interpreted code but blocking execution of such code is work in progress: https://patchwork.kernel.org/patch/11135563/ and if it's completed then it will hit by the same issue with lack of noexec flag on new tmpfs filesystems.

Moreover on such restricted systems there could be no interpreters available in executable paths in container which again may be bypassed by putting interpreter to newly created executable path and run it from it.

This is follow-up from https://github.com/containers/bubblewrap/pull/345

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.