Fedora Linux Support Community & Resources Center
  #1  
Old 14th August 2008, 01:47 PM
itachi Offline
Registered User
 
Join Date: Nov 2006
Posts: 78
Transparent CSS Decryption

Hi, i thought about this for quite a long time ( few months) and tried several approaches (in Theory). Is there a good way to write a Kernel-module that helps (on the Kernel Layer) to decrypt DVDs without extra programs.
What im trying is following: Insert my own Kernel-module(better based on an existing Module which i just modify) and dump an encrypted DVD just with dd like:
Code:
dd if=/dev/dvd of=~/dvd.iso bs=2048
Basically, i'd like to do the same thing AnyDVD does in Windows. As far as i'm understanding this is that Anydvd is a "Filter Driver" that filters the Encrypted Data stream, decrypts it and sends it to whatever device.
-> You can just copy a DVD via the File Browser.
My problem is that in Linux/Unix does not exist this Filterdriver concept.
I came up with 3 approaches:
1: insert some of the DeCSS code into the VFS code( .. check if the Filesystem that is to be read UDF .. parse the data through DeCSS etc.).
Problem .. the VFS Code is in the Kernel, not extra as a Module - I'd like to write it in a way that it is reusable for others easily.
2: insert the DeCSS code into the UDF driver.
Problem: The Source is Waaay to complex for me right now (i have no idea where i should insert the DeCSS code) - don't know if it is even possible.
3: A new Device that accesses the /dev/dvd device.
Problem: I need to learn how to write a Kernel module from scratch ( which means, I need to read a decent book about this .. costs me a few months .. don't have so much time to read so much about this topic).
Any good suggestions?
Thx.

Last edited by itachi; 29th August 2008 at 12:32 AM.
Reply With Quote
  #2  
Old 29th August 2008, 12:31 AM
itachi Offline
Registered User
 
Join Date: Nov 2006
Posts: 78
Hmmm, i know it's not nice to doublepost. But those 100 people that read this thread; is there really no one who attempted something like this, or has any hints?
Reply With Quote
  #3  
Old 29th August 2008, 01:39 AM
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 4,752
I'm one of those people that read your post...

And thought to myself

"Why would you.... hmm... maybe I'm just not smart enough to see the point?"

I've just never had to do anything with a DVD ( copy, play, record ) that made me think it would be so much better if it was a part of the kernel instead of a normal program or library.

I guess I'm just not seeing the big picture or the potential benefits, features of that approach. Maybe if you list a few it would help.
Reply With Quote
  #4  
Old 29th August 2008, 11:12 PM
itachi Offline
Registered User
 
Join Date: Nov 2006
Posts: 78
1: I just got the idea that i'd like to implement something like this. To be honest i felt like coding something "cool" over the summer holidays until the new semester starts at the university. I guess it's a little experiment to test my knowledge/programming skills a bit (unfortunately for now, it's an Epic Fail).
2: It would be easier to just dump a DVD via dd / copy the vob files directly.
3: No extra ripping software needed ( you can copy the dvd like it's not copy protected)
4: .. don't know .
Basically, it's my effort to kill time a bit, by doing something that may be a bit useful for me.

Last edited by itachi; 29th August 2008 at 11:15 PM.
Reply With Quote
  #5  
Old 9th September 2008, 05:53 PM
Scott_fakename Offline
Registered User
 
Join Date: Feb 2008
Posts: 23
I don't know, do you really want to clutter up your kernel with things that really don't need to be in the kernel? Using DD to copy a disk would be kind of nice, but it's no easier than using, say dvd decrypter. (I don't know any linux DVD copying tools)

It just seems like it's a lot more trouble than it needs to be.

--Scott
Reply With Quote
  #6  
Old 28th September 2008, 07:15 AM
libit Offline
Registered User
 
Join Date: Sep 2008
Posts: 1
Good idea

Hi Itachi,

first of all, I ended up in this forum because I WAS LOOKING for a decss dvd driver, so clearly I think it would be useful.
In my case the motivation is that there are some linux based media players that use a sigmatel cpu and that cannot do decss. In fact there are usually 2 versions of this sigmatel cpu: one with decss and one without. If you get the one without decss you cannot play original dvds.

The best place to implement this, in my opinion, would be the UDF driver but I agree that it might be quite difficult and probably not accepted into official kernels.
Another idea that comes to mind is that it might be possible to do this using the loopback driver (which is sometimes used to implement encrypted filesystems).
Reply With Quote
  #7  
Old 3rd October 2008, 05:55 PM
itachi Offline
Registered User
 
Join Date: Nov 2006
Posts: 78
Well, there is now way that they would put my maybe modified version of the UDF Driver into the official Kernel, not to mention that this is not my intention. I'll give you details as soon as i have free time to tinker around with that topic again.
@Scott_fakename: It's my decision to clutter up my kernel and as i've already written, i just wanted try this, so i don't care if it will be useful to anybody or not. In libit's case, it may be useful - a good reason to try it anyway.
Reply With Quote
Reply

Tags
css, decryption, transparent

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transparent Screensaver mrbort Using Fedora 0 13th October 2009 10:05 PM
transparent proxy av1611 Servers & Networking 1 10th September 2008 09:26 AM
Disappearing Decryption? ryptyde Wibble 1 21st May 2007 12:39 AM
decryption does not create file HELP! newbie2fedora Using Fedora 0 29th July 2005 08:46 AM
Transparent Windows LackeyLad Installation and Live Media 11 28th February 2004 09:28 AM


Current GMT-time: 22:07 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat