• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
SCDynamicStoreAddTemporaryValue returns permissions denied error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SCDynamicStoreAddTemporaryValue returns permissions denied error


  • Subject: SCDynamicStoreAddTemporaryValue returns permissions denied error
  • From: Tomas Zahradnicky <email@hidden>
  • Date: Fri, 30 May 2003 18:55:09 +0200

Hello guys,

we have a daemon (LSUIElement=1) and scripting addition that can run within several contexts at once. We use BSD shared memory (shmget, shmat) calls to share some data (< 1K).

Is using System Configuration framework better? I believe it is since it can use notifications therefore avoids polling. I thought about MiG RPC but it is not easy to use.


The problem is that SCDynamicStoreAddTemporaryValue return 1003 error(permissions denied) error. Here's what I have done:

I tried created the instance of Dynamic Store:

store = SCDynamicStoreCreate( NULL,
CFSTR("MyStore"),
NULL,
NULL
);

and then I created a simple key:

key = SCDynamicStoreKeyCreate(
NULL,
CFSTR("%@/%@"),
kSCDynamicStoreDomainState,
CFSTR("StoreIsReady")
);

and called a function to add this key/value to the store:

result = SCDynamicStoreAddTemporaryValue( store, key, kCFBooleanTrue );



however the result is always 0 and I get 1003 (permissions denied) error. Do I have to run as root in order to do this or the error might be elsewhere?


Thanks,

Tomas


PS: Quinn, how's going the SCF documentation project?
--
Ing. Tomas Zahradnicky, Jr.
Production Manager, 24U Software
Associate Member, Filemaker Solutions Alliance
mailto:email@hidden
http://www.24uSoftware.com
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: SCDynamicStoreAddTemporaryValue returns permissions denied error
      • From: Quinn <email@hidden>
  • Prev by Date: USB Driver mac os 9 problem
  • Next by Date: Re: Detecting network disconnected
  • Previous by thread: USB Driver mac os 9 problem
  • Next by thread: Re: SCDynamicStoreAddTemporaryValue returns permissions denied error
  • Index(es):
    • Date
    • Thread