From: Pablo M. Bermudo Garay Date: Mon, 5 Jun 2017 22:08:26 +0000 (+0200) Subject: tests: xlate: generalize owner X-Git-Tag: v1.6.2~43 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8e62f572d8ab00b076d07b658d64251996b3b5b2;p=thirdparty%2Fiptables.git tests: xlate: generalize owner 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 Signed-off-by: Pablo Neira Ayuso --- 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