On Tuesday 09 March 2004 14:41, David Sapir wrote: > I have a Linux RH9, and I want to compile the kernel to add support for > encrypted file system (using the loop device). > My question is: How can I set all the parameters compiled in my current > kernel version (2.4.20-8) which came with the distribution? (This way I > will only change the encryption part and not all the kernel params)
Install the RedHat kernel source RPM (no, not SRPM, there's an RPM of the kernel sources), then go to /usr/src/linux-version/configs and you'll find the configuration files used to compile the RedHat supplied kernel. There are several config files suitable for SMP/UP, BIGMEM, no BIGMEM etc etc., so just cp the right one as .config and there you go. > Another question: What patch do I have to apply in order to get the > encryption working? I googled for it, but there is so much data I got > confused. Currently, when I perform the command "losetup -e aes-256 > /dev/loop0 .crypto" I get the error: "ioctl: LOOP_SET_STATUS: Invalid > argument". I understood that this means that the kernel does not support > encryption. Correct me if I'm wrong. Are you sure you need a patch and not just to enable support for that specific encryption scheme (AES) during "make menuconfig"? I wouldn't be surprised if RedHat came with the encryption options turned off because of American EAR regulations. Gilad -- Gilad Ben-Yossef <[EMAIL PROTECTED]> Codefidence. A name you can trust (TM) http://www.codefidence.com "I am Jack's Overwritten Stack Pointer" -- Hackers Club, the movie ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]