[iptables] Fix iptables-save output of libxt_owner match

Patrick McHardy netfilter-cvslog-bounces at lists.netfilter.org
Fri Jun 6 14:15:16 CEST 2008


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commit;h=e2562c8207dcb730ef2406faccf1d55ec42994f6
commit e2562c8207dcb730ef2406faccf1d55ec42994f6
Author:     Lutz Jaenicke <ljaenicke at innominate.com>
AuthorDate: Fri Jun 6 14:01:05 2008 +0200
Commit:     Patrick McHardy <kaber at trash.net>
CommitDate: Fri Jun 6 14:01:05 2008 +0200

    Fix iptables-save output of libxt_owner match
    
    The _save functions need to use the same syntax that is used for parsing
    the input instead of "user readable" output.
       via  e2562c8207dcb730ef2406faccf1d55ec42994f6 (commit)
      from  0439dadeb3913331c4a25a9a8961cc205561f60f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e2562c8207dcb730ef2406faccf1d55ec42994f6
Author: Lutz Jaenicke <ljaenicke at innominate.com>
Date:   Fri Jun 6 14:01:05 2008 +0200

    Fix iptables-save output of libxt_owner match
    
    The _save functions need to use the same syntax that is used for parsing
    the input instead of "user readable" output.

-----------------------------------------------------------------------

 extensions/libxt_owner.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
The _save functions need to use the same syntax that is used for parsing
the input instead of "user readable" output.

diff --git a/extensions/libxt_owner.c b/extensions/libxt_owner.c
index 85c9602..55666e9 100644
--- a/extensions/libxt_owner.c
+++ b/extensions/libxt_owner.c
@@ -498,12 +498,12 @@ owner_mt_save_v0(const void *ip, const struct xt_entry_match *match)
 {
 	const struct ipt_owner_info *info = (void *)match->data;
 
-	owner_mt_print_item_v0(info, "owner UID match ", IPT_OWNER_UID, true);
-	owner_mt_print_item_v0(info, "owner GID match ", IPT_OWNER_GID, true);
-	owner_mt_print_item_v0(info, "owner PID match ", IPT_OWNER_PID, true);
-	owner_mt_print_item_v0(info, "owner SID match ", IPT_OWNER_SID, true);
+	owner_mt_print_item_v0(info, "--uid-owner ", IPT_OWNER_UID, true);
+	owner_mt_print_item_v0(info, "--gid-owner ", IPT_OWNER_GID, true);
+	owner_mt_print_item_v0(info, "--pid-owner ", IPT_OWNER_PID, true);
+	owner_mt_print_item_v0(info, "--sid-owner ", IPT_OWNER_SID, true);
 #ifdef IPT_OWNER_COMM
-	owner_mt_print_item_v0(info, "owner CMD match ", IPT_OWNER_COMM, true);
+	owner_mt_print_item_v0(info, "--cmd-owner ", IPT_OWNER_COMM, true);
 #endif
 }
 
@@ -512,10 +512,10 @@ owner_mt6_save_v0(const void *ip, const struct xt_entry_match *match)
 {
 	const struct ip6t_owner_info *info = (void *)match->data;
 
-	owner_mt6_print_item_v0(info, "owner UID match ", IPT_OWNER_UID, true);
-	owner_mt6_print_item_v0(info, "owner GID match ", IPT_OWNER_GID, true);
-	owner_mt6_print_item_v0(info, "owner PID match ", IPT_OWNER_PID, true);
-	owner_mt6_print_item_v0(info, "owner SID match ", IPT_OWNER_SID, true);
+	owner_mt6_print_item_v0(info, "--uid-owner ", IPT_OWNER_UID, true);
+	owner_mt6_print_item_v0(info, "--gid-owner ", IPT_OWNER_GID, true);
+	owner_mt6_print_item_v0(info, "--pid-owner ", IPT_OWNER_PID, true);
+	owner_mt6_print_item_v0(info, "--sid-owner ", IPT_OWNER_SID, true);
 }
 
 static void owner_mt_save(const void *ip, const struct xt_entry_match *match)



More information about the netfilter-cvslog mailing list