SHA256
1
0
forked from pool/dhcp
Commit Graph

206 Commits

Author SHA256 Message Date
Reinhard Max
2771685b89 Accepting request 951570 from home:manfred999
- modify source if-up.d.dhcpd-restart-hook:
  * fix option parsing
  * do not call /usr/libexec/dhcp/dhcpd directly, use systemd for it

OBS-URL: https://build.opensuse.org/request/show/951570
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=241
2022-02-04 13:21:47 +00:00
Reinhard Max
92a09ecba6 Accepting request 946921 from home:jsegitz:branches:network:dhcp
- Drop PrivateDevices and ProtectClock hardenings. They clash with
  the chroot logic (bsc#1194722)

OBS-URL: https://build.opensuse.org/request/show/946921
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=239
2022-01-17 10:42:10 +00:00
Reinhard Max
84afc13868 Accepting request 946765 from home:gmbr3:Active
- Add now working CONFIG parameter to sysusers generator

OBS-URL: https://build.opensuse.org/request/show/946765
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=238
2022-01-17 10:41:14 +00:00
Reinhard Max
6cacf40c5a Accepting request 918938 from home:jsegitz:branches:systemdhardening:network:dhcp
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort

OBS-URL: https://build.opensuse.org/request/show/918938
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=237
2022-01-12 17:50:48 +00:00
Reinhard Max
59be18d135 OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=234 2021-10-26 16:24:06 +00:00
Reinhard Max
e3cdf90ee1 OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=233 2021-10-26 16:18:08 +00:00
Reinhard Max
63aa52ad28 - Add a fallback definition for %make_build to fix build on SLE-12.
- Handle sysusers with a bcond to improve readability and simplify
  removal once we don't have to support SLE-12 anymore.
- bsc#1192020: Drop the obsolete dependency on "group(nogroup)".

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=232
2021-10-26 12:49:46 +00:00
Reinhard Max
afefe9a9cc - bsc#1186249: Remove remaining references to /etc/init.d from
dhclient-script and if-up.d.dhcpd-restart-hook .
- Use , instead of - or / as a separator in sed when dealing with
  path names.

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=230
2021-08-05 12:00:14 +00:00
Reinhard Max
5402a85a16 - Add -fno-strict-aliasing to CFLAGS to avoid a segfault in dhcpd
(boo#1186631).

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=228
2021-05-31 09:27:00 +00:00
Reinhard Max
2fe0803578 OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=227 2021-05-27 15:39:36 +00:00
Reinhard Max
0b90b6e2e8 - Update to 4.4.2-P1:
* CVE-2021-25217, bsc#1186382, dhcp-CVE-2021-25217.patch: A
    buffer overrun in lease file parsing code can be used to
    exploit a common vulnerability shared by dhcpd and dhclient.
- Error out, if %version and %isc_version are not in sync.

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=226
2021-05-27 12:05:59 +00:00
Reinhard Max
9f2ff0f90b Accepting request 866365 from home:dirkmueller:branches:network:dhcp
- update to 4.4.2:
  * Please note that that ISC DHCP is now licensed under the Mozilla Public
  License, MPL 2.0.
  In general, the areas of focus for ISC DHCP 4.4 were:
  1. Dynamic DNS additions
  2. dhclient improvements
  3. Support for dynamic shared libraries
  * Added the interface name to socket initialization failure log messages.
    Prior to this the log messages stated only the error reason without
    stating the target interface.
  * Corrected buffer pointer logic in dhcrelay functions that manipulate
    agent relay options. Thanks to Thomas Imbert of MSRC Vulnerabilities
    & Mitigations for reporting the issue.
  * Corrected unresolved symbol errors building relay_unittests when
    configured to build using libtool.
  * A new configuration parameter, ping-cltt-secs (v4 operation only), has
    been added to allow the user to specify the number of seconds that must
    elapse since CLTT before a ping check is conducted.  Prior to this, the
    value was hard coded at 60 seconds.  Please see the server man pages for
    a more detailed discussion.
  * A new configuration parameter, ping-timeout-ms (v4 operation only),
    has been added that allows the user to specify the amount of time
    the server waits for a ping-check response in milliseconds rather
    than in seconds (via ping-timeout). When greater than zero, the value
    of ping-timeout-ms will override the value of ping-timeout.  Thanks
    to Jay Doran from Bluecat Networks for suggesting this feature.
  * An experimental tool called, Keama (KEA Migration Assistant), which helps
    translate ISC DHCP configurations to Kea configurations, is now included
    in the distribution.
  * Corrected a misuse of the BIND9 DDNS API which caused DDNS updates to be

OBS-URL: https://build.opensuse.org/request/show/866365
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=224
2021-02-10 14:21:23 +00:00
Reinhard Max
5153edeabd Accepting request 855790 from home:lnussel:usrmove
- prepare usrmerge (boo#1029961)

OBS-URL: https://build.opensuse.org/request/show/855790
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=222
2021-01-08 08:56:27 +00:00
Reinhard Max
cc6f1f08c7 OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=220 2020-10-21 17:19:59 +00:00
Reinhard Max
9b32283a56 - Complete tha /var/run -> /run migration by renaming
/var/lib/dhcp/var/run accordingly (boo#1177951).

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=219
2020-10-21 17:18:54 +00:00
Reinhard Max
d3639fe556 typo
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=217
2020-09-17 15:19:15 +00:00
Reinhard Max
e9c2ed32e7 - Don't create dhclient.leases in %post. It affects transactional
updates and the files don't need to pre-exist (boo#1129951).

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=216
2020-09-17 15:03:05 +00:00
Reinhard Max
1f0e368f81 Accepting request 831695 from home:fbui:branches:network:dhcp
- Drop dependency on insser-compat

- /var/run is legacy -> /run should be used instead

OBS-URL: https://build.opensuse.org/request/show/831695
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=215
2020-09-14 09:47:24 +00:00
Reinhard Max
d26badb1f0 Accepting request 817621 from home:dimstar:Factory
- The server package still requires insserv-compat: the .service
  files only call out to legacy sysv init scripts that are still
  sourcing /etc/rc.status (boo#1173440).

- insserv is not required anymore

OBS-URL: https://build.opensuse.org/request/show/817621
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=213
2020-06-29 07:31:47 +00:00
Reinhard Max
07538a3393 Accepting request 817028 from home:gmbr3:branches:Base:System3
- Fixes for %_libexecdir changing to /usr/libexec

OBS-URL: https://build.opensuse.org/request/show/817028
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=211
2020-06-25 10:27:29 +00:00
Reinhard Max
ed443ff263 Accepting request 816619 from home:elvigia:branches:network:dhcp
- insserv is not required anymore

OBS-URL: https://build.opensuse.org/request/show/816619
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=210
2020-06-25 05:41:10 +00:00
Reinhard Max
9298e1cb90 Accepting request 794048 from home:kukuk:container
- Use sysusers.d instead of shadow

OBS-URL: https://build.opensuse.org/request/show/794048
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=208
2020-04-28 12:18:44 +00:00
Reinhard Max
2699eb18c7 - Add -fcommon to CFLAGS to fix build with gcc10 (boo#1160262).
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=206
2020-03-02 17:33:34 +00:00
Reinhard Max
b66b30fd53 Accepting request 766200 from home:kukuk:container
- Change remaining systemd requires to weak dependencies, too.
- Don't require net-tools with SLE15 or newer, it does not contain
  anything anymore we need
- Get ride of coreutils dependency

OBS-URL: https://build.opensuse.org/request/show/766200
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=204
2020-01-22 08:01:33 +00:00
Reinhard Max
fb531fa37a Accepting request 734636 from home:kukuk:container
- Make systemd a weak dependency as we don't want that in a container

OBS-URL: https://build.opensuse.org/request/show/734636
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=202
2019-10-22 13:55:46 +00:00
Reinhard Max
2ec1fec7eb - bsc#1134078, CVE-2019-6470, dhcp-CVE-2019-6470.patch:
DHCPv6 server crashes regularly.
- Add compile option --enable-secs-byteorder to avoid duplicate
  lease warnings [bsc#1089524].
- bsc#1136572: Use IPv6 when called as dhclient6, dhcpd6, and
  dhcrelay6 (0021-dhcp-ip-family-symlinks.patch).

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=201
2019-10-15 15:56:51 +00:00
Reinhard Max
8ac6ae2920 Accepting request 722585 from home:dirkmueller:branches:network:dhcp
- dhclient-script: replace host(1) with getent, which is more
  lightweight (part of glibc and does not pull in bind-utils)

OBS-URL: https://build.opensuse.org/request/show/722585
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=199
2019-08-27 12:02:07 +00:00
Reinhard Max
b264d424ef Accepting request 720441 from home:marxin:static
Use FAT LTO objects in order to provide proper static library.

OBS-URL: https://build.opensuse.org/request/show/720441
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=198
2019-08-07 13:53:08 +00:00
Reinhard Max
12116240fb Accepting request 714701 from home:1Antoine1:branches:network:dhcp
- Remove SuSEfirewall2 services since SuSEfirewall2 has been
  replaced by firewalld (which already provides a service for
  dhcp).

See also https://lists.opensuse.org/opensuse-factory/2019-01/msg00490.html.

OBS-URL: https://build.opensuse.org/request/show/714701
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=196
2019-07-22 10:30:41 +00:00
OBS User buildservice-autocommit
1507a05c01 Accepting request 703667 from network:dhcp
auto commit by copy to link target

OBS-URL: https://build.opensuse.org/request/show/703667
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=195
2019-05-17 21:35:46 +00:00
OBS User buildservice-autocommit
4525b4ac0b Updating link to change in openSUSE:Factory/dhcp revision 112.0
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=63b33523b42bf5f2e7717a1332a8a8bd
2019-05-17 21:35:46 +00:00
Reinhard Max
511df30c1d Accepting request 701948 from home:dimstar:Factory
- Add workaround to require insserv-compat until the package is
  converted to full systemd units (boo#1133632).

OBS-URL: https://build.opensuse.org/request/show/701948
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=194
2019-05-17 08:41:13 +00:00
Reinhard Max
7d34fc9234 Accepting request 678162 from home:fbui:branches:network:dhcp
- Drop use of $FIRST_ARG in .spec
  The use of $FIRST_ARG was probably required because of the
  %service_* rpm macros were playing tricks with the shell positional
  parameters. This is bad practice and error prones so let's assume
  that no macros should do that anymore and hence it's safe to assume
  that positional parameters remains unchanged after any rpm macro
  call.

OBS-URL: https://build.opensuse.org/request/show/678162
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=192
2019-03-05 16:24:38 +00:00
Reinhard Max
1ba334be32 Accepting request 667634 from home:jbrielmaier:branches:network:dhcp
- Remove wrong path to documentation in the description of the
  server package

OBS-URL: https://build.opensuse.org/request/show/667634
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=190
2019-01-21 17:51:49 +00:00
Ismail Dönmez
e6da93e899 Accepting request 614191 from home:scarabeus_iv:branches:network:dhcp
- Drop doc subpackage as we do not build on < SLE12 anyway so it
  evaluated always as true
- Do not condition flags settings for codestreams that we are no
  longer building for
- Use %license macro for license as mandated by new TW requirements

- Format with spec-cleaner (automatic, remove FIXMEs)
- Use getent to detect created user prior doing it again
- Drop ldapcasa as it evaluates as false on all current products
- Drop ldap conditional as it is always true

- Kill omc configs wrt fate#301838

OBS-URL: https://build.opensuse.org/request/show/614191
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=188
2018-06-26 09:02:03 +00:00
Reinhard Max
e9398b14d9 - Update to dhcp-4.3.6-P1:
* CVE-2018-5733, bsc#1083303: reference count overflow in dhcpd.
  * CVE-2018-5732, bsc#1083302: buffer overflow bug in dhclient.
  * Plugged a socket descriptor leak in OMAPI
  * The server now allows the client identifier (option 61) to own
    leases in more than one subnet concurrently [ISC-Bugs #41358].
  * When replying to a DHCPINFORM, the server will now include
    options specified at the pool scope, provided the ciaddr field
    of the DHCPINFORM is populated.
    [ISC-Bugs #43219] [ISC-Bugs #45051].
  * When memory allocation fails in a repeated way the process
    writes "Run out of memory." on the standard error and exists
    with status 1  [ISC-Bugs #32744].
  * The new lmdb (Lightning Memory DataBase) bind9 configure
    option is now disabled by default to avoid the presence of
    this library to be detected which can lead to a link failure.
    [ISC-Bugs #45069]
  * The linux interface discovery code has been modified to use
    getifaddrs() as is done for BSD and OS-X.
    [ISC-Bugs #28761] and others.
  * Fixed a bug in OMAPI that causes omshell to crash when a
    name-value pair with a zero length value is shipped in an
    object [ISC-Bugs #29108].
  * On 64-bit platforms, dhclient now generates the correct value
    for the script environment variable, "expiry", the lease
    expiry value exceeds 0x7FFFFFFF [ISC-Bugs #43326].
  * Common timer logic was modified to cap the maximum timeout
    values at 0x7FFFFFFF - 1 [ISC-Bugs #28038].
  * DHCP6 FQDN option unpacking code now correctly handles values
    that contain spaces, special, or non-printable characters.

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=186
2018-03-08 13:53:43 +00:00
Nirmoy Das
5a5d3d032e Accepting request 561794 from home:jsjhb:branches:network:dhcp
- add PIDFile= setting to dhcrelay.service, without this systemd
  stops the service immediately after starting

OBS-URL: https://build.opensuse.org/request/show/561794
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=184
2018-02-15 12:29:40 +00:00
Nirmoy Das
fabf7e7364 Accepting request 571636 from home:ndas:branches:network:dhcp
[+0022-Optimized-if-and-when-DNS-client-context-and-ports.patch]

OBS-URL: https://build.opensuse.org/request/show/571636
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=182
2018-02-01 09:38:27 +00:00
Nirmoy Das
6e52066a8e Accepting request 567653 from home:ndas:branches:network:dhcp
- Optimized if and when DNS client context and ports
 are initted (bsc#1073935)
 [+ 0022-Optimized-if-and-when-DNS-client-context-and-.patch]

- Plugs a socket descriptor leak in OMAPI(bsc#1076119, CVE-2017-3144) 
  [ +0021-master-Plugs-a-socket-descriptor-leak-in-OMAPI.patch]

OBS-URL: https://build.opensuse.org/request/show/567653
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=181
2018-02-01 09:07:17 +00:00
Markos Chandras
fe306dab60 Accepting request 556893 from home:markoschandras:branches:network:dhcp
- Drop old sysvinit support from the spec file. All the supported
  openSUSE distributions are systemd based so there isn't much point
  in keeping sysvinit support and files around.

OBS-URL: https://build.opensuse.org/request/show/556893
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=179
2017-12-15 11:00:06 +00:00
Nirmoy Das
917d150f5d Accepting request 544891 from home:RBrownSUSE:branches:network:dhcp
Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468)

OBS-URL: https://build.opensuse.org/request/show/544891
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=178
2017-11-24 10:37:35 +00:00
Nirmoy Das
8e9bc2bd04 Accepting request 532836 from home:dimstar:Factory
Sure.. I can keep on rebasing it.. I don't mind

OBS-URL: https://build.opensuse.org/request/show/532836
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=177
2017-10-18 09:10:44 +00:00
Nirmoy Das
c3ef98f4f3 Accepting request 510075 from home:bmwiedemann:branches:network:dhcp
use .gz year instead of current one to make build reproducible

OBS-URL: https://build.opensuse.org/request/show/510075
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=176
2017-10-09 08:22:17 +00:00
Nirmoy Das
853382bddd Accepting request 508601 from home:ndas:branches:network:dhcp
- fixed a typo in nis-servers option name breaking the config file introduced 
  in previous change to workaround issues in NetworkManager parser.
- Update to dhcp-4.3.5
  - Corrected a bug which could cause the server to sporadically crash while
    loading lease files with the lease-id-format is set to "hex".  Our thanks
    to Jay Ford, University of Iowa for reporting the issue.
    [ISC-Bugs #43185]
  - Eliminated a noisy, but otherwise harmless debug log statment that may
    appear during server startup when building with --enable-binary-leases
    and configuring multiple pools in a shared network.  Thanks to Fernando
    Soto from BlueCat Networks for reporting the issue and supplying a patch.
    [ISC-Bugs #43262]
  - Fixed util/bindvar.sh error handling.
    [ISC-Bugs #41973]
  - Correct error message in relay to use remote id length instead
    of circuit id length.
    [ISC-Bugs #42556]
  - Add logic to test directory Makefiles to avoid copying Attfile(s)
    when building within the source tree.  This eliminates a noisy but
    otherwise harmless error message when running "make check".
    [ISC-Bugs #41883]
  - Leases are now scrubbed of certain prior use information when pool
    re-balancing reassigns them from one FO peer to the other.  This
    corrects an issue where leases that were offered but not used
    by the client retained the client hostname from the original
    client. Thanks to Pavel Polacek, Jan Evangelista Purkyne University
    for reporting the issue.
    [ISC-Bugs #42008]
  - In the LDAP code and schema add some missing '6' characters to use
    the v6 instead of the v4 versions.  Thanks to Denis Taranushin for

OBS-URL: https://build.opensuse.org/request/show/508601
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=174
2017-07-06 15:49:46 +00:00
Nirmoy Das
e4de661e19 Accepting request 507823 from home:Zaitor
Possible solution to issues with NM 1.8.0

OBS-URL: https://build.opensuse.org/request/show/507823
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=173
2017-07-06 13:11:18 +00:00
Nirmoy Das
28d0dd7c50 Accepting request 479154 from home:ndas:branches:network:dhcp
- Relax permission of dhclient-script for libguestfs(bsc#987170)

OBS-URL: https://build.opensuse.org/request/show/479154
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=171
2017-03-16 10:00:54 +00:00
Nirmoy Das
53e8b48477 Accepting request 456144 from home:kukuk:branches:network:dhcp
- Require insserv only if needed
- Fix requires of client subpackage

OBS-URL: https://build.opensuse.org/request/show/456144
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=169
2017-02-17 10:00:18 +00:00
09799de8fb Accepting request 416901 from home:rhabacker:branches:network:dhcp
Add config file for registering dhcp server in slp (bsc#992072)

OBS-URL: https://build.opensuse.org/request/show/416901
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=167
2016-11-29 08:40:31 +00:00
Nirmoy Das
2b7443fd02 Accepting request 396824 from home:markoschandras:branches:network:dhcp
- Use /usr/sbin/arping instead of /sbin/arping in the dhcp scripts.
  /sbin/arping is a symlink to /usr/sbin/arping in order to ease the
  transition for the /usr merge. Newest releases of iputils may only
  install utilities in /usr/* so this dependency will no longer be valid.
  Moreover, we replace the '/sbin/arping' dependency with 'iputils'.

OBS-URL: https://build.opensuse.org/request/show/396824
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=165
2016-06-07 09:58:59 +00:00
Nirmoy Das
30d0a54ed0 - Update to dhcp-4.3.3-P1 correcting bounds checking when
receiving a packet (bsc#961305,CVE-2015-8605,ISC-Bugs#41267).
- adjusted interval check.
  [*0019-dhcp-4.2.4-P1-interval.patch]
- Fixed improper lease duration checking. Also added fixes for integer
  overflows in the date and time handling code(bsc#936923, bsc#880984).
  [+0020-dhcp-4.x.x-fixed-improper-lease-duration-checking.patch]
- fixed service files to start dhcpd after slapd (bsc#956159)
- dhclient-script: complain in the log about conflicts, added
  a see log messages to the dhclient log message (bsc#960506)
  [* 0018-client-fail-on-script-pre-init-error-bsc-912098.patch]

OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=163
2016-01-26 16:59:05 +00:00