Allow running Steam without Pressure Vessel / Bubblewrap

オープン
#876 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
linux, shell

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Shell
スター
1.5k
フォーク
98
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ValveSoftware/steam-runtime のほかの issue

ValveSoftware/steam-runtime の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。