Writing a privileged helper tool with SMJobBless()

后端 未结 6 1266
一生所求
一生所求 2020-11-30 22:29

Even though the API has been open since Mac OS X Leopard, there\'s surprisingly, and unfortunately, very little documentation on how to correctly use SMJobBless()

6条回答
  •  臣服心动
    2020-11-30 23:26

    Itai have you looked at the SMJobBless sample code from WWDC 2010? It includes a helper tool and app to bless it.

    https://developer.apple.com/library/mac/#samplecode/SMJobBless/Listings/ReadMe_txt.html#//apple_ref/doc/uid/DTS40010071-ReadMe_txt-DontLinkElementID_3

    Its README file says:

    This sample as it stands does not actually run the helper tool. The following samples show how to [sic] a launchd job and set up interprocess communication:

    • ssd (Doesn't seem to be online anymore. Was part of the WWDC 2010 sample code.)
    • BetterAuthorizationSample

提交回复
热议问题