Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60756 - Patch from the lkml to use cdrecord with gentoo-dev-sources >= 2.6.8
Summary: Patch from the lkml to use cdrecord with gentoo-dev-sources >= 2.6.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://lkml.org/lkml/2004/8/16/104
Whiteboard:
Keywords:
: 60536 60868 61614 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-18 04:01 UTC by Brice Arnould (un_brice)
Modified: 2004-08-26 00:51 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brice Arnould (un_brice) 2004-08-18 04:01:40 UTC
Since this new kernel, one need to be root in order to use cdrecord.
The problem come from a new future of this kernel, wich filter scsi commands
to prevent a normal user from flashing the burner or doing others bad things (tm).
The problem is that the actual filter is too restrective and prevent normal
apps from working. The patch at http://lkml.org/lkml/2004/8/16/104 simply
disable it.
Comment 1 Curtis Campbell 2004-08-18 10:21:16 UTC
here is the patch con kolivas is using for this issue:

http://ck.kolivas.org/patches/2.6/2.6.8.1/2.6.8.1-ckdev/cddvd-cmdfilter-drop.patch
Comment 2 Tavis Ormandy (RETIRED) gentoo-dev 2004-08-19 05:33:46 UTC
*** Bug 60868 has been marked as a duplicate of this bug. ***
Comment 3 Eric Shattow 2004-08-20 19:02:58 UTC
confirmed.  http://marc.theaimsgroup.com/?l=linux-kernel&m=109265946604538&w=2

"cdrecord needs to hold the CAP_SYS_RAWIO capability. It issues unsafe
operations on the scsi device." [debian bug #266009]
Comment 4 Lars Weiler (RETIRED) gentoo-dev 2004-08-21 21:06:02 UTC
*** Bug 60536 has been marked as a duplicate of this bug. ***
Comment 5 Michal Januszewski (RETIRED) gentoo-dev 2004-08-24 11:51:20 UTC
The patch is included in g-d-s-2.6.8-r2, but it will not stay there forever. Once this stuff is stabilized (I'm talking 2.6.9 here), the patch will be dropped and we'll stick which whatever mainstream kernel uses.
Comment 6 Marc Ballarin 2004-08-24 15:15:05 UTC
Be aware that this kernel change will require major changes in lot of apps (after a final solution to filtering has been found).

cdrecord is well designed and could probably be fixed rather easily (It probably won't get fixed upstream soon ;-)

dvd+rw-tools is rather small and will hopefully get fixed as well.

k3b is a mess. It is in no shape for setuid-root operation. It probably needs to be split up. (k3b is no simple frontend. It issues some SCSI commands itself.)

Don't know about dvdrtools, cdparanoia and other tools.
Comment 7 Lars Weiler (RETIRED) gentoo-dev 2004-08-24 21:19:07 UTC
> Don't know about dvdrtools, cdparanoia and other tools.

You forgot cdrdao.  It's also small, but the maintainers are sometimes not really active.

Nevertheless I really appreciate that the patch did it to our sources.  I hope that there will be an overall solution to this really messed up situation with cdwriting on linux.  That's no fun any more.
Comment 8 Miroslav Šulc gentoo-dev 2004-08-26 00:51:17 UTC
*** Bug 61614 has been marked as a duplicate of this bug. ***