All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iptables 1/3] tests: xlate: generalize owner
@ 2017-06-05 22:08 Pablo M. Bermudo Garay
  2017-06-05 22:08 ` [PATCH iptables 2/3] libip6t_icmp6: xlate: remove leftover space Pablo M. Bermudo Garay
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Pablo M. Bermudo Garay @ 2017-06-05 22:08 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Pablo M. Bermudo Garay

The owner name was hard-coded in the owner extension translation test.
The translation process requires the user to exist in the system, so
this commit replaces it with the usual UID_MIN value (1000).

Signed-off-by: Pablo M. Bermudo Garay <pablombg@gmail.com>
---
 extensions/libxt_owner.txlate | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extensions/libxt_owner.txlate b/extensions/libxt_owner.txlate
index eeca168b..86fb0585 100644
--- a/extensions/libxt_owner.txlate
+++ b/extensions/libxt_owner.txlate
@@ -4,5 +4,5 @@ nft add rule ip nat OUTPUT tcp dport 80 skuid 0 counter accept
 iptables-translate -t nat -A OUTPUT -p tcp --dport 80 -m owner --gid-owner 0-10 -j ACCEPT
 nft add rule ip nat OUTPUT tcp dport 80 skgid 0-10 counter accept
 
-iptables-translate -t nat -A OUTPUT -p tcp --dport 80 -m owner ! --uid-owner pablo -j ACCEPT
+iptables-translate -t nat -A OUTPUT -p tcp --dport 80 -m owner ! --uid-owner 1000 -j ACCEPT
 nft add rule ip nat OUTPUT tcp dport 80 skuid != 1000 counter accept
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-06-06 15:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-05 22:08 [PATCH iptables 1/3] tests: xlate: generalize owner Pablo M. Bermudo Garay
2017-06-05 22:08 ` [PATCH iptables 2/3] libip6t_icmp6: xlate: remove leftover space Pablo M. Bermudo Garay
2017-06-06 15:43   ` Pablo Neira Ayuso
2017-06-05 22:08 ` [PATCH iptables 3/3] xtables-translate: fix double space before comment Pablo M. Bermudo Garay
2017-06-06 15:43   ` Pablo Neira Ayuso
2017-06-06 15:43 ` [PATCH iptables 1/3] tests: xlate: generalize owner Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.