Re: ? Encrypted multi-session CD-ROMs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim Sweet wrote:
> Whilst I am able to encrypt a single session using aespipe in the
> manner you describe, I remain unable to encrypt individual sessions.
> Trying to mount them invariably results in the error.
> 
>         mount: wrong fs type, bad option, bad superblock
> 
> Does anyone know if there is any reason why one should not be able to
> encrypt /individual sessions/ on a CDROM? I am using the
> international crypto, with the cryptoloop and cipher-aes modules.

Can you try this EXPERIMENTAL patch which is for loop-AES-v1.7e ?
I don't have any multisession CD-ROMs to test with, so I have to rely on
your testing efforts. Latest released loop-AES version is here:
http://loop-aes.sourceforge.net/loop-AES/loop-AES-v1.7e.tar.bz2

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD


--- loop.c-2.4.patched.old	Sat Aug 23 14:09:30 2003
+++ loop.c-2.4.patched	Fri Oct 10 18:03:43 2003
@@ -75,6 +75,7 @@
 #include <linux/smp_lock.h>
 #include <linux/swap.h>
 #include <linux/slab.h>
+#include <linux/cdrom.h>
 #ifdef CONFIG_SOFTWARE_SUSPEND
 #include <linux/suspend.h>
 #endif
@@ -1108,6 +1109,13 @@
 	case BLKROGET:
 	case BLKROSET:
 		err = blk_ioctl(inode->i_rdev, cmd, arg);
+		break;
+	case CDROMMULTISESSION:
+		err = -EINVAL;
+		if(lo->lo_backing_file && lo->lo_backing_file->f_dentry->d_inode->i_bdev) {
+			err = ioctl_by_bdev(lo->lo_backing_file->f_dentry->d_inode->i_bdev, CDROMMULTISESSION, arg);
+			figure_loop_size(lo);
+		}
 		break;
 	default:
 		err = lo->ioctl ? lo->ioctl(lo, cmd, arg) : -EINVAL;
-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux