~dktrkranz/debomatic/debomatic

« back to all changes in this revision

Viewing changes to pbuilderhooks/B00iptables

  • Committer: Luca Falavigna
  • Date: 2013-06-05 13:18:02 UTC
  • mfrom: (1.4.56 debomatic)
  • Revision ID: dktrkranz@debian.org-20130605131802-og6623opcn2cv9mt
StableĀ releaseĀ 0.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
 
# GID must match the one defined by BUILDUSERID into pbuilderrc file
4
 
iptables -D OUTPUT ! -s 127.0.0.1 ! -d 127.0.0.1 -m owner --gid-owner 1234 -j REJECT --reject-with icmp-port-unreachable 
 
3
if [ "$(uname -s)" = "Linux" ]
 
4
then
 
5
        # GID must match the one defined by BUILDUSERID into pbuilderrc file
 
6
        iptables -D OUTPUT ! -s 127.0.0.1 ! -d 127.0.0.1 -m owner --gid-owner 1234 -j REJECT --reject-with icmp-port-unreachable
 
7
        iptables -nL OUTPUT
 
8
fi