]> git.proxmox.com Git - mirror_libseccomp.git/commit - src/python/seccomp.pyx
python: ensure attributes are treated as 32 bits
authorMike Strosaker <strosake@linux.vnet.ibm.com>
Tue, 31 Mar 2015 19:02:17 +0000 (14:02 -0500)
committerPaul Moore <pmoore@redhat.com>
Wed, 6 May 2015 18:52:37 +0000 (14:52 -0400)
commit4367b1b4f94ca1e0c0606ff85622f2ecb1a9c278
tree4c72043da44c2deb0e422506cc2b9fb90dc28c27
parentd32ef67e87ae4005e6456d17c071dbd410d957ea
python: ensure attributes are treated as 32 bits

Retrieving attributes using the Python bindings fails on some platforms.
The attributes are encoded in a 32-bit mask.  Python variables are
usually larger (64 bits); Cython is not capable of recognizing that it
should only use a 32-bit number on every platform.  This patch ensures
that the variable used to store the value of the attribute is only 32 bits.

Signed-off-by: Michael Strosaker <strosake@linux.vnet.ibm.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
src/python/seccomp.pyx