elogind service starts after sound device initialization, causing permission failures
Chưa có ai nhận issue này.
- #62626 của @eholzbach — đã đóng, không merge
Đá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
- Ít trao đổi
- Công nghệ
- linux
- Lĩnh vực
- devops, operating-systems
Hướng nghiên cứu
Bắt đầu bằng cách đọc /etc/sv/elogind/run và /usr/share/dbus-1/system-services/org.freedesktop.login1.service, sau đó kiểm tra /etc/sv/sddm/run phụ thuộc vào elogind và D-Bus như thế nào. Tái hiện trình tự khởi động và so sánh quyền của thiết bị trước và sau udevadm trigger --subsystem-match=sound. Được xem là hoàn tất khi elogind khởi động ổn định đủ sớm để các ACL của thiết bị âm thanh hoạt động, không làm hỏng SDDM hoặc tạo ra xung đột D-Bus/dịch vụ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Display Manager: SDDM
Desktop: KDE Plasma
On a fresh Void Linux installation with elogind, sound devices are created with incorrect permissions at boot, making them inaccessible to logged-in users. This occurs because elogind starts via D-Bus activation after udev has already processed sound devices.
Current Behavior:
At boot (before login):
crw------- 1 root root 116, 12 /dev/snd/controlC0
After manual udev trigger:
crw-rw----+ 1 root audio 116, 12 /dev/snd/controlC0
Void Linux ships elogind with only D-Bus activation enabled (/usr/share/dbus-1/system-services/org.freedesktop.login1.service)
No runit service is enabled by default (/var/service/elogind does not exist)
Boot sequence
- udev processes sound devices early in boot
- udev rules tag devices with uaccess (via /usr/lib/udev/rules.d/70-uaccess.rules
- elogind helper (/usr/libexec/elogind/elogind-uaccess-command) should set ACLs
- BUT elogind is not running yet (D-Bus hasn't activated it)
- Devices get root:root 600 permissions
User logs in → D-Bus now activates elogind → Too late, devices already processed
Sound devices remain inaccessible until manual udevadm trigger --subsystem-match=sound
Attempted Solutions:
ln -s /etc/sv/elogind /var/service/
Service fails to start because /etc/sv/elogind/run contains sv check dbus >/dev/null || exit 1, which fails with permission errors for non-root users. Meanwhile, D-Bus still auto-activates elogind, creating a conflict.
Option 2: Disable D-Bus activation + enable service
mv /usr/share/dbus-1/system-services/org.freedesktop.login1.service
/usr/share/dbus-1/system-services/org.freedesktop.login1.service.disabled
ln -s /etc/sv/elogind /var/service/
Result: SDDM fails to start resulting in no graphical login.
Any workarounds essentially lead me to either using rc.local with sleep and retrigger of udevadm, which is frankly a very bad solution, or rewriting the /etc/sv/sddm/run which I frankly think I shouldn't be doing.
I am not sure if this is even the correct repo to report this to, but this seems like a very obscure timing bug that should be probably looked into. If i am doing something wrong or have any suggestions how to fix this please let me know.
- Ngôn ngữ chính
- C
- Star
- 247
- Fork
- 67
- Merge trung bình
- 3 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của void-linux/void-runit
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
void-linux/void-runit#141 · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
void-linux/void-runit#127 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
void-linux/void-runit#125 · 4 bình luận ·
-
key file and source not passed to keyscriptCó thể đã có người làm @shaohme đã nhận 834 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
void-linux/void-runit#120 ·
-
Runit hangs at system rebootĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
void-linux/void-runit#119 · 7 bình luận ·
Tất cả issue của void-linux/void-runit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Research radar digest 2026-W42Đang mởresearch-radar
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Maintainer thường phản hồi trong vòng 1 ngày
-
wait.h with wrong descriptionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
"systemctl is-system-running --wait" may hang indefinitely for non-root usersCó thể đã có người làm @alexonea đã nhận hôm nay. Đang mởbug 🐛 systemctl
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
testing: DISK test reads the wrong directory entry offset on H89Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
FujiNetWIFI/fujinet-lib#115 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày