Re: [LAD] jack daemon scripts

From: Ray Rashif <schivmeister@email-addr-hidden>
Date: Tue Mar 09 2010 - 07:02:13 EET

On 08/03/2010, torbenh <torbenh@email-addr-hidden> wrote:
> first of all its not tested. and it doesnt work.
> thats only a problem with permissions though
> after some chmod on /dev/shm/jack running jack_lsp as nobody works.
> but the patch needs to be either removed or fixed.

It looks like the promiscuous part of the code hasn't changed:
http://trac.jackaudio.org/changeset/1028

So it should still work, but for some reason connections aren't
getting through, although jackd is setting the correct permissions for
/dev/shm/$jacktmpdir..a test case I ran by creating a normal user
"audio":

[root@email-addr-hidden ~] # useradd -N -K SYS_UID_MAX=499 -K SYS_GID_MAX=499
-s /bin/bash -g audio -G users,video,network -c audio -d /var/lib/jack
audio

[root@email-addr-hidden ~] # mkdir -p /var/lib/jack && chown audio:audio /var/lib/jack

[root@email-addr-hidden ~] # su - audio -c 'umask 0000 && export
JACK_PROMISCUOUS_SERVER && jack -P55 -dalsa -dhw:0 -r48000 -p512 -n3'
*** server start success ***

[root@email-addr-hidden ~] $ ls -l /dev/shm
total 0
drwx------ 3 audio audio 60 Mar 9 12:35 jack-1001

Perms are not correct, so try again with JACK_PROMISCUOUS_SERVER="":

[root@email-addr-hidden ~] # killall jackd && su - audio -c 'umask 0000 &&
export JACK_PROMISCUOUS_SERVER="" && jack -P55 -dalsa -dhw:0 -r48000
-p512 -n3'
*** server start success ***

[root@email-addr-hidden ~] $ ls -l /dev/shm
total 0
drwxrwxrwx 3 audio audio 60 Mar 9 12:40 jack

[root@email-addr-hidden ~] $ ls -l /dev/shm/*/*
total 0
prw-rw-rw- 1 audio audio 0 Mar 9 12:40 jack-ack-fifo-28335-0
prw-rw-rw- 1 audio audio 0 Mar 9 12:40 jack-ack-fifo-28335-1
srwxrwxrwx 1 audio audio 0 Mar 9 12:40 jack_0
srwxrwxrwx 1 audio audio 0 Mar 9 12:40 jack_ack_0

Perms are now correct, so try starting a client with another user "foo":

[foo@email-addr-hidden ~] $ mplayer -ao jack awesome.wav
...
...
[JACK] cannot open server
Failed to initialize audio driver 'jack'
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video

Exiting... (End of file)

And from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500249:

"Cause there's no system-wide jackd anymore, it can't be promiscuous."

--
GPG/PGP ID: B42DDCAD
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Tue Mar 9 08:15:01 2010

This archive was generated by hypermail 2.1.8 : Tue Mar 09 2010 - 08:15:01 EET