Issue 13777: socket: communicating with Mac OS X KEXT controls (original) (raw)

Created on 2012-01-12 18:16 by goderbauer, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
kext.patch goderbauer,2012-01-12 18:16 Patch to support KEXT Controls review
patch2.patch goderbauer,2012-02-03 16:33 review
Pull Requests
URL Status Linked Edit
PR 4145 python-dev,2017-11-06 13:06
Messages (6)
msg151145 - (view) Author: Michael Goderbauer (goderbauer) * Date: 2012-01-12 18:16
Mac OS X provides a socket-based API to communicate with Kernel Extensions (KEXTs) called "KEXT Controls". For this, Mac OS X defines PF_SYSTEM as a new socket domain which supports the SYSPROTO_CONTROL protocol. Right now the PF_SYSTEM domain and the SYSPROTO_CONTROL protocol are not supported by Python's socket module. I am attaching a patch that introduces support for both. More information on KEXT Controls can be found here: http://developer.apple.com/library/mac/documentation/Darwin/Conceptual/NKEConceptual/control/control.html
msg152526 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2012-02-03 15:52
The patch fails to apply in configure.in. Can you please regenerate it?
msg152529 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2012-02-03 15:58
Also: Can you propose test cases for this socket family?
msg152538 - (view) Author: Michael Goderbauer (goderbauer) * Date: 2012-02-03 16:33
Here is the regenerated patch. To write a test case I would need a PF_SYSTEM socket to connect to. As far as I know Mac OS X doesn't provide a demo socket for this.
msg152539 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-02-03 16:45
New changeset aa3680d2c24d by Martin v. Löwis in branch 'default': Issue #13777: Add PF_SYSTEM sockets on OS X. http://hg.python.org/cpython/rev/aa3680d2c24d
msg152540 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2012-02-03 16:46
Thanks for the patch. Committed with an additional fix in refcounting.
History
Date User Action Args
2022-04-11 14:57:25 admin set github: 57986
2017-11-06 13:06:34 python-dev set pull_requests: + <pull%5Frequest4255>
2012-02-03 16:46:12 loewis set status: open -> closedresolution: fixedmessages: +
2012-02-03 16:45:07 python-dev set nosy: + python-devmessages: +
2012-02-03 16:33:24 goderbauer set files: + patch2.patchmessages: +
2012-02-03 15:58:53 loewis set messages: +
2012-02-03 15:52:08 loewis set nosy: + loewismessages: +
2012-01-12 19:11:56 rosslagerwall set nosy: + ronaldoussoren, ned.deily
2012-01-12 18:16:31 goderbauer create