mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-05 08:45:22 +00:00
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 <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user