debian/0000755000000000000000000000000013421670171007170 5ustar debian/dhcpcd5.dhcpcd.init0000644000000000000000000000352712433163164012623 0ustar #!/bin/sh # ### BEGIN INIT INFO # Provides: dhcpcd # Required-Start: $local_fs # Required-Stop: $local_fs # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: IPv4 DHCP client with IPv4LL support # Description: ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin DHCPCD=/sbin/dhcpcd NAME=dhcpcd PIDFILE=/var/run/dhcpcd.pid test -x $DHCPCD || exit 0 INTERFACES=/etc/network/interfaces . /lib/lsb/init-functions sanity() { local x= case "$($DHCPCD --version)" in [1234].*) log_failure_msg "Not running $NAME because an older version" \ "is currently preferred" exit 6 esac for x in /var/run/dhcpcd-*.pid; do [ -f "$x" ] || continue log_failure_msg "Not running $NAME because there is aleady an" \ "interface specific instance" log_failure_msg "$x" exit 6 done if grep -q "^[[:space:]]*iface[[:space:]]*.*[[:space:]]*inet[[:space:]]*dhcp" \ $INTERFACES; then log_failure_msg "Not running $NAME because $INTERFACES" log_failure_msg "defines some interfaces that will use a" \ "DHCP client" exit 6 fi } case "$1" in start) sanity if pidofproc -p $PIDFILE $DHCPCD >/dev/null; then log_warning_msg "$NAME is already running" exit 0 fi $DHCPCD ;; stop) sanity $DHCPCD -x ;; restart|force-reload) sanity $DHCPCD -x $DHCPCD ;; try-restart) if ! pidofproc -p $PIDFILE $DHCPCD >/dev/null; then log_warning_msg "$NAME is not running" else sanity $DHCPCD -x $DHCPCD fi ;; reload) if ! pidofproc -p $PIDFILE $DHCPCD >/dev/null; then log_failure_msg "$NAME is not running" exit 7 fi sanity $DHCPCD -n ;; status) status_of_proc -p $PIDFILE $DHCPCD "$NAME" || exit $? ;; *) log_failure_msg "Usage: /etc/init.d/dhcpcd {start|stop|restart|try-restart|force-reload|status}" exit 1 ;; esac debian/changelog0000644000000000000000000000441213421670147011046 0ustar dhcpcd5 (6.0.5-2build0.14.04.1) trusty-security; urgency=medium * fake sync from Debian -- Mike Salvatore Tue, 22 Jan 2019 14:35:03 -0500 dhcpcd5 (6.0.5-2) unstable; urgency=medium * QA upload. [ Pierre Schweitzer ] * Fix denial of service (CVE-2014-6060) in dhcpcd5. (Closes: #770043). [ Salvatore Bonaccorso ] * Refresh CVE-2014-6060.patch (offset) * Update patch headers for CVE-2014-6060.patch. Wrap long lines in fields and use Description field. Add Applied-Upstream value. * Set Maintainer to Debian QA Group (cf. #770082) -- Salvatore Bonaccorso Wed, 19 Nov 2014 17:08:30 +0100 dhcpcd5 (6.0.5-1.1) unstable; urgency=low * Non-maintainer upload. * debian/rules (taken from Ubuntu, thanks!): - If config.mk doesn't exist, don't try to run dh_auto_clean. This fixes a FTBFS. (Closes: #723967) (LP: #1251776) * Add missing include for platform-bsd using patch from Petr Salinger (Closes: #719588) -- Christoph Egger Wed, 04 Dec 2013 14:47:10 +0100 dhcpcd5 (6.0.5-1) unstable; urgency=medium * New upstream release -- Roy Marples Sun, 4 Aug 2013 08:00:44 +0100 dhcpcd5 (6.0.2-1) unstable; urgency=medium * New upstream release * recommend the resolvconf package as well (closes: 705759) * -t 0 works (closes: 707705) -- Roy Marples Tue, 25 Jun 2013 14:29:02 +0100 dhcpcd5 (5.5.6-1) unstable; urgency=medium * New upstream release * 50-ntp.conf now checks for a valid /etc/ntp.conf (closes: 630420) * Works better with netlink messages to work on bridges (closes: 634331) -- Roy Marples Sun, 1 Apr 2012 09:03:27 +0100 dhcpcd5 (5.2.12-1) unstable; urgency=medium * New upstream release -- Roy Marples Wed, 6 Mar 2011 10:16:22 +0100 dhcpcd5 (5.2.11-1) unstable; urgency=low * New upstream release -- Roy Marples Mon, 28 Feb 2011 20:35:37 +0100 dhcpcd5 (5.2.8-1) unstable; urgency=low * New upstream release -- Roy Marples Fri, 22 Oct 2010 19:47:32 +0100 dhcpcd5 (5.2.7-3) unstable; urgency=low * Initial upload to Debian (closes: #594672) -- Roy Marples Tue, 23 Sep 2010 10:57:38 +0100 debian/compat0000644000000000000000000000000212433163164010367 0ustar 9 debian/rules0000755000000000000000000000077312433163164010260 0ustar #!/usr/bin/make -f override_dh_auto_clean: [ ! -f config.mk ] || dh_auto_clean override_dh_auto_configure: dh_auto_configure -- --prefix= --libexecdir=/lib/dhcpcd \ --mandir=/usr/share/man --dbdir=/var/lib/dhcpcd5 \ --with-hooks=ntp override_dh_installinit: dh_installinit --name=dhcpcd --no-start override_dh_install: dh_install mv debian/dhcpcd5/sbin/dhcpcd debian/dhcpcd5/sbin/dhcpcd5 mv debian/dhcpcd5/usr/share/man/man8/dhcpcd.8 \ debian/dhcpcd5/usr/share/man/man8/dhcpcd5.8 %: dh $@ debian/patches/0000755000000000000000000000000012433163164010620 5ustar debian/patches/series0000644000000000000000000000004212433163164012031 0ustar kfreebsd.diff CVE-2014-6060.patch debian/patches/kfreebsd.diff0000644000000000000000000000030112433163164013231 0ustar --- a/platform-bsd.c +++ a/platform-bsd.c @@ -44,6 +44,7 @@ #include #include +#include "common.h" #include "dhcpcd.h" #include "if-options.h" #include "platform.h" debian/patches/CVE-2014-6060.patch0000644000000000000000000000171112433163164013233 0ustar Description: Fix CVE-2014-6060 Only bits 1 and 2 are used in the DHCP overload option, so when we encounter the option set the last bit as well to ensure servername and bootfile are only checked once as their check unsets bits 1 and 2. Thanks to Tobias Stoeckmann. Origin: upstream, http://roy.marples.name/projects/dhcpcd/ci/1d2b93aa5ce25a8a710082fe2d36a6bf7f5794d5?sbs=0 Bug-Debian: https://bugs.debian.org/770043 From: Roy Marples Applied-Upstream: 6.4.3 --- a/dhcp.c +++ b/dhcp.c @@ -343,9 +343,12 @@ get_option(const struct dhcp_message *dh goto exit; break; case DHO_OPTIONSOVERLOADED: - /* Ensure we only get this option once */ + /* Ensure we only get this option once by setting + * the last bit as well as the value. + * This is valid because only the first two bits + * actually mean anything in RFC2132 Section 9.3 */ if (!overl) - overl = p[1]; + overl = 0x80 | p[1]; break; } l = *p++; debian/control0000644000000000000000000000137712433163164010604 0ustar Source: dhcpcd5 Section: net Priority: optional Maintainer: Debian QA Group Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4.0 Homepage: http://roy.marples.name/projects/dhcpcd Package: dhcpcd5 Provides: dhcp-client Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: dhcpcd-sv, dhcpcd (<< 3.2.3-6) Recommends: openresolv | resolvconf Suggests: dhcpcd-gtk Description: DHCPv4, IPv6RA and DHCPv6 client with IPv4LL support dhcpcd is a one stop network management daemon which includes * RFC compliant DHCPv4 and DHCPv6 clients * DHCPv6 Prefix Delegation support * IPv4LL (aka ZeroConf) support * ARP address conflict resolution * Link carrier detection * Wireless SSID profiles * ARP ping profiles debian/source/0000755000000000000000000000000012433163164010471 5ustar debian/source/format0000644000000000000000000000001412433163164011677 0ustar 3.0 (quilt) debian/prerm0000644000000000000000000000016012433163164010236 0ustar #!/bin/sh -e if [ "$1" != "upgrade" ]; then update-alternatives --remove dhcpcd /sbin/dhcpcd5 fi #DEBHELPER# debian/copyright0000644000000000000000000000300312433163164011120 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Maintainer: Roy Marples Source: http://roy.marples.name/projects/dhcpcd Copyright: 2009-2013 Roy Marples License: BSD-2 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/postrm0000644000000000000000000000012112433163164010432 0ustar #!/bin/sh -e if [ "$1" = purge ]; then rm -rf /var/lib/dhcpcd5 fi #DEBHELPER# debian/dhcpcd5.lintian-overrides0000644000000000000000000000026112433163164014062 0ustar dhcpcd5: init.d-script-missing-dependency-on-remote_fs etc/init.d/dhcpcd: required-start dhcpcd5: init.d-script-missing-dependency-on-remote_fs etc/init.d/dhcpcd: required-stop debian/watch0000644000000000000000000000012712433163164010222 0ustar version=3 ftp://roy.marples.name/pub/dhcpcd/dhcpcd-([0-9\.]*)\.tar\.bz2 debian uupdate debian/postinst0000644000000000000000000000030212433163164010772 0ustar #!/bin/sh -e update-alternatives --quiet --install /sbin/dhcpcd dhcpcd /sbin/dhcpcd5 50 \ --slave /usr/share/man/man8/dhcpcd.8.gz dhcpcd.8.gz \ /usr/share/man/man8/dhcpcd5.8.gz #DEBHELPER#