Bug 462719

Summary: k3b should check device ACLs before warning about needing full access to device nodes
Product: [Applications] k3b Reporter: David Korth <gerbilsoft>
Component: generalAssignee: K3b Bugs <k3b-bugs-null>
Status: REPORTED ---    
Severity: minor CC: michalm, trueg
Priority: NOR    
Version First Reported In: 22.08.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Korth 2022-12-06 19:35:31 UTC
On my system, when connecting a USB optical drive (Pioneer BDR-XD07B), K3b's Optical Devices settings shows the following warning:

"In order to give K3b full access to the writer device the current user needs be added to a group cdrom."

/dev/sr0's permissions:
brw-rw----+ 1 root cdrom 11, 0 Dec  6 14:29 /dev/sr0

The device node also has an ACL set that grants my user account full access:
$ getfacl /dev/sr0
getfacl: Removing leading '/' from absolute path names
# file: dev/sr0
# owner: root
# group: cdrom
user::rw-
user:david:rw-
group::rw-
mask::rw-
other::---

K3b should check if the device node has a matching ACL and, if so, suppress the warning about not being in the cdrom group.

STEPS TO REPRODUCE
1. Have /dev/sr0 with the above permissions and similar ACL.

OBSERVED RESULT
K3b warns that the user needs to be in the cdrom group for full access.

EXPECTED RESULT
K3b should not show a warning, since the user has full access due to the ACL.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100
Qt Version: 5.15.7