LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-09-2004, 01:08 AM   #1
AshesOfTime
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, 03:48 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
  


Reply


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 09:16 AM
How to use kgpg to encrypt and decrypt emails? ginda Linux - Security 6 03-16-2005 09:42 PM
Initrd.img spaguzz Linux - Software 1 12-09-2004 03:21 PM
booting vmlinuz/initrd from a bootloader bob_man_uk Linux - General 4 04-07-2004 09:47 PM
2048-bit encrypt/decrypt help Nappa Slackware 1 11-20-2003 11:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:48 AM.

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