Skip to content

Userland: Prevent a BuggieBox container from being exposed to /sys#26625

Open
supercomputer7 wants to merge 1 commit intoSerenityOS:masterfrom
supercomputer7:buggiebox-container-dont-mount-sysfs
Open

Userland: Prevent a BuggieBox container from being exposed to /sys#26625
supercomputer7 wants to merge 1 commit intoSerenityOS:masterfrom
supercomputer7:buggiebox-container-dont-mount-sysfs

Conversation

@supercomputer7
Copy link
Member

Relies on #26609.

/sys has lots of interesting information that an ordinary program in a
container session shouldn't really care about, such as possible major
and minor numbers of potentially exposed device files, etc.

It seems like we don't really need /sys at the moment, so there's no
harmful impact by this change.

The risk of keeping /sys is probably low anyway, because, for example,
a jailed process can't open most device files, even if it "sees" them
in /sys.
However, as another line of defense, let's just not mount /sys in such
environment, if possible.

/sys has lots of interesting information that an ordinary program in a
container session shouldn't really care about, such as possible major
and minor numbers of potentially exposed device files, etc.

It seems like we don't really need /sys at the moment, so there's no
harmful impact by this change.

The risk of keeping /sys is probably low anyway, because, for example,
a jailed process can't open most device files, even if it "sees" them
in /sys.
However, as another line of defense, let's just not mount /sys in such
environment, if possible.
@supercomputer7 supercomputer7 force-pushed the buggiebox-container-dont-mount-sysfs branch from 9f27604 to fc0e166 Compare March 14, 2026 13:58
@supercomputer7 supercomputer7 marked this pull request as ready for review March 14, 2026 13:58
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Mar 14, 2026
@spholz
Copy link
Member

spholz commented Mar 16, 2026

The commit category should be "Base:".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👀 pr-needs-review PR needs review from a maintainer or community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants