Support Tails OS with persistent storage, firmware verification and Tails system verification
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- linux
调研方向
Start by reading the related Heads issues #1260, #1480, #1651, and #1873, plus the discussion in pull request #2153; the issue does not identify specific files or tests. Compare the two proposed Tails USB approaches, including how Heads verifies firmware and the Tails system partition and stores the HOTP counter and primary handle hash. Done means agreeing on a viable approach and implementing support for Tails persistent storage and system verification without verifying its changing storage partition.
由索引模型根据 Issue 内容生成。
描述
I would like to boot a Tails OS USB drive from Heads with
- a) Tails persistent storage
- b) TOTP/HOTP verification of Heads firmware
- c) and verification of the Tails system partition (no separate /boot partition).
Verification of the persistent storage partition on the USB drive is a non-goal as it will change during each usage.
As dual boot seems another complex story (https://tails.net/support/faq/index.en.html#permanent-install) let’s reduce it to Tails only without an internal hard drive.
Regarding Tails there are two options:
- Putting ISO + detached signature on a USB drive and create or mimic a persistent storage to achieve a) and c). TOTP/HOTP verification would have to become independent of a /boot partition to achieve b).
- Regular installation of Tails on a USB drive with persistent storage and treating it like an internal drive during Heads boot to store and find the primary handle hash, the HOTP counter, hashes signature etc.
In case 1. it is currently not possible to just load the ISO and create a persistent storage. I didn’t manage to manually create/copy an existing persistent storage and open it either.
Thus we would have to find a hack to create and open a persistent storage when booting from a verified Tails ISO. Anyway, we would still have to find a place to store the primary handle hash and the HOTP counter. Maybe in the TPM? (https://github.com/linuxboot/heads/issues/1260)
In case 2. we would need Heads to treat an external drive as an internal one as discussed here https://github.com/linuxboot/heads/issues/1873#issuecomment-2540552084. But even then Tails installed writing e.g. an .img file with dd does not have a separate /boot partition. Also, I have not yet tested how Tails reacts to storing extra kexec_*.txt files under / in the system partition.
2. has the advantage that the Tails USB would be completely bootable from a non-Heads machine, which is currently not the case with a USB that contains an ISO and a detached signature, but is not bootable.
Why does Heads actually expect a separate /boot partition? Would it be an option to write all the kexec_*.txt files on the system partition? This partition by design should not change barring Tails updates.
I considered installing Tails on an internal drive but the FAQ discourages it:
https://tails.net/support/faq/index.en.html#permanent-install
I am motivated to put work into this, incl. Into the related issues such as getting rid of the dependency of TOTP/HOTP verification on a /boot partition.
- https://github.com/linuxboot/heads/issues/1651
- https://github.com/linuxboot/heads/pull/2153
- https://github.com/linuxboot/heads/issues/1480
Before I get started I would like to get some feedback and ideas on what seems to be the most promising approach.
- 主要语言
- Makefile
- 星标
- 1.6k
- 派生
- 211
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
linuxboot/heads 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 1/5 1 小时以内 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 64/100
-
help wanted security SMM upstream
难度 5/5 一周以上 新手友好度 25/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
microsoft/azurelinux#19102 · 1 条评论 ·
维护者通常 1 天内回复
-
Lid close does not lock the session on Apple Silicon (lid-close bind skips omarchy-system-lid-close)未关闭
难度 1/5 1-3 小时 新手友好度 90/100
omacom/omarchy-mac#701 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
-
fix(storage): preserve oversized historical logs during boot migration可能已有人在做 @joshuajbouw 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
astrid-runtime/astrid#2094 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
riscv-software-src/riscv-isa-sim#2466 ·
维护者通常 1 天内回复