-Z has not been exercised with a real semanage

Đang mở
#385 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux, rust
Lĩnh vực
cli, operating-systems

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
18
Fork
10
Merge trung bình
22 giờ 6 phút
Pull request đã merge (30 ngày)
37

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của uutils/shadow

Tất cả issue của uutils/shadow

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.