Message355583
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:57 | tholl | set | recipients:
+ tholl |
2019-10-28 18:18:57 | tholl | set | messageid: <1572286737.48.0.245277798688.issue38622@roundup.psfhosted.org> |
2019-10-28 18:18:57 | tholl | link | issue38622 messages |
2019-10-28 18:18:57 | tholl | create | |
|