Bug#983861: k3b: Permissions of external program should be of group "cdrom" and not "operator"
Package: k3b
Version: 20.12.2-1
Severity: normal
Tags: patch
Dear Maintainer,
With k3b, when wanting to set the external program permissions, it wants to
set
them with user "operator" instead of "cdrom" which may be more adequate
according to the description of the groups in
https://wiki.debian.org/SystemGroups
- operator: Operator was (historically) the only 'user' account that could
login remotely.
- cdrom: This group can be used locally to give a set of users access to a
CDROM drive and other optical drives.
This will patch k3b to use "cdrom" instead.
BTW, in buster, permissions used to be set to "root.root". I don't know why
it's not the same since that piece of code didn't change.
-- Package-specific info:
Device was not specified. Trying to find an appropriate drive...
Detected CD-R drive: /dev/cdrw
Using /dev/cdrom of unknown capabilities
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identification : 'DVD+-RW GSA-H31L'
Revision : 'W618'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (991, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages k3b depends on:
ii cdparanoia 3.10.2+debian-13.1
ii cdrdao 1:1.2.4-2
ii genisoimage 9:1.1.11-3.2
ii k3b-data 20.12.2-1
ii kio 5.78.0-4
ii libc6 2.31-9
ii libk3b7 20.12.2-1
ii libkf5archive5 5.78.0-2
ii libkf5authcore5 5.78.0-2
ii libkf5bookmarks5 5.78.0-2
ii libkf5cddb5 4:20.12.0-1
ii libkf5completion5 5.78.0-3
ii libkf5configcore5 5.78.0-4
ii libkf5configwidgets5 5.78.0-2
ii libkf5coreaddons5 5.78.0-2
ii libkf5i18n5 5.78.0-2
ii libkf5iconthemes5 5.78.0-2
ii libkf5jobwidgets5 5.78.0-2
ii libkf5kcmutils5 5.78.0-3
ii libkf5kiocore5 5.78.0-4
ii libkf5kiofilewidgets5 5.78.0-4
ii libkf5kiowidgets5 5.78.0-4
ii libkf5newstuff5 5.78.0-2
ii libkf5notifications5 5.78.0-2
ii libkf5notifyconfig5 5.78.0-2
ii libkf5service-bin 5.78.0-2
ii libkf5service5 5.78.0-2
ii libkf5solid5 5.78.0-2
ii libkf5widgetsaddons5 5.78.0-2
ii libkf5xmlgui5 5.78.0-2
ii libqt5core5a 5.15.2+dfsg-4
ii libqt5dbus5 5.15.2+dfsg-4
ii libqt5gui5 5.15.2+dfsg-4
ii libqt5webkit5 5.212.0~alpha4-11
ii libqt5widgets5 5.15.2+dfsg-4
ii libqt5xml5 5.15.2+dfsg-4
ii libstdc++6 10.2.1-6
ii udisks2 2.9.2-1
ii wodim 9:1.1.11-3.2
Versions of packages k3b recommends:
ii dvd+rw-tools 7.1-14+b1
ii growisofs 7.1-14+b1
ii libk3b7-extracodecs 20.12.2-1
ii vcdimager 2.0.1+dfsg-5
Versions of packages k3b suggests:
pn k3b-extrathemes <none>
ii k3b-i18n 20.12.2-1
ii kde-config-cddb 4:20.12.0-1
pn movixmaker-2 <none>
ii normalize-audio 0.7.7-16
ii sox 14.4.2+git20190427-2
-- no debconf information
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
k3b (20.12.2-1.0~fab1) UNRELEASED; urgency=medium
.
* Personnal changelog entry 03/02/21 11:53:38
Author: Anonymous <fake@domain.tld>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2021-03-02
--- k3b-20.12.2.orig/src/option/k3bexternalbinwidget.cpp
+++ k3b-20.12.2/src/option/k3bexternalbinwidget.cpp
@@ -152,9 +152,7 @@ K3b::ExternalBinWidget::ExternalBinWidge
while (::group *g = ::getgrent()) {
const QString groupName = QString::fromLocal8Bit(g->gr_name);
- if (groupName == "cdrom" ||
- groupName == "optical" ||
- groupName == "operator" ) {
+ if (groupName == "cdrom") {
m_permissionModel->setBurningGroup(groupName);
}
}
Reply to: