Request to enable CONFIG_PERSISTENT_KEYRINGS in the kernel

未关闭 适合新手
#7,822 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
c, linux, raspberry-pi

调研方向

首先找到内核配置中 CONFIG_PERSISTENT_KEYRINGS 的配置项,并检查 CONFIG_KEYS 是否仍处于启用状态。在 Raspberry Pi 上运行 keyctl get_persistent @s,并检查 /boot/config-$(uname -r),以确认当前行为。当生成的配置中出现 CONFIG_PERSISTENT_KEYRINGS=y,且 keyctl 命令返回持久 keyring ID 时,即表示此更改已完成。

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

描述

Describe the bug

This is a configuration request, there is no bug per-se. I didn't see another option.

Currently CONFIG_PERSISTENT_KEYRINGS is disabled. CONFIG_KEYS is enabled but without PERSISTENT it does not persist beyond the specific execution. This causes unnecessary repeated calls to password manager tools for each execution which can have issues with API call limits and the such. Allowing a fetch to persist would avoid this complexity and noise.

Most other linux hosts I am aware of already support this option and have it enabled.

Steps to reproduce the behaviour
  1. On a Pi running the current kernel, run ( keyutils)
keyctl get_persistent @s

RESULT:

keyctl_get_persistent: Operation not supported

DESIRED:

##########  

Where ########## is a keyring id like 1035441336

  1. check config
grep PERSISTENT_KEYRINGS /boot/config-$(uname -r)

RESULT:

# CONFIG_PERSISTENT_KEYRINGS is not set

DESIRED:

CONFIG_PERSISTENT_KEYRINGS=y
Device (s)

Raspberry Pi 3 Mod. B, Raspberry Pi 4 Mod. B, Raspberry Pi 5

System

Tested on 3b, 4b, and 5 pi's

Logs

No response

Additional context

No response

主要语言
C
星标
13.4k
派生
5.5k
平均合并
1 天 8 小时
30 天内合并 PR
37

环境准备

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

从这里开始

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

raspberrypi/linux 的其他 Issue

查看 raspberrypi/linux 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

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