]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: xlate: generalize owner
authorPablo M. Bermudo Garay <pablombg@gmail.com>
Mon, 5 Jun 2017 22:08:26 +0000 (00:08 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 6 Jun 2017 15:41:33 +0000 (17:41 +0200)
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>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_owner.txlate

index eeca168b0304b30b02cc6024cb57ee9141578f6b..86fb0585352fc5f54cc3b9ef06bb040c5703d656 100644 (file)
@@ -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