Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Regression in latest SLR betas and steamrt3c Steam Client if using pam_tmpdir or pam_mktemp

未关闭
#855 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

已经有一个关联 PR 被合并了。

  • #807 来自 @smcv —— 已合并

评估

难度
4/5
预计耗时
3-5 天
新手友好度
40/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
linux, shell

调研方向

The issue is about bubblewrap (bwrap) 0.12.0 failing when PAM modules like pam_tmpdir set TMPDIR to a directory with unusual permissions. Start by examining the steam-runtime's srt-bwrap integration and the linked bubblewrap issue #806. Reproduce the failure with the given shell commands, then look at bwrap's source code around directory creation and permission handling. The fix likely involves modifying bwrap's handling of bind mounts for directories with restricted parent traversal permissions.

由索引模型根据 Issue 内容生成。

描述

After updating the Steam Runtime's internal copy of bubblewrap (srt-bwrap) to 0.12.0, launching its containers no longer works on a system with Debian's pam_tmpdir, or with OpenWall's pam_mktemp as packaged by Gentoo. Despite being unrelated codebases, these two are basically equivalent: they're implementations of the same idea.

These PAM modules create a restricted parent directory that ordinary users can traverse through, but not list (this is unusual!), and then a per-user private temp directory inside that, and set TMPDIR (among other environment variables) to that per-user directory. The same effect can be reproduced on a test system with something like this:

sudo mkdir -m711 /tmp/private
sudo install -d -o$(id -nu) -g$(id -ng) -m1770 /tmp/private/$(id -nu)
# the PAM module would do the equivalent of: export TMPDIR=/tmp/private/$(id -nu)

bwrap --ro-bind / / --bind "/tmp/private/$(id -nu)" "/tmp/private/$(id -nu) -- true

With older bwrap builds, this worked. With a newer bwrap build, it fails with bwrap: Can't mkdir parents for /tmp/private/user: Permission denied. This is tracked as https://github.com/containers/bubblewrap/issues/806 in bwrap.

Affected versions

Steam Linux Runtime betas dated x.0.20260914.y are affected.

The experimental steamrt3c Steam Client is not currently affected, but its next beta probably will be.

Workarounds
  • Don't use pam_tmpdir or pam_mktemp
  • Or set all of the environment variables TMP, TMPDIR, TEMP and TEMPDIR to an existing directory whose parent directories are all readable (for example $HOME/tmp, /tmp or /var/tmp) before starting Steam
主要语言
Shell
星标
1.5k
派生
97
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ValveSoftware/steam-runtime 的其他 Issue

查看 ValveSoftware/steam-runtime 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。