Allow running Steam without Pressure Vessel / Bubblewrap
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- linux, shell
- Lĩnh vực
- operating-systems, security
Hướng nghiên cứu
The issue names no source files. Start from the bwrap errors (Can't mount proc on /newroot/proc, Creating new namespace failed) and the Podman run command, which reproduces them without the seccomp, AppArmor and unmask overrides. Done would be a maintainer-approved opt-in that skips Pressure Vessel inside an existing container, with a documented warning, and a run that works without those three security-opt exceptions. The design is still open, so agree the approach before writing code.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello.
Description
I'm trying to run Steam inside a rootless Podman container on Ubuntu.
My goal is to keep the container's normal security restrictions enabled while running Steam and Proton.
Here is the Podman command I use to create my container:
#!/bin/bash
XAUTH="${XAUTHORITY:-$HOME/.Xauthority}"
UID_HOST="$(id -u)"
RUNTIME="/run/user/$UID_HOST"
# --userns=keep-id \ --user 1000:1000 \
podman run --rm -it \
--name app-sandbox \
-e DEBIAN_FRONTEND=noninteractive \
-e TZ=Europe/Paris \
--shm-size=1g \
--security-opt=no-new-privileges \
--pids-limit=256 \
--device nvidia.com/gpu=all \
\
-v "$(realpath ./container_home):/root:rw" \
\
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-v "$XAUTH":/tmp/.Xauthority:ro \
--hostname="$(hostname)" \
-e DISPLAY="$DISPLAY" \
-e XAUTHORITY=/tmp/.Xauthority \
\
-v "$RUNTIME/pipewire-0:$RUNTIME/pipewire-0" \
-v "$RUNTIME/pulse:$RUNTIME/pulse" \
-e XDG_RUNTIME_DIR="$RUNTIME" \
-e PULSE_SERVER="unix:$RUNTIME/pulse/native" \
\
-w /root \
ubuntu:26.04 /bin/bash
The container uses:
- Rootless Podman.
crun.no-new-privileges.- The default seccomp and AppArmor restrictions.
- NVIDIA GPU access through CDI.
- X11 for display.
- PipeWire/PulseAudio for sound.
The problem
Steam uses Pressure Vessel, which relies on Bubblewrap to create an additional sandbox for games.
Inside the Podman container, Bubblewrap encounters problems when creating namespaces and mounting /proc.
The errors I encountered include:
bwrap: Can't mount proc on /newroot/proc: Operation not permitted
bwrap: Creating new namespace failed: Operation not permitted
I managed to get Steam running, but only by adding the following security exceptions:
--security-opt=seccomp=unconfined
--security-opt=apparmor=unconfined
--security-opt='unmask=/proc/*'
I don't want to use these options. They weaken the container's security just to allow Steam to create another sandbox inside it.
What I would like
Please provide an officially supported way to disable Pressure Vessel / Bubblewrap when Steam is running inside an existing container.
For example, an environment variable or launch option that allows Steam to launch games directly in the container environment, without attempting to create another sandbox.
This should be an explicit opt-in, with a warning that games will no longer receive Pressure Vessel's additional isolation.
I understand the purpose of Pressure Vessel and why Steam normally uses it. However, when Steam is already running inside a container, users should be able to rely on the isolation provided by Podman instead.
I don't want to:
- Run a privileged container.
- Share the host PID namespace.
- Disable seccomp.
- Disable AppArmor.
- Unmask
/proc.
The goal is to run Steam and Proton inside a normal rootless Podman container while keeping the container's security restrictions enabled.
- Ngôn ngữ chính
- Shell
- Star
- 1.5k
- Fork
- 98
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ValveSoftware/steam-runtime
-
Runtime 4 on AArch64: diagnostic for loaded libraries in the first bubblewrap prerequisite childĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
ValveSoftware/steam-runtime#875 ·
-
Pressure Vessel
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ValveSoftware/steam-runtime#873 · 4 bình luận ·
-
A Vulkan game fails to render when Steam uses the integrated GPU and the game uses the dedicated GPUĐang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 42/100
ValveSoftware/steam-runtime#872 · 25 bình luận ·
-
Nov 12th Steam Update Breaks Compatibility with any game that uses a dedicated GPU on Linux.Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
ValveSoftware/steam-runtime#871 · 13 bình luận ·
-
Pressure Vessel
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ValveSoftware/steam-runtime#867 · 8 bình luận ·
Tất cả issue của ValveSoftware/steam-runtime
Issue tương tự
-
kind/bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kubeflow/sdk#998 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
linuxserver/docker-healthchecks#137 · 1 bình luận ·
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue type/ci
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 81/100
c-w-z/commit-decision-record#20 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug compatibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
omacom/omarchy#20525 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày