<div dir="ltr"><div>Although their export is a mistake, I really don't see this as of any particular importance.<br><br></div>JACK is almost always a per-user system. JACK also allows clients to scribble all over each other ports. The fact that someone can write an application which does this is really not much of an issue compared to that.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 1:10 PM, Tito Latini <span dir="ltr"><<a href="mailto:tito.01beta@gmail.com" target="_blank">tito.01beta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, some internal functions are globals and I think it is not what you want<br>
(jack2 seems ok).<br>
<br>
For example, a naive way to forbid the creation of other jack clients is:<br>
<br>
# tested with jack 0.124.1<br>
gcc -ljack private_club_mode.c<br>
./a.out      # prints "JACK compiled with System V SHM support."<br>
echo $?      # 0<br>
jack_lsp     # no more clients please, segfault (jack_client_open_aux)<br>
<br>
<br>
/* private_club_mode.c */<br>
#include <jack/jack.h><br>
<br>
int jack_register_server(const char *, int);<br>
<br>
int main() {<br>
        return jack_register_server("umpa", 0xDADA);<br>
}<br>
<br>
Tito<br>
_______________________________________________<br>
Linux-audio-dev mailing list<br>
<a href="mailto:Linux-audio-dev@lists.linuxaudio.org">Linux-audio-dev@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-dev" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-dev</a><br>
</blockquote></div><br></div>