Skip to content

修复 systemd 的内核日志、journal ACL 和关机信号 - #50

Merged
Leonmmcoset merged 2 commits into
mainfrom
rewrite/new-os
Dec 3, 2026
Merged

Leonmmcoset merged 2 commits into
mainfrom
rewrite/new-os

Conversation

@VasilyZa

@VasilyZa VasilyZa commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

变更

  • 实现 Linux /dev/kmsg 记录读取、非阻塞语义和 poll/epoll 通知,让 journald 收集内核日志。
  • 为 ext2、ext3 和 ext4 接入 POSIX ACL 的存储、访问检查、chmod 同步和默认继承,使普通用户可读取自己的 journal。
  • 实现 kill(-1, sig) 广播并逐进程检查权限,覆盖 systemd 关机使用的 SIGSTOP 和 SIGCONT。

验证

  • Release 内核增量编译通过。QEMU/KVM 的三项 ABI 回归通过,确认 journald 收录内核日志、普通用户可读取自己的 journal,系统正常关机。
  • ext 文件系统的宿主回归和磁盘格式互操作验证通过。
  • 分支推送 CI 的宿主回归出现失败,涉及输入和 cgroup 测试。 GitHub Actions 日志
  • signal_address_space 的断言在基线与本分支均可复现。VMware 待验证。

@Leonmmcoset
Leonmmcoset merged commit 0ed5322 into main Dec 3, 2026
2 checks passed
@Leonmmcoset
Leonmmcoset deleted the rewrite/new-os branch December 3, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants