Red Hat Bugzilla – Bug 244210
Parts of Python bindings are unusable
Last modified: 2007-11-30 17:12:07 EST
Description of problem:
The second argument of audit.audit_set_enabled is expected to be an uint32_t,
but the Python binding does not know how to create a value of that type.
Version-Release number of selected component (if applicable):
Python 2.5 (r25:51908, Apr 10 2007, 10:29:13)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import audit
>>> fd = audit.audit_open()
>>> audit.audit_set_enabled(fd, 1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: in method 'audit_set_enabled', argument 2 of type 'uint32_t'
Created attachment 157012 [details]
Make <asm/types.h> and <stdint.h> available to swig.
Patch applied to development copy of 1.5.4. Thanks!
Audit 1.5.5 was pushed into rawhide to solve this problem. Thanks for reporting
it and providing a patch.