Re: Darwin-kernel Digest, Vol 10, Issue 33
Re: Darwin-kernel Digest, Vol 10, Issue 33
- Subject: Re: Darwin-kernel Digest, Vol 10, Issue 33
- From: simran charley <email@hidden>
- Date: Fri, 07 Jun 2013 17:23:13 +0530
Hi ,
Thank u for ur reply.
I have gone through QA1574 "Kernel's MAC framework", I will use this for learning purpose only.
I have added required KPI com.apple.kpi.dsep in plist, still IOKit not working. Not able to link these functions.
Using FindKPI.py for mac_policy_register / mac_policy_unregister says *** not found ***. and Generic kext is able to link these Apis.
Thanks & Regards,
Simran.
On Fri, Jun 7, 2013 at 12:30 AM,
<email@hidden> wrote:
Send Darwin-kernel mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.apple.com/mailman/listinfo/darwin-kernel
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Darwin-kernel digest..."
Today's Topics:
1. Using mac_policy api's (simran charley)
2. Re: Using mac_policy api's (Phil Jordan)
3. Re: Using mac_policy api's (Quinn "The Eskimo!")
----------------------------------------------------------------------
Message: 1
Date: Thu, 06 Jun 2013 18:07:03 +0530
From: simran charley <email@hidden>
To: email@hidden
Subject: Using mac_policy api's
Message-ID:
<email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Hi All,
I am using mac_policy api's. They are working in General kernel extension,
but in IOKit I got error message "symbol not found in any library kext" for
mac_policy_register() and mac_policy_unregister().
How to use it in IOKit kext?
Also mpo_iokit_check_device_t() is not working in Generi kext, do it need
to call from IOKit only?
Thanks & Regards,
Simran.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.apple.com/mailman/private/darwin-kernel/attachments/20130606/532966e5/attachment.html>
------------------------------
Message: 2
Date: Thu, 06 Jun 2013 15:16:46 +0200
From: Phil Jordan <email@hidden>
To: simran charley <email@hidden>
Cc: email@hidden
Subject: Re: Using mac_policy api's
Message-ID:
<CAGCz3vuOJbW1D4tfmwdLf1Cad=email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
On Thu, Jun 6, 2013 at 2:37 PM, simran charley <email@hidden>wrote:
>
> I am using mac_policy api's. They are working in General kernel extension,
> but in IOKit I got error message "symbol not found in any library kext" for
> mac_policy_register() and mac_policy_unregister().
>
> How to use it in IOKit kext?
>
This has nothing to do with general vs I/O Kit kexts. You need to add the
correct KPI, com.apple.kpi.dsep, to the OSBundleLibraries in your kext's
info.plist. That should fix the MAC-related link errors.
Also mpo_iokit_check_device_t() is not working in Generi kext, do it need
> to call from IOKit only?
>
I don't think this is implemented at all, actually.
This applies to a lot of mac_policy callbacks - some are unused leftovers
from BSD, some are disabled in release kernels (e.g. anything with vnode
labels), some seem to have originated in Apple-internal experiments that
never saw the light of day, and some are useless without some private APIs
or structs. (e.g. anything with a struct fileglob argument) Still, the ones
that do work are extremely useful of course. :-)
If you grep the kernel source for the main name (the XXX in mpo_XXX_t) you
should be able to find where and how a particular callback is used. Or see
that it isn't.
HTH
phil
--
http://philjordan.eu/ - Phil Jordan, software development contractor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.apple.com/mailman/private/darwin-kernel/attachments/20130606/16000650/attachment.html>
------------------------------
Message: 3
Date: Thu, 06 Jun 2013 09:45:31 -0700
From: "Quinn \"The Eskimo!\"" <email@hidden>
To: "email@hidden Kernel"
<email@hidden>
Subject: Re: Using mac_policy api's
Message-ID: <email@hidden">email@hidden>
Content-Type: text/plain; charset=iso-8859-1
On 6 Jun 2013, at 05:37, simran charley <email@hidden> wrote:
> I am using mac_policy api's.
I hate to be the bearer of bad news, but the kernel's MAC framework is not supported for third party development.
o QA1575 "Supported KPIs"
<https://developer.apple.com/library/mac/#qa/qa1575/_index.html>
o QA1574 "Kernel's MAC framework"
<https://developer.apple.com/library/mac/#qa/qa1574/_index.html>
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
------------------------------
_______________________________________________
Darwin-kernel mailing list
email@hidden
https://lists.apple.com/mailman/listinfo/darwin-kernel
End of Darwin-kernel Digest, Vol 10, Issue 33
*********************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden