diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-11-29 11:28:07 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-11-29 11:29:41 +0100 |
commit | 3f513f1d264c0a6c481e04fd346d35e9fb9a56e2 (patch) | |
tree | 670304e95e0df4078fc4aa30d9b50bad9f9bdedb /src | |
parent | 8764c35382fdf8ae6c7c4252042fc32397197ffe (diff) |
meta: fix endianness in UID/GID
add rule filter output meta skuid vmap { 1000 => accept }
list table filter
meta skuid map { 3892510720 => accept}
^--------^
this is 1000 in network byte order
Reported-by: Bjørnar Ness <bjornar.ness@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/meta.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -230,7 +230,7 @@ static const struct datatype uid_type = { .type = TYPE_UID, .name = "uid", .desc = "user ID", - .byteorder = BYTEORDER_BIG_ENDIAN, + .byteorder = BYTEORDER_HOST_ENDIAN, .size = sizeof(uid_t) * BITS_PER_BYTE, .basetype = &integer_type, .print = uid_type_print, @@ -275,7 +275,7 @@ static const struct datatype gid_type = { .type = TYPE_GID, .name = "gid", .desc = "group ID", - .byteorder = BYTEORDER_BIG_ENDIAN, + .byteorder = BYTEORDER_HOST_ENDIAN, .size = sizeof(gid_t) * BITS_PER_BYTE, .basetype = &integer_type, .print = gid_type_print, |