772075ecd7
- add 32-bit-no-uid.diff to fix handling of log events without ouid on 32 bit systems OBS-URL: https://build.opensuse.org/request/show/560030 OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=195
14 lines
540 B
Diff
14 lines
540 B
Diff
diff --git a/utils/apparmor/logparser.py b/utils/apparmor/logparser.py
|
|
index 0e74c3f5..5738bb10 100644
|
|
--- a/utils/apparmor/logparser.py
|
|
+++ b/utils/apparmor/logparser.py
|
|
@@ -118,7 +118,7 @@ class ReadLog:
|
|
ev['protocol'] = event.net_protocol
|
|
ev['sock_type'] = event.net_sock_type
|
|
|
|
- if event.ouid != 18446744073709551615: # 2^64 - 1
|
|
+ if event.ouid != 18446744073709551615 and event.ouid != 4294967295: # 2^64 - 1 and 2^32 - 1
|
|
ev['fsuid'] = event.fsuid
|
|
ev['ouid'] = event.ouid
|
|
|