Author tholl
Recipients tholl
Date 2019-10-28.18:18:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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).
Date User Action Args
2019-10-28 18:18:57thollsetrecipients: + tholl
2019-10-28 18:18:57thollsetmessageid: <>
2019-10-28 18:18:57tholllinkissue38622 messages
2019-10-28 18:18:57thollcreate