This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tholl
Recipients tholl
Date 2019-10-28.18:18:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572286737.48.0.245277798688.issue38622@roundup.psfhosted.org>
In-reply-to
Content
The dlsym operation generally (e.g. when done through a ctypes.CDLL object) triggers the "ctypes.dlsym" audit event. However, using _ctypes.dlsym directly does not trigger this event. This appears to be an oversight, given that _ctypes.dlopen *does* trigger the "ctypes.dlopen" audit event.

A (very minimal) patch is attached.

I was not entirely sure what format the DLL handle should take when it is passed to the audit function, so for now it just turns it back into a number via PyLong_FromVoidPtr (i.e. into the same format in which it is passed into _ctypes.dlsym in the first place).
History
Date User Action Args
2019-10-28 18:18:57thollsetrecipients: + tholl
2019-10-28 18:18:57thollsetmessageid: <1572286737.48.0.245277798688.issue38622@roundup.psfhosted.org>
2019-10-28 18:18:57tholllinkissue38622 messages
2019-10-28 18:18:57thollcreate