This file is indexed.

/etc/dhcp/dhclient-exit-hooks.d/zentyal-dhcp-exit is in zentyal-network 2.3.13+quantal1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
libexec=/usr/share/zentyal-network

firewall_script=/usr/share/zentyal-firewall/dhcp-firewall.pl

ebox_bound() {
    $libexec/dhcp-address.pl $interface $new_ip_address $new_subnet_mask
    $libexec/dhcp-nameservers.pl $interface $new_domain_name_servers
    $libexec/dhcp-gateway.pl $interface $ebox_routers

    if ( [ -x $firewall_script ] ); then
        $firewall_script
    fi;
}

ebox_renew() {
    change="no"
    if [ "z$new_ip_address" != "z$old_ip_address" ] ; then
        change="yes"
    fi
    if [ "z$new_subnet_mask" != "z$old_subnet_mask" ] ; then
        change="yes"
    fi
    if [ "$change" == "yes" ] ; then
        $libexec/dhcp-address.pl $interface $new_ip_address \
                    $new_subnet_mask
    fi
    if [ "z$new_domain_name_servers" != "z$old_domain_name_servers" ] ; then
        change="yes"
        $libexec/dhcp-nameservers.pl $interface $new_domain_name_servers
    fi
    if [ "z$ebox_routers" != "z$old_routers" ] ; then
        $libexec/dhcp-gateway.pl $interface $ebox_routers
    fi
    if [ "$change" == "yes" ] ; then
        if ( [ -x $firewall_script ] ); then
            $firewall_script
        fi;
    fi
}

ebox_expire() {
    $libexec/dhcp-clear.pl $interface

    if ( [ -x $firewall_script ] ); then
        $firewall_script $interface
    fi;
}

# Do nothing if network module is disbled
if  /etc/init.d/zentyal network status; then
    case $reason in
        BOUND)
            ebox_bound
            ;;
        REBOOT|RENEW|REBIND|TIMEOUT)
            ebox_renew
            ;;
        EXPIRE|FAIL|RELEASE)
            ebox_expire
            ;;
        *)
            ;;
    esac
fi