LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   add aes /proc/crypto to permanently (https://www.linuxquestions.org/questions/linux-security-4/add-aes-proc-crypto-to-permanently-464352/)

Melsync 07-15-2006 02:12 PM

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?

unSpawn 07-16-2006 10:20 AM

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 || :

Melsync 07-16-2006 03:58 PM

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.

unSpawn 07-16-2006 04:19 PM

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.

Melsync 07-16-2006 05:54 PM

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?

unSpawn 07-16-2006 06:05 PM

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 || :

Melsync 07-20-2006 03:27 AM

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.

unSpawn 07-20-2006 05:26 AM

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.


All times are GMT -5. The time now is 03:14 AM.