Re: [Jack-Devel] semaphore, permission denied

PrevNext  Index
DateMon, 17 Feb 2014 10:53:20 -0500
From David Santamauro <[hidden] at gmail dot com>
To[hidden] at lists dot jackaudio dot org
In-Reply-ToChristian Schoenebeck Re: [Jack-Devel] semaphore, permission denied
Christian,

On 02/17/2014 09:40 AM, Christian Schoenebeck wrote:
> On Monday 17 February 2014 16:17:14 David Santamauro wrote:
>> It turns out that a listing of /dev/shm showed that the named semaphore
>> had a permission of 700 for some reason. Changing it to 755 cured this
>> problem.
>>
>> Of course, how that could happen is baffling.
>
> You haven't mentioned which version of JACK you are using.

1.9.9.5


 > Named semaphores are created by JACK like this:
>
> 	sem_open(fName, O_CREAT | O_RDWR, 0777, value);
>
> This is a POSIX API call where also the permission tuple is given, so if a
> semaphore of the given name does not exist, it will be created by the OS with
> the given permission tuple, masked against the process' permission tuple.
>
> I currently don't see a reason why JACK could be blamed for the semaphore
> being created with 700 there. My guess is that it might be caused by incorrect
> permissions being set to the JACK server binary. From the sem_open() man page:

I wasn't really "blaming" JACK, just was confused as to why it would 
cease to function correctly. I have a bit more digging to do, but thanks 
for the response.

David
PrevNext  Index

1392652409.26771_0.ltw:2,a <53023070.1060702 at gmail dot com>