Request to enable CONFIG_PERSISTENT_KEYRINGS in the kernel

Open Beginner friendly
#7,822 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
c, linux, raspberry-pi

Research direction

Start by finding the kernel configuration entry for CONFIG_PERSISTENT_KEYRINGS and checking that CONFIG_KEYS remains enabled. On a Raspberry Pi, run keyctl get_persistent @s and inspect /boot/config-$(uname -r) to confirm the current behavior. The change is done when CONFIG_PERSISTENT_KEYRINGS=y appears in the generated config and the keyctl command returns a persistent keyring ID.

Written by the indexing model from the issue text.

Description

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

Dominant language
C
Stars
13.4k
Forks
5.5k
Avg merge
1d 8h
Merged PRs (30d)
37

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.