~ubuntu-branches/ubuntu/trusty/maradns/trusty-proposed

« back to all changes in this revision

Viewing changes to deadwood-3.2.02/sqa/dwood2rc_n_hash_magic_number/do.test

  • Committer: Package Import Robot
  • Author(s): Dariusz Dwornikowski
  • Date: 2014-02-16 19:36:04 UTC
  • mfrom: (1.2.11) (21.1.11 experimental)
  • Revision ID: package-import@ubuntu.com-20140216193604-xtmcopn9pilzszae
Tags: 2.0.09-1
* New maintainer (Closes: #739084)
* New upstream release to unstable
* Several security bugs (Closes: #739755)
   - security bugfix for CVE-2011-5055, CVE-2011-5056, CVE-2012-0024,
   CVE-2012-1570
   - security bugfix agains blind spoofing attack (no CVE number)
   - security bugfix for packet of death attack (no CVE number)
* Bump standards to 3.9.5
* Updated d/postinst to no longer modify conffiles (Closes: #710903)
* Init script fixed (Closes: #709826)
* --reinstall no longer kills the process (Closes: #701657)
* Updated old d/changelog entries, added information when the CVEs were
  fixed: 2.0.06-1, 2.0.04-1, 1.4.11-1, 1.2.12.06-1, 1.2.12.05-1, 1.0.28-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# Make sure Deadwood works
4
 
# NOTE: No startup of MaraDNS because 127.0.0.2 is *supposed* to be
5
 
#       non-responsive
6
 
 
7
 
for VALUE in 1575357809 1441614611 ; do
8
 
 
9
 
cat > dwood2rc << EOF
10
 
chroot_dir="$( pwd )"
11
 
ipv4_bind_addresses="127.0.0.1"
12
 
upstream_servers = {}
13
 
upstream_servers["."]="127.0.0.2"
14
 
recursive_acl="127.0.0.1/16"
15
 
maxprocs=8
16
 
timeout_seconds=1
17
 
hash_magic_number=${VALUE}
18
 
num_retries=0
19
 
filter_rfc1918 = 0
20
 
EOF
21
 
 
22
 
../../src/Deadwood -f dwood2rc | grep -v version | grep -v at | \
23
 
        sed 's/[(].*[)]//' | awk '{if($NF ~ /x01/) 
24
 
        {printf "%s ",$NF}else{print $1}}' | grep www | sort -u &
25
 
 
26
 
#../../src/Deadwood -f dwood2rc &
27
 
 
28
 
sleep 1
29
 
askmara -t 1 Awww1foo.example.com. > /dev/null
30
 
askmara -t 1 Awww1bar.example.com. > /dev/null
31
 
askmara -t 1 Awww1foo.example.net. > /dev/null
32
 
sleep 1
33
 
killall Deadwood > /dev/null 2>&1
34
 
sleep 1
35
 
 
36
 
done
37
 
 
38
 
#rm dwood2rc