-Z has not been exercised with a real semanage

Aperta
#385 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux, rust

Direzione di ricerca

Start by reading the useradd -Z, usermod -Z, and userdel -Z handling for semanage login, including the --selinux-range paths. Exercise them on an SELinux-enforcing host with a real semanage, then check the exit codes when it fails and the userdel -Z -P refusal. Done when the failure codes are established and that refusal prints a message.

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

Descrizione

useradd -Z, usermod -Z and userdel -Z (and --selinux-range) run semanage login. Tests cover the arguments and failure handling only: semanage itself has never been run, and nothing has run on an SELinux kernel.

To do:

  • exercise them on an SELinux-enforcing host;
  • establish the exit code when semanage fails. 14 for useradd and 1 for usermod and userdel were chosen, not probed;
  • userdel -Z with -P is refused with a bare exit 2 and no message: add one.

Reference: Ubuntu 26.04 passwd 1:4.17.4-2ubuntu3. shadow-rs: main at 92ac29b.

Lingua principale
Rust
Stelle
18
Fork
10
Merge medio
1g 15m
PR unite (30g)
37

Preparare l'ambiente

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 uutils/shadow

Tutte le issue di uutils/shadow

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.