Skip to content

udev: mark optical drives UDISKS_IGNORE (quiet + harden)#377

Open
assisted-by-ai wants to merge 1 commit into
Kicksecure:masterfrom
org-ai-assisted:udisks-ignore-optical
Open

udev: mark optical drives UDISKS_IGNORE (quiet + harden)#377
assisted-by-ai wants to merge 1 commit into
Kicksecure:masterfrom
org-ai-assisted:udisks-ignore-optical

Conversation

@assisted-by-ai

Copy link
Copy Markdown
Contributor

udisks auto-probing removable optical media (sr*) is noisy -- on a drive with no or inert media (e.g. a VM CD-ROM) it errors repeatedly (udisksd: Error probing device: Error sending ATA command IDENTIFY PACKET DEVICE to /dev/sr0) -- and is avoidable attack surface: inserted media should not be auto-processed without user action. This adds a udev rule marking optical drives UDISKS_IGNORE.

Does NOT affect booting the live ISO from optical media: rd.live mounts the medium in the initramfs, not via userspace udisks.

Found via systemcheck --leak-tests headless in qemu. Not yet runtime-validated on a rebuilt image.

AI-Assisted.

udisks auto-probing removable optical media (sr*) is noisy -- on a drive with no
or inert media (e.g. a VM CD-ROM) it errors repeatedly ('udisksd: Error probing
device: Error sending ATA command IDENTIFY PACKET DEVICE to /dev/sr0') -- and is
avoidable attack surface: inserted media should not be auto-processed without
user action. Add a udev rule marking optical drives UDISKS_IGNORE. This does NOT
affect booting the live ISO from optical media: rd.live mounts the medium in the
initramfs, not via userspace udisks. (AI-Assisted.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant