LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-15-2006, 02:12 PM   #1
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Rep: Reputation: 15
add aes /proc/crypto to permanently


My Fedora has this /proc/crypto:

name : md5
module : kernel
type : digest
blocksize : 64
digestsize : 16

name : sha1
module : kernel
type : digest
blocksize : 64
digestsize : 20

To add aes I have to do
# modprobe aes

I read that Debian systems have /etc/modules to add aes permanently to /proc/crypto. How can I do it in Fedora?
 
Old 07-16-2006, 10:20 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Probably just add a line in /etc/modules.conf.
If it already contains any crypto lines you could add for instance:
Code:
post-install crypto modprobe aes >/dev/null 2>&1 || :
 
Old 07-16-2006, 03:58 PM   #3
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Original Poster
Rep: Reputation: 15
missing /etc/modules.conf

My problem is that /etc/modules.conf (or /etc/modules) doesn't exist.
Could it be that it is replaced by /etc/modprobe.conf in my distro?
Code:
$ cat /etc/modprobe.conf
alias eth0 natsemi
alias snd-card-0 snd-ali5451
options snd-card-0 index=0
options snd-ali5451 index=0
remove snd-ali5451 { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/m                                           odprobe -r --ignore-remove snd-ali5451
alias usb-controller ohci-hcd
This is Linux 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 athlon i386 GNU/Linux
Thanks again.
 
Old 07-16-2006, 04:19 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Could it be that it is replaced by /etc/modprobe.conf in my distro?
No, it's a kernel 2.6 thing not distro-specific. Could try and pick one of the crypto modules that's listed (lsmod) and try to make a post-install line for that.
 
Old 07-16-2006, 05:54 PM   #5
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Original Poster
Rep: Reputation: 15
Sorry, I'm not sure to understand
Quote:
$ /sbin/lsmod | grep md5
md5 4033 1
# post-install crypto modprobe md5 >/dev/null 2>&1 || :
but the last command doesn't show anything in the command line. Is it supposed to show where are the modules listed instead of in /etc/modules.conf?
 
Old 07-16-2006, 06:05 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
the last command doesn't show anything in the command line.
It's used by modprobe only (man modprobe for more info).
Adding this line to modprobe.conf should do I think:
Code:
post-install md5 modprobe aes >/dev/null 2>&1 || :
 
Old 07-20-2006, 03:27 AM   #7
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Original Poster
Rep: Reputation: 15
Adding
Quote:
post-install md5 modprobe aes >/dev/null 2>&1 || :
to /etc/modprobe.conf triggered this warning at boot time:
'Ignoring bad line at /etc/modprobe.conf...'
I had to remove it. I'm an ignorant but doesn't /etc/modprobe.conf concerns hardware?
Thanks.
 
Old 07-20-2006, 05:26 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
doesn't /etc/modprobe.conf concerns hardware?
AFAIK modprobe handles *anything* that pertains module loading and unloading. If I got the syntax wrong you can surely look it up in the mod.* manpages and post the solution here I hope.
 
  


Reply



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
permanently add static route glock19 Linux - Networking 27 07-27-2015 04:59 PM
/proc/stat values don't add up ! mike0w Linux - General 0 10-25-2005 05:01 AM
How to permanently add localhost via xhost? h00chman Linux - Newbie 1 04-23-2004 11:57 PM
how to permanently add route? rob99 Linux - Networking 5 07-19-2003 06:39 AM
Permanently set "route add" -host and default gw sacants Linux - Newbie 1 07-18-2003 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:08 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