Hi there:
Finally got round to install realtime-lsm on my newly install gentoo (kernel-2.6.9)
I got realtime-lsm form emerge and then added "realtime" to /etc/moudles.autoload.d/kernel-2.6. Upon reboot, realtime starts ok but when I try to start jack with realtime using qjackctl as normal user. I got a error saying
Cannot load driver module alsa Could not connect to JACK server as client
Does this mean that I need to have the alsa support compiled as modules for the kernel like realtime-lsm instead of compile into kernel?
Many thanks
CHUN
Hi Chun,
First: yes, ALSA wants to be modules. Always. You can either compile the built-in ALSA as modules, or emerge the alsa-driver package.
Second: you need to tell the realtime module who gets to use it. The line "modprobe realtime any=1" allows any user to gain realtime privileges, or you can specify a UID or GID [user/group ID]. Or add the "any=1", "GID=n" or "UID=n" to your /etc/moudles.autoload.d/kernel-2.6
good luck, d.
chun lee wrote:
Hi there:
Finally got round to install realtime-lsm on my newly install gentoo (kernel-2.6.9)
I got realtime-lsm form emerge and then added "realtime" to /etc/moudles.autoload.d/kernel-2.6. Upon reboot, realtime starts ok but when I try to start jack with realtime using qjackctl as normal user. I got a error saying
Cannot load driver module alsa Could not connect to JACK server as client
Does this mean that I need to have the alsa support compiled as modules for the kernel like realtime-lsm instead of compile into kernel?
Many thanks
CHUN
Hi derek:
Thanks for the reply;)
First: yes, ALSA wants to be modules. Always. You can either compile the built-in ALSA as modules, or emerge the alsa-driver package.
Argh, I have ALSA compiled not as modules, I will compile it again and see what happens. In this case, I will have to add to /etc/moudles.autoload.d/kernel-2.6. "ALSA", right? I have installed alsa-driver already and it works fine. Only if jack wants realtime as a user that I get error.
Second: you need to tell the realtime module who gets to use it. The line "modprobe realtime any=1" allows any user to gain realtime privileges, or you can specify a UID or GID [user/group ID]. Or add the "any=1", "GID=n" or "UID=n" to your /etc/moudles.autoload.d/kernel-2.6
I have done that already. I think my problem is that my ALSA is not as modules.
good luck,
Thanks, I will need it
Cheers
CHUN
d.
chun lee wrote:
Hi there:
Finally got round to install realtime-lsm on my newly install gentoo (kernel-2.6.9)
I got realtime-lsm form emerge and then added "realtime" to /etc/moudles.autoload.d/kernel-2.6. Upon reboot, realtime starts ok but when I try to start jack with realtime using qjackctl as normal user. I got a error saying
Cannot load driver module alsa Could not connect to JACK server as client
Does this mean that I need to have the alsa support compiled as modules for the kernel like realtime-lsm instead of compile into kernel?
Many thanks
CHUN
chun lee wrote:
Argh, I have ALSA compiled not as modules, I will compile it again and see what happens. In this case, I will have to add to /etc/moudles.autoload.d/kernel-2.6. "ALSA", right?
No! That is what /etc/modules.d/alsa is for! RTFM ;-) http://www.gentoo.org/doc/en/alsa-guide.xml
best, d.
Hallo, chun lee hat gesagt: // chun lee wrote:
Hi derek:
Thanks for the reply;)
First: yes, ALSA wants to be modules. Always. You can either compile the built-in ALSA as modules, or emerge the alsa-driver package.
Argh, I have ALSA compiled not as modules, I will compile it again and see what happens.
Is this really necessary? Although it is more conventient to have ALSA as modules (and everyone does it) it should not affect the realtime module, as this is not dealing with ALSA at all. Of course ALSA should work for Jack to work.
However the kernel modules for LSM must be modules for jackd to work, like:
$ ls /lib/modules/2.6.9/kernel/security/ capability.ko commoncap.ko realtime.ko
Beware though that there is a newly discovered security flaw in the LSM modules:
http://www.derkeiler.com/Mailing-Lists/securityfocus/bugtraq/2004-12/0390.ht...
Bottom line: Loading the LSM modules will give all already running processes root capabilities. A cracker's dream!!!
I *think* that loading the modules very early in the boot process could prevent that as a quick fix, however the above mentioned patch is the cleaner solution.
Frank Barknecht _ ______footils.org__