View the Most Wanted LQ Wiki articles.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-09-2004, 02:08 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 7

Rep: Reputation: 0
how to encrypt initrd.img and decrypt in vmlinuz.

so that I can prevent sb. to mount the initrd.img and protect my application in it.

I need to know:
1.which source files in kernel should I rewrite.
2.where is the initrd.img put in without file system,so that I can read it and decrypt.
3.where should I put the decrypted initrd.img so that it can be unzip properly.

thanks a lot.
Old 12-09-2004, 04:48 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,547

Rep: Reputation: 160Reputation: 160
Any partition/file can be mounted manually only by root. So if someone wants to mount it - must get the account/password.

What you can do is to encrypt the file (or keep it on an encrypted filesystem). But...from what I have deen the decryption is used during the init stage, so long after using initrd. Maybe there's an easy way to have encrypted initrd, but I have not seen one.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 10:16 AM
How to use kgpg to encrypt and decrypt emails? ginda Linux - Security 6 03-16-2005 10:42 PM
Initrd.img spaguzz Linux - Software 1 12-09-2004 04:21 PM
booting vmlinuz/initrd from a bootloader bob_man_uk Linux - General 4 04-07-2004 10:47 PM
2048-bit encrypt/decrypt help Nappa Slackware 1 11-20-2003 12:04 PM

All times are GMT -5. The time now is 06:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration