Here's the fix for -m owner inversion.

-Tom

-------- Original Message --------
Subject: [PATCH] libxt_owner: restore inversion support
Date: Sun, 29 May 2011 17:12:15 +0200
From: Jan Engelhardt <[email protected]>
To: [email protected]
CC: [email protected]

Signed-off-by: Jan Engelhardt <[email protected]>
---
 extensions/libxt_owner.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/extensions/libxt_owner.c b/extensions/libxt_owner.c
index b60f907..d2fdfa9 100644
--- a/extensions/libxt_owner.c
+++ b/extensions/libxt_owner.c
@@ -125,8 +125,10 @@ static const struct xt_option_entry
owner_mt6_opts_v0[] = {
 #undef s

 static const struct xt_option_entry owner_mt_opts[] = {
-       {.name = "uid-owner", .id = O_USER, .type = XTTYPE_STRING},
-       {.name = "gid-owner", .id = O_GROUP, .type = XTTYPE_STRING},
+       {.name = "uid-owner", .id = O_USER, .type = XTTYPE_STRING,
+        .flags = XTOPT_INVERT},
+       {.name = "gid-owner", .id = O_GROUP, .type = XTTYPE_STRING,
+        .flags = XTOPT_INVERT},
        {.name = "socket-exists", .id = O_SOCK_EXISTS, .type = XTTYPE_NONE},
        XTOPT_TABLEEND,
 };
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe
netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to