Request to enable CONFIG_PERSISTENT_KEYRINGS in the kernel

Aperta Adatta ai principianti
#7,822 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c, linux, raspberry-pi

Direzione di ricerca

Inizia cercando la voce di configurazione del kernel per CONFIG_PERSISTENT_KEYRINGS e verifica che CONFIG_KEYS rimanga abilitata. Su un Raspberry Pi, esegui keyctl get_persistent @s e controlla /boot/config-$(uname -r) per confermare il comportamento attuale. La modifica è completa quando CONFIG_PERSISTENT_KEYRINGS=y compare nella configurazione generata e il comando keyctl restituisce un ID di keyring persistente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C
Stelle
13.4k
Fork
5.5k
Merge medio
1g 8h
PR unite (30g)
37

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di raspberrypi/linux

Tutte le issue di raspberrypi/linux

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.