Your message dated Mon, 11 May 2015 12:06:00 +0000
with message-id <[email protected]>
and subject line Bug#784935: fixed in ulogd2 2.0.5-1
has caused the Debian Bug report #784935,
regarding ulogd2-json: JSON output is invalid on big endian system
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
784935: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784935
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ulogd2-json
Version: 2.0.4-2
Severity: important
Tags: patch

Dear Maintainer,

   * What led up to the situation ?

The display of most integer types is invalid on big endian systems.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Using the plugin in a stack is enough.

   * What was the outcome of this action?

Invalid values for integers like source port.

   * What outcome did you expect instead?

Correct value of integer.

The bug is fixed in ulogd-2.0.5 but this fix should be backported to debian
stable.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.17-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ulogd2-json depends on:
ii  libc6              2.19-18
ii  libjansson4        2.7-1
ii  multiarch-support  2.19-18
ii  ulogd2             2.0.4-2

ulogd2-json recommends no packages.

ulogd2-json suggests no packages.

-- no debconf information
>From 4f267553aede76dc91133ba88c69f8b8faf00b72 Mon Sep 17 00:00:00 2001
From: Jimmy Jones <[email protected]>
Date: Sat, 26 Jul 2014 21:48:38 +0100
Subject: [PATCH] Fix JSON output on big endian systems

Signed-off-by: Jimmy Jones <[email protected]>
Signed-off-by: Eric Leblond <[email protected]>
---
 output/ulogd_output_JSON.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/output/ulogd_output_JSON.c b/output/ulogd_output_JSON.c
index e7ac642..3ad2620 100644
--- a/output/ulogd_output_JSON.c
+++ b/output/ulogd_output_JSON.c
@@ -158,7 +158,11 @@ static int json_interp(struct ulogd_pluginstance *upi)
 			break;
 		case ULOGD_RET_BOOL:
 		case ULOGD_RET_INT8:
+			json_object_set_new(msg, field_name, json_integer(key->u.value.i8));
+			break;
 		case ULOGD_RET_INT16:
+			json_object_set_new(msg, field_name, json_integer(key->u.value.i16));
+			break;
 		case ULOGD_RET_INT32:
 			json_object_set_new(msg, field_name, json_integer(key->u.value.i32));
 			break;
@@ -171,10 +175,17 @@ static int json_interp(struct ulogd_pluginstance *upi)
 					json_object_set_new(msg, "action", json_string("blocked"));
 				break;
 			}
+			json_object_set_new(msg, field_name, json_integer(key->u.value.ui8));
+			break;
 		case ULOGD_RET_UINT16:
+			json_object_set_new(msg, field_name, json_integer(key->u.value.ui16));
+			break;
 		case ULOGD_RET_UINT32:
+			json_object_set_new(msg, field_name, json_integer(key->u.value.ui32));
+			break;
 		case ULOGD_RET_UINT64:
 			json_object_set_new(msg, field_name, json_integer(key->u.value.ui64));
+			break;
 		default:
 			/* don't know how to interpret this key. */
 			break;
-- 
2.1.4


--- End Message ---
--- Begin Message ---
Source: ulogd2
Source-Version: 2.0.5-1

We believe that the bug you reported is fixed in the latest version of
ulogd2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Boot <[email protected]> (supplier of updated ulogd2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 11 May 2015 12:31:51 +0100
Source: ulogd2
Binary: ulogd2 ulogd2-dbi ulogd2-json ulogd2-mysql ulogd2-pcap ulogd2-pgsql 
ulogd2-sqlite3 ulogd2-dbg ulogd ulogd-mysql ulogd-pgsql ulogd-pcap ulogd-sqlite3
Architecture: source amd64
Version: 2.0.5-1
Distribution: unstable
Urgency: medium
Maintainer: Chris Boot <[email protected]>
Changed-By: Chris Boot <[email protected]>
Description:
 ulogd      - transitional dummy package for ulogd2
 ulogd-mysql - transitional dummy package for ulogd2-mysql
 ulogd-pcap - transitional dummy package for ulogd2-pcap
 ulogd-pgsql - transitional dummy package for ulogd2-pgsql
 ulogd-sqlite3 - transitional dummy package for ulogd2-sqlite3
 ulogd2     - Netfilter Userspace Logging Daemon
 ulogd2-dbg - Netfilter Userspace Logging Daemon (debug symbols)
 ulogd2-dbi - DBI extension to ulogd
 ulogd2-json - JSON extension to ulogd
 ulogd2-mysql - MySQL extension to ulogd
 ulogd2-pcap - pcap extension to ulogd
 ulogd2-pgsql - PostgreSQL extension to ulogd
 ulogd2-sqlite3 - SQLite 3 extension to ulogd
Closes: 784935
Changes:
 ulogd2 (2.0.5-1) unstable; urgency=medium
 .
   * New upstream release.
     - Corrects JSON output of integer types on big-endian systems.
       (Closes: #784935)
   * Update Standards-Version to 3.9.6 (no changes required).
   * Add a README.source file.
Checksums-Sha1:
 55d6b9b1559b626ff63167e0de81a5579762d23e 2944 ulogd2_2.0.5-1.dsc
 828db7849d6788674ecf36b178f107c20e9ac1f0 456258 ulogd2_2.0.5.orig.tar.bz2
 65d9f0050265eedb20a0549a5965147c7cee4398 15156 ulogd2_2.0.5-1.debian.tar.xz
 756b2e5dd8f3c83ce610f4f5e59de5d6490d6db8 109540 ulogd2_2.0.5-1_amd64.deb
 befd5fd9aeefe73eb154ced0f646b49245893b9c 8282 ulogd2-dbi_2.0.5-1_amd64.deb
 a3aa7a5748a9121a739fe6be06d4ea368c5bf8c7 4540 ulogd2-json_2.0.5-1_amd64.deb
 44f6bc51a6605a30a14b136735b56f665c64262d 7924 ulogd2-mysql_2.0.5-1_amd64.deb
 b9d3d968e493f74ef08e22227ce5634e6ba9b09a 3960 ulogd2-pcap_2.0.5-1_amd64.deb
 ade33420ba8409fad9288f753660eb4f3921503e 8996 ulogd2-pgsql_2.0.5-1_amd64.deb
 fb15606c13f3bcce7bcdb569b525f0e7ad3a2539 8606 ulogd2-sqlite3_2.0.5-1_amd64.deb
 8dfdb7fce3123c24de2b9ff0a5dfe91d63f50d5a 284262 ulogd2-dbg_2.0.5-1_amd64.deb
 70f6afda24c0c01248d92cfa506f36983fd0ced8 5056 ulogd_2.0.5-1_amd64.deb
 a9182e3dfee56d50f1951b3ee29daf5a3690a645 864 ulogd-mysql_2.0.5-1_amd64.deb
 96a61cbcbba0dadc9b693d729acc8486d51b8820 864 ulogd-pgsql_2.0.5-1_amd64.deb
 6e0bfd6fd095a0d77a4712d0d45458d5d2658f97 862 ulogd-pcap_2.0.5-1_amd64.deb
 d0e16583936259b18140490e19d52af1d6be197a 868 ulogd-sqlite3_2.0.5-1_amd64.deb
Checksums-Sha256:
 732ae9b2b30e6aac727325d086d61a78bc4b7d339ebad97deac5983c3b83b143 2944 
ulogd2_2.0.5-1.dsc
 a221cb9f77347c0ca00d0937e27c1b90e3291a553cc62a4139b788e2e420e8c0 456258 
ulogd2_2.0.5.orig.tar.bz2
 6954286799222685645755eee380513ea3104a0b22693f682de6334b3c7776b0 15156 
ulogd2_2.0.5-1.debian.tar.xz
 c7ea28b7dcdec956231a6f3e017417b50fe05407a110674bd3ab39d7f9bea4ee 109540 
ulogd2_2.0.5-1_amd64.deb
 1a447ed1d6fe526c038b6f842ddf2564f48232a2e4d37b21a078a5d77de68aac 8282 
ulogd2-dbi_2.0.5-1_amd64.deb
 7004877e889ca09e9107650b339e2c86b91d5acff3c0166eeaf57f0ccb3e1d17 4540 
ulogd2-json_2.0.5-1_amd64.deb
 4dd29c3b26974824bdc47127fc1d87c793ac42901d42a8d448d071308bce1de5 7924 
ulogd2-mysql_2.0.5-1_amd64.deb
 bf84486e618510006bec7dd94e2cd1d1f70833a8d6f3851d050762605a737971 3960 
ulogd2-pcap_2.0.5-1_amd64.deb
 04bb790470fec94ee3addf83db4f92c76634e5447785ac128a20d5ace7ebf6e3 8996 
ulogd2-pgsql_2.0.5-1_amd64.deb
 445b13221c96925e1e297bdd2ccf0a6784166ca4a966ac4ee80f36d92531decb 8606 
ulogd2-sqlite3_2.0.5-1_amd64.deb
 2dcbf789a5b222d933aef23b3eaddc34656a26b58f172ca471f53c5d51cd78a2 284262 
ulogd2-dbg_2.0.5-1_amd64.deb
 db7e2365d163125de157c619da61813fc58fb297f10ffb64ae685c8e20f20489 5056 
ulogd_2.0.5-1_amd64.deb
 9156f53aade3a585f858f2e0738f66f1abf1a2769768299c1fd2cac4747eae0c 864 
ulogd-mysql_2.0.5-1_amd64.deb
 ab962f9423cbfe100683aff2542f1a9ae307ae200e256ba1028f16cfbcbf5dd5 864 
ulogd-pgsql_2.0.5-1_amd64.deb
 e669342c610a12a2ff6cf8433920ea23ee23f0c9d56d722512e94ee5d310e423 862 
ulogd-pcap_2.0.5-1_amd64.deb
 1f0efda6914d53cde0ab70543e03993f2f80cff4292e4b2ad7c2993933db9565 868 
ulogd-sqlite3_2.0.5-1_amd64.deb
Files:
 29dfcc4c442b3264198163ac6a5e8028 2944 net optional ulogd2_2.0.5-1.dsc
 f0f8fe1371fa28b5e06cb16aaa0111dd 456258 net optional ulogd2_2.0.5.orig.tar.bz2
 2f026ad62c7d18bbb053ae5e07990aa7 15156 net optional 
ulogd2_2.0.5-1.debian.tar.xz
 c935a2994fb528aa1bcec6f4416f946e 109540 net optional ulogd2_2.0.5-1_amd64.deb
 4f9ebb1d82fc8386ba8cc0f53c266822 8282 net optional ulogd2-dbi_2.0.5-1_amd64.deb
 ac155546779b4663a210d398c1d98e20 4540 net optional 
ulogd2-json_2.0.5-1_amd64.deb
 cba24889045d0fd60c1c37a880e06a79 7924 net optional 
ulogd2-mysql_2.0.5-1_amd64.deb
 4113d35558247e9784b2b492769fa830 3960 net optional 
ulogd2-pcap_2.0.5-1_amd64.deb
 94a8c7fcff5e7a03896c46a22e07398a 8996 net optional 
ulogd2-pgsql_2.0.5-1_amd64.deb
 ebd8f56eaa91d08d630c45ba8126c44e 8606 net optional 
ulogd2-sqlite3_2.0.5-1_amd64.deb
 7a72b3a02d9ff0f95c5040bbb25e47e7 284262 debug extra 
ulogd2-dbg_2.0.5-1_amd64.deb
 349459fc95006792f5fd237b14e1a9ef 5056 oldlibs extra ulogd_2.0.5-1_amd64.deb
 243f1c78a9b1995735635e81a97c717c 864 oldlibs extra 
ulogd-mysql_2.0.5-1_amd64.deb
 55f714a0f486d3dde0953167aa92891d 864 oldlibs extra 
ulogd-pgsql_2.0.5-1_amd64.deb
 30bf8f98d4b6f118f75a5c9f821e9e9c 862 oldlibs extra ulogd-pcap_2.0.5-1_amd64.deb
 e405814f7415e6cc97eb33687e81dc1c 868 oldlibs extra 
ulogd-sqlite3_2.0.5-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJVUJZ1XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQThBOTBGNTdGRkIxRDY0N0U0MDM0REE0
MTFBNzMzRTY3RDY0RkZFAAoJEEEacz5n1k/+LbEQAJx9Uc7sYPu/Ys4bVjIsfVmT
5BRujGRNDYqAV0XhejKK/6Mg1FMQPfAcXZtPbkpZGgSUa+OHXt89ACx1Z2z+9IxB
P2czKQrnhIirOxsF4MBQuXTXXj+5kX7JePYwsDV9sAIogNLHIROOO6DaBQ9sp5QS
/+g2l/VbzPLHFIsBrv3mAqxJta3zNO93V9EM2oc6kbRboTDNQMHIUmaRlNhOh77u
zd6b0oXKglGJTVWtZakFdNnK/xhKatRi85cnyZ4o2/2y+Wx95Cs5PyFzL/woFGkA
7TpQ6vp2AOhZ6TmDf3P6lp3iT+HO1I+UkWhdX58g7VbfCOru8rjjrZcHbvNSJVf7
JfOu7pbAAkPC+FkSMBrPXXM+8S4NqJyYPZjhJ978gxqvmMUX00XyNMtJ/emURJ8t
Hj1bMajpgMnitdem2M2TNwh2Q0+VMO3tjPK5dTMpbLO/5/+FlO2iHoftmapVUfjt
ChyAd6KUHliJUTmC+ZV91SVq7tPZibhjJ+uN8WxmzpfHCg5YZ3gGISNFOODlBkbV
SZl/lxgYofmph68MqxssL1Z3YHJRuS+Ry5yhwk6pV883psF8fjL4+UsP5a4ml1QN
RW9gXOYdHRnxPAwQexurYgewBuptor0LMrMGgJLy0uLtVGWdKt7jPcuJMNrMQ0kw
aa4b7B479ViUDFKlV4/c
=JU0V
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to