Commit 49c51368 authored by Steve Beattie's avatar Steve Beattie

libapparmor python binding - fix 32bit test failures

The python bindings were using the wrong data type cast (long long
instead of just long) on the value '-1' that is used to indicate no
value for the 'fsuid' and 'ouid' fields in the returned data structure.
Thus a bunch of the tests were failing in 32bit environments.

This patch corrects the issue.
Signed-off-by: Steve Beattie's avatarSteve Beattie <steve@nxnw.org>
Acked-by: default avatarSeth Arnold <seth.arnold@canonical.com>
parent 3d989e82
......@@ -50,8 +50,8 @@ EVENT_MAP = {
# default is None if not in this table
NO_VALUE_MAP = {
'fsuid': int(ctypes.c_ulonglong(-1).value),
'ouid': int(ctypes.c_ulonglong(-1).value),
'fsuid': int(ctypes.c_ulong(-1).value),
'ouid': int(ctypes.c_ulong(-1).value),
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment