Re: [linux-audio-dev] jack and setuid

From: conrad berhörster <conrad.berhoerster@email-addr-hidden>
Date: Fri Nov 04 2005 - 16:57:41 EET

Am Donnerstag, 3. November 2005 23:49 schrieb Jonathan Woithe:
>
> I'm a bit puzzled by this statement. lsm requires you get the patch, apply
> it to your kernel, configure and compile your kernel, install and boot the
> new kernel and then you can start configuring userspace to take advantage
> of it.
>
> In contrast, using the rtlimits approach can be as simple as grabbing
> set_rtlimits and compiling it (assuming one has a kernel >= 2.6.13
> installed of course). Configuring userspace is via a single simple text
> file (documented in the source distribution). Using it then boils down to
> doing things like
>
> set_rtlimits -r /usr/local/bin/jackd ...
> set_rtlimits -r /usr/local/bin/ardour

yes jonathan, in my opinion its easier to set up set_rtlimits than lsm
but i thought, set_rtlimits gives me the same right as a normal user as when i
am root. right?
But on my system, when i started jackd as normal user as you wrote above.
in the config file i only changed the username into soundroom
------------------------
soundroom@email-addr-hidden:~/src$ set_rtlimits -r /usr/local/bin/jackd -R -dalsa
jackd 0.100.0
[..] JACK compiled with System V SHM support.
cannot lock down memory for jackd (Cannot allocate memory)
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to
playback-only mode
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
nperiods = 2 for playback
JACK: unable to mlock() port buffers: Cannot allocate memory
jack main caught signal 2
no message buffer overruns
------------------------
and when i'm root evrything went better, i see my two capture devs, have no
problems with memory and whatever.

-------------------------
root@email-addr-hidden:/home/soundroom/src# jackd -R -dalsa
jackd 0.100.0
[..]JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames, buffer = 2 periods
nperiods = 2 for capture
nperiods = 2 for playback
jack main caught signal 2
no message buffer overruns
------------------------------------------

can someone out there tell me this hint, please
Received on Fri Nov 4 20:15:04 2005

This archive was generated by hypermail 2.1.8 : Fri Nov 04 2005 - 20:15:05 EET