Re: AudioUnit plugin vs. GarageBand sandboxing
Re: AudioUnit plugin vs. GarageBand sandboxing
- Subject: Re: AudioUnit plugin vs. GarageBand sandboxing
- From: Christian Rober <email@hidden>
- Date: Fri, 10 Apr 2015 23:38:01 -0400
Nicely done sir!
It is strange how IPC was not allowed, but shared POSIX memory was allowed. I guess each app can choose which functionality to block, since apps other than GB worked. Still its great to see you got it to work.
Yeah... the man page for pthread_rwlockatt_setspshared says that PTHREAD_PROCESS_SHARED is not supported under the BUGS section (i'm on 10.9.5 too). That's a shame. :(
I also could not find the man page for pthread_mutexattr_setspshared. After a quick google search, it seems that the kernel may not REALLY implement that function. You may not be getting the protection you expect, though I hope you are!
One small thing, I think your 2nd call to open will return EEXIST if there is a race and you lost to your other process. My understanding is that create is "atomic", within kernel and with respect to the file descriptors. In a create race condition one will fail and one will succeed (assuming all else is sound). You may want to check errno in that case, but this race is probably super rare, if it exists at all.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden