- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/client/clparse.c b/client/clparse.c
|
|
|
|
index 9de4ce2..ca24ba6 100644
|
|
|
|
--- a/client/clparse.c
|
|
|
|
+++ b/client/clparse.c
|
|
|
|
@@ -220,7 +220,7 @@ int read_client_conf_file (const char *name, struct interface_info *ip,
|
2011-05-17 12:54:19 +02:00
|
|
|
int token;
|
|
|
|
isc_result_t status;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
|
2011-05-17 12:54:19 +02:00
|
|
|
- if ((file = open (name, O_RDONLY)) < 0)
|
|
|
|
+ if ((file = open (name, O_RDONLY | O_CLOEXEC)) < 0)
|
|
|
|
return uerr2isc (errno);
|
|
|
|
|
|
|
|
cfile = NULL;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -257,7 +257,7 @@ void read_client_leases ()
|
2011-05-17 12:54:19 +02:00
|
|
|
|
|
|
|
/* Open the lease file. If we can't open it, just return -
|
|
|
|
we can safely trust the server to remember our state. */
|
|
|
|
- if ((file = open (path_dhclient_db, O_RDONLY)) < 0)
|
|
|
|
+ if ((file = open (path_dhclient_db, O_RDONLY | O_CLOEXEC)) < 0)
|
|
|
|
return;
|
|
|
|
|
|
|
|
cfile = NULL;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/client/dhclient.c b/client/dhclient.c
|
|
|
|
index 82c26bb..a1cab01 100644
|
|
|
|
--- a/client/dhclient.c
|
|
|
|
+++ b/client/dhclient.c
|
|
|
|
@@ -131,11 +131,11 @@ main(int argc, char **argv) {
|
2011-05-17 12:54:19 +02:00
|
|
|
/* Make sure that file descriptors 0 (stdin), 1, (stdout), and
|
|
|
|
2 (stderr) are open. To do this, we assume that when we
|
|
|
|
open a file the lowest available file descriptor is used. */
|
|
|
|
- fd = open("/dev/null", O_RDWR);
|
|
|
|
+ fd = open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
if (fd == 0)
|
|
|
|
- fd = open("/dev/null", O_RDWR);
|
|
|
|
+ fd = open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
if (fd == 1)
|
|
|
|
- fd = open("/dev/null", O_RDWR);
|
|
|
|
+ fd = open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
if (fd == 2)
|
|
|
|
log_perror = 0; /* No sense logging to /dev/null. */
|
|
|
|
else if (fd != -1)
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -423,7 +423,7 @@ main(int argc, char **argv) {
|
2011-05-17 12:54:19 +02:00
|
|
|
int e;
|
|
|
|
|
|
|
|
oldpid = 0;
|
|
|
|
- if ((pidfd = fopen(path_dhclient_pid, "r")) != NULL) {
|
|
|
|
+ if ((pidfd = fopen(path_dhclient_pid, "re")) != NULL) {
|
|
|
|
e = fscanf(pidfd, "%ld\n", &temp);
|
|
|
|
oldpid = (pid_t)temp;
|
|
|
|
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -2689,7 +2689,7 @@ void rewrite_client_leases ()
|
2011-05-17 12:54:19 +02:00
|
|
|
|
|
|
|
if (leaseFile != NULL)
|
|
|
|
fclose (leaseFile);
|
|
|
|
- leaseFile = fopen (path_dhclient_db, "w");
|
|
|
|
+ leaseFile = fopen (path_dhclient_db, "we");
|
|
|
|
if (leaseFile == NULL) {
|
|
|
|
log_error ("can't create %s: %m", path_dhclient_db);
|
|
|
|
return;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -2799,7 +2799,7 @@ write_duid(struct data_string *duid)
|
2011-05-17 12:54:19 +02:00
|
|
|
return DHCP_R_INVALIDARG;
|
|
|
|
|
|
|
|
if (leaseFile == NULL) { /* XXX? */
|
|
|
|
- leaseFile = fopen(path_dhclient_db, "w");
|
|
|
|
+ leaseFile = fopen(path_dhclient_db, "we");
|
|
|
|
if (leaseFile == NULL) {
|
|
|
|
log_error("can't create %s: %m", path_dhclient_db);
|
|
|
|
return ISC_R_IOERROR;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -2847,7 +2847,7 @@ write_client6_lease(struct client_state *client, struct dhc6_lease *lease,
|
2011-05-17 12:54:19 +02:00
|
|
|
return DHCP_R_INVALIDARG;
|
|
|
|
|
|
|
|
if (leaseFile == NULL) { /* XXX? */
|
|
|
|
- leaseFile = fopen(path_dhclient_db, "w");
|
|
|
|
+ leaseFile = fopen(path_dhclient_db, "we");
|
|
|
|
if (leaseFile == NULL) {
|
|
|
|
log_error("can't create %s: %m", path_dhclient_db);
|
|
|
|
return ISC_R_IOERROR;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -2979,7 +2979,7 @@ int write_client_lease (client, lease, rewrite, makesure)
|
2011-05-17 12:54:19 +02:00
|
|
|
return 1;
|
|
|
|
|
|
|
|
if (leaseFile == NULL) { /* XXX */
|
|
|
|
- leaseFile = fopen (path_dhclient_db, "w");
|
|
|
|
+ leaseFile = fopen (path_dhclient_db, "we");
|
|
|
|
if (leaseFile == NULL) {
|
|
|
|
log_error ("can't create %s: %m", path_dhclient_db);
|
|
|
|
return 0;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -3472,9 +3472,9 @@ void go_daemon ()
|
2011-05-17 12:54:19 +02:00
|
|
|
close(2);
|
|
|
|
|
|
|
|
/* Reopen them on /dev/null. */
|
|
|
|
- open("/dev/null", O_RDWR);
|
|
|
|
- open("/dev/null", O_RDWR);
|
|
|
|
- open("/dev/null", O_RDWR);
|
|
|
|
+ open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
+ open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
+ open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
|
|
|
|
write_client_pid_file ();
|
|
|
|
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/common/bpf.c b/common/bpf.c
|
|
|
|
index 8bd5727..7b8f1d4 100644
|
|
|
|
--- a/common/bpf.c
|
|
|
|
+++ b/common/bpf.c
|
2011-05-17 12:54:19 +02:00
|
|
|
@@ -94,7 +94,7 @@ int if_register_bpf (info)
|
|
|
|
for (b = 0; 1; b++) {
|
|
|
|
/* %Audit% 31 bytes max. %2004.06.17,Safe% */
|
|
|
|
sprintf(filename, BPF_FORMAT, b);
|
|
|
|
- sock = open (filename, O_RDWR, 0);
|
|
|
|
+ sock = open (filename, O_RDWR | O_CLOEXEC, 0);
|
|
|
|
if (sock < 0) {
|
|
|
|
if (errno == EBUSY) {
|
|
|
|
continue;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/common/discover.c b/common/discover.c
|
|
|
|
index 1d84219..93a278e 100644
|
|
|
|
--- a/common/discover.c
|
|
|
|
+++ b/common/discover.c
|
|
|
|
@@ -421,7 +421,7 @@ begin_iface_scan(struct iface_conf_list *ifaces) {
|
2011-05-17 12:54:19 +02:00
|
|
|
int len;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
- ifaces->fp = fopen("/proc/net/dev", "r");
|
|
|
|
+ ifaces->fp = fopen("/proc/net/dev", "re");
|
|
|
|
if (ifaces->fp == NULL) {
|
|
|
|
log_error("Error opening '/proc/net/dev' to list interfaces");
|
|
|
|
return 0;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -456,7 +456,7 @@ begin_iface_scan(struct iface_conf_list *ifaces) {
|
2011-05-17 12:54:19 +02:00
|
|
|
|
|
|
|
#ifdef DHCPv6
|
|
|
|
if (local_family == AF_INET6) {
|
|
|
|
- ifaces->fp6 = fopen("/proc/net/if_inet6", "r");
|
|
|
|
+ ifaces->fp6 = fopen("/proc/net/if_inet6", "re");
|
|
|
|
if (ifaces->fp6 == NULL) {
|
|
|
|
log_error("Error opening '/proc/net/if_inet6' to "
|
|
|
|
"list IPv6 interfaces; %m");
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/common/dlpi.c b/common/dlpi.c
|
|
|
|
index b9eb1d3..c044ec6 100644
|
|
|
|
--- a/common/dlpi.c
|
|
|
|
+++ b/common/dlpi.c
|
|
|
|
@@ -806,7 +806,7 @@ dlpiopen(const char *ifname) {
|
2011-05-17 12:54:19 +02:00
|
|
|
}
|
|
|
|
*dp = '\0';
|
|
|
|
|
|
|
|
- return open (devname, O_RDWR, 0);
|
|
|
|
+ return open (devname, O_RDWR | O_CLOEXEC, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/common/nit.c b/common/nit.c
|
|
|
|
index 0da9c36..896cbb6 100644
|
|
|
|
--- a/common/nit.c
|
|
|
|
+++ b/common/nit.c
|
2011-05-17 12:54:19 +02:00
|
|
|
@@ -81,7 +81,7 @@ int if_register_nit (info)
|
|
|
|
struct strioctl sio;
|
|
|
|
|
|
|
|
/* Open a NIT device */
|
|
|
|
- sock = open ("/dev/nit", O_RDWR);
|
|
|
|
+ sock = open ("/dev/nit", O_RDWR | O_CLOEXEC);
|
|
|
|
if (sock < 0)
|
|
|
|
log_fatal ("Can't open NIT device for %s: %m", info -> name);
|
|
|
|
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/common/resolv.c b/common/resolv.c
|
|
|
|
index b29d4cf..d946ccc 100644
|
|
|
|
--- a/common/resolv.c
|
|
|
|
+++ b/common/resolv.c
|
2011-05-17 12:54:19 +02:00
|
|
|
@@ -49,7 +49,7 @@ void read_resolv_conf (parse_time)
|
|
|
|
struct domain_search_list *dp, *dl, *nd;
|
|
|
|
isc_result_t status;
|
|
|
|
|
|
|
|
- if ((file = open (path_resolv_conf, O_RDONLY)) < 0) {
|
|
|
|
+ if ((file = open (path_resolv_conf, O_RDONLY | O_CLOEXEC)) < 0) {
|
|
|
|
log_error ("Can't open %s: %m", path_resolv_conf);
|
|
|
|
return;
|
|
|
|
}
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/common/upf.c b/common/upf.c
|
|
|
|
index fff3949..4f9318e 100644
|
|
|
|
--- a/common/upf.c
|
|
|
|
+++ b/common/upf.c
|
2011-05-17 12:54:19 +02:00
|
|
|
@@ -77,7 +77,7 @@ int if_register_upf (info)
|
|
|
|
/* %Audit% Cannot exceed 36 bytes. %2004.06.17,Safe% */
|
|
|
|
sprintf(filename, "/dev/pf/pfilt%d", b);
|
|
|
|
|
|
|
|
- sock = open (filename, O_RDWR, 0);
|
|
|
|
+ sock = open (filename, O_RDWR | O_CLOEXEC, 0);
|
|
|
|
if (sock < 0) {
|
|
|
|
if (errno == EBUSY) {
|
|
|
|
continue;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/dst/dst_api.c b/dst/dst_api.c
|
|
|
|
index 8925c66..fa4eb5f 100644
|
|
|
|
--- a/dst/dst_api.c
|
|
|
|
+++ b/dst/dst_api.c
|
|
|
|
@@ -437,7 +437,7 @@ dst_s_write_private_key(const DST_KEY *key)
|
2011-05-17 12:54:19 +02:00
|
|
|
PRIVATE_KEY, PATH_MAX);
|
|
|
|
|
|
|
|
/* Do not overwrite an existing file */
|
|
|
|
- if ((fp = dst_s_fopen(file, "w", 0600)) != NULL) {
|
|
|
|
+ if ((fp = dst_s_fopen(file, "we", 0600)) != NULL) {
|
|
|
|
int nn;
|
|
|
|
if ((nn = fwrite(encoded_block, 1, len, fp)) != len) {
|
|
|
|
EREPORT(("dst_write_private_key(): Write failure on %s %d != %d errno=%d\n",
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -494,7 +494,7 @@ dst_s_read_public_key(const char *in_name, const unsigned in_id, int in_alg)
|
2011-05-17 12:54:19 +02:00
|
|
|
* flags, proto, alg stored as decimal (or hex numbers FIXME).
|
|
|
|
* (FIXME: handle parentheses for line continuation.)
|
|
|
|
*/
|
|
|
|
- if ((fp = dst_s_fopen(name, "r", 0)) == NULL) {
|
|
|
|
+ if ((fp = dst_s_fopen(name, "re", 0)) == NULL) {
|
|
|
|
EREPORT(("dst_read_public_key(): Public Key not found %s\n",
|
|
|
|
name));
|
|
|
|
return (NULL);
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -620,7 +620,7 @@ dst_s_write_public_key(const DST_KEY *key)
|
2011-05-17 12:54:19 +02:00
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
/* create public key file */
|
|
|
|
- if ((fp = dst_s_fopen(filename, "w+", 0644)) == NULL) {
|
|
|
|
+ if ((fp = dst_s_fopen(filename, "w+e", 0644)) == NULL) {
|
|
|
|
EREPORT(("DST_write_public_key: open of file:%s failed (errno=%d)\n",
|
|
|
|
filename, errno));
|
|
|
|
return (0);
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -854,7 +854,7 @@ dst_s_read_private_key_file(char *name, DST_KEY *pk_key, unsigned in_id,
|
2011-05-17 12:54:19 +02:00
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
/* first check if we can find the key file */
|
|
|
|
- if ((fp = dst_s_fopen(filename, "r", 0)) == NULL) {
|
|
|
|
+ if ((fp = dst_s_fopen(filename, "re", 0)) == NULL) {
|
|
|
|
EREPORT(("dst_s_read_private_key_file: Could not open file %s in directory %s\n",
|
|
|
|
filename, dst_path[0] ? dst_path :
|
|
|
|
(char *) getcwd(NULL, PATH_MAX - 1)));
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/dst/prandom.c b/dst/prandom.c
|
|
|
|
index 4de3fe4..fbbe07c 100644
|
|
|
|
--- a/dst/prandom.c
|
|
|
|
+++ b/dst/prandom.c
|
|
|
|
@@ -269,7 +269,7 @@ get_dev_random(u_char *output, unsigned size)
|
2011-05-17 12:54:19 +02:00
|
|
|
|
|
|
|
s = stat("/dev/random", &st);
|
|
|
|
if (s == 0 && S_ISCHR(st.st_mode)) {
|
|
|
|
- if ((fd = open("/dev/random", O_RDONLY | O_NONBLOCK)) != -1) {
|
|
|
|
+ if ((fd = open("/dev/random", O_RDONLY | O_NONBLOCK | O_CLOEXEC)) != -1) {
|
|
|
|
if ((n = read(fd, output, size)) < 0)
|
|
|
|
n = 0;
|
|
|
|
close(fd);
|
|
|
|
@@ -480,7 +480,7 @@ digest_file(dst_work *work)
|
|
|
|
work->file_digest = dst_free_key(work->file_digest);
|
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
- if ((fp = fopen(name, "r")) == NULL)
|
|
|
|
+ if ((fp = fopen(name, "re")) == NULL)
|
|
|
|
return (0);
|
|
|
|
for (no = 0; (i = fread(buf, sizeof(*buf), sizeof(buf), fp)) > 0;
|
|
|
|
no += i)
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/omapip/trace.c b/omapip/trace.c
|
|
|
|
index 9fd3fb5..9c4e11e 100644
|
|
|
|
--- a/omapip/trace.c
|
|
|
|
+++ b/omapip/trace.c
|
|
|
|
@@ -141,10 +141,10 @@ isc_result_t trace_begin (const char *filename,
|
2011-05-17 12:54:19 +02:00
|
|
|
return DHCP_R_INVALIDARG;
|
|
|
|
}
|
|
|
|
|
|
|
|
- traceoutfile = open (filename, O_CREAT | O_WRONLY | O_EXCL, 0600);
|
|
|
|
+ traceoutfile = open (filename, O_CREAT | O_WRONLY | O_EXCL | O_CLOEXEC, 0600);
|
|
|
|
if (traceoutfile < 0 && errno == EEXIST) {
|
|
|
|
log_error ("WARNING: Overwriting trace file \"%s\"", filename);
|
|
|
|
- traceoutfile = open (filename, O_WRONLY | O_EXCL | O_TRUNC,
|
|
|
|
+ traceoutfile = open (filename, O_WRONLY | O_EXCL | O_TRUNC | O_CLOEXEC,
|
|
|
|
0600);
|
|
|
|
}
|
|
|
|
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -431,7 +431,7 @@ void trace_file_replay (const char *filename)
|
2011-05-17 12:54:19 +02:00
|
|
|
isc_result_t result;
|
|
|
|
int len;
|
|
|
|
|
|
|
|
- traceinfile = fopen (filename, "r");
|
|
|
|
+ traceinfile = fopen (filename, "re");
|
|
|
|
if (!traceinfile) {
|
|
|
|
log_error("Can't open tracefile %s: %m", filename);
|
|
|
|
return;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c
|
|
|
|
index f21f16f..d2aa90e 100644
|
|
|
|
--- a/relay/dhcrelay.c
|
|
|
|
+++ b/relay/dhcrelay.c
|
|
|
|
@@ -183,11 +183,11 @@ main(int argc, char **argv) {
|
2011-05-17 12:54:19 +02:00
|
|
|
/* Make sure that file descriptors 0(stdin), 1,(stdout), and
|
|
|
|
2(stderr) are open. To do this, we assume that when we
|
|
|
|
open a file the lowest available file descriptor is used. */
|
|
|
|
- fd = open("/dev/null", O_RDWR);
|
|
|
|
+ fd = open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
if (fd == 0)
|
|
|
|
- fd = open("/dev/null", O_RDWR);
|
|
|
|
+ fd = open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
if (fd == 1)
|
|
|
|
- fd = open("/dev/null", O_RDWR);
|
|
|
|
+ fd = open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
if (fd == 2)
|
|
|
|
log_perror = 0; /* No sense logging to /dev/null. */
|
|
|
|
else if (fd != -1)
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -540,13 +540,14 @@ main(int argc, char **argv) {
|
|
|
|
|
|
|
|
if (no_pid_file == ISC_FALSE) {
|
|
|
|
pfdesc = open(path_dhcrelay_pid,
|
|
|
|
- O_CREAT | O_TRUNC | O_WRONLY, 0644);
|
|
|
|
+ O_CREAT | O_TRUNC | O_WRONLY |
|
|
|
|
+ O_CLOEXEC, 0644);
|
|
|
|
|
|
|
|
if (pfdesc < 0) {
|
|
|
|
log_error("Can't create %s: %m",
|
|
|
|
path_dhcrelay_pid);
|
|
|
|
} else {
|
|
|
|
- pf = fdopen(pfdesc, "w");
|
|
|
|
+ pf = fdopen(pfdesc, "we");
|
|
|
|
if (!pf)
|
|
|
|
log_error("Can't fdopen %s: %m",
|
|
|
|
path_dhcrelay_pid);
|
|
|
|
diff --git a/server/confpars.c b/server/confpars.c
|
|
|
|
index c0742d4..62568e9 100644
|
|
|
|
--- a/server/confpars.c
|
|
|
|
+++ b/server/confpars.c
|
|
|
|
@@ -116,7 +116,7 @@ isc_result_t read_conf_file (const char *filename, struct group *group,
|
2011-05-17 12:54:19 +02:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
- if ((file = open (filename, O_RDONLY)) < 0) {
|
|
|
|
+ if ((file = open (filename, O_RDONLY | O_CLOEXEC)) < 0) {
|
|
|
|
if (leasep) {
|
|
|
|
log_error ("Can't open lease database %s: %m --",
|
|
|
|
path_dhcpd_db);
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/server/db.c b/server/db.c
|
|
|
|
index dc75321..be5db26 100644
|
|
|
|
--- a/server/db.c
|
|
|
|
+++ b/server/db.c
|
2011-05-17 12:54:19 +02:00
|
|
|
@@ -1035,7 +1035,7 @@ void db_startup (testp)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
if (!testp) {
|
|
|
|
- db_file = fopen (path_dhcpd_db, "a");
|
|
|
|
+ db_file = fopen (path_dhcpd_db, "ae");
|
|
|
|
if (!db_file)
|
|
|
|
log_fatal ("Can't open %s for append.", path_dhcpd_db);
|
|
|
|
expire_all_pools ();
|
|
|
|
@@ -1074,7 +1074,7 @@ int new_lease_file ()
|
|
|
|
db_validity = lease_file_is_corrupt;
|
|
|
|
|
|
|
|
snprintf (newfname, sizeof(newfname), "%s.XXXXXX", path_dhcpd_db);
|
|
|
|
- db_fd = mkstemp (newfname);
|
|
|
|
+ db_fd = mkostemp (newfname, O_CLOEXEC);
|
|
|
|
if (db_fd < 0) {
|
|
|
|
log_error ("Can't create new lease file: %m");
|
|
|
|
return 0;
|
|
|
|
@@ -1083,7 +1083,7 @@ int new_lease_file ()
|
|
|
|
log_error ("Can't fchmod new lease file: %m");
|
|
|
|
goto fail;
|
|
|
|
}
|
|
|
|
- if ((new_db_file = fdopen(db_fd, "w")) == NULL) {
|
|
|
|
+ if ((new_db_file = fdopen(db_fd, "we")) == NULL) {
|
|
|
|
log_error("Can't fdopen new lease file: %m");
|
|
|
|
close(db_fd);
|
|
|
|
goto fdfail;
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/server/dhcpd.c b/server/dhcpd.c
|
|
|
|
index 27e04e4..9233d26 100644
|
|
|
|
--- a/server/dhcpd.c
|
|
|
|
+++ b/server/dhcpd.c
|
|
|
|
@@ -274,11 +274,11 @@ main(int argc, char **argv) {
|
2011-05-17 12:54:19 +02:00
|
|
|
/* Make sure that file descriptors 0 (stdin), 1, (stdout), and
|
|
|
|
2 (stderr) are open. To do this, we assume that when we
|
|
|
|
open a file the lowest available file descriptor is used. */
|
|
|
|
- fd = open("/dev/null", O_RDWR);
|
|
|
|
+ fd = open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
if (fd == 0)
|
|
|
|
- fd = open("/dev/null", O_RDWR);
|
|
|
|
+ fd = open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
if (fd == 1)
|
|
|
|
- fd = open("/dev/null", O_RDWR);
|
|
|
|
+ fd = open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
if (fd == 2)
|
|
|
|
log_perror = 0; /* No sense logging to /dev/null. */
|
|
|
|
else if (fd != -1)
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
@@ -809,7 +809,7 @@ main(int argc, char **argv) {
|
|
|
|
*/
|
|
|
|
if (no_pid_file == ISC_FALSE) {
|
|
|
|
/*Read previous pid file. */
|
|
|
|
- if ((i = open (path_dhcpd_pid, O_RDONLY)) >= 0) {
|
|
|
|
+ if ((i = open (path_dhcpd_pid, O_RDONLY | O_CLOEXEC)) >= 0) {
|
|
|
|
status = read(i, pbuf, (sizeof pbuf) - 1);
|
|
|
|
close (i);
|
|
|
|
if (status > 0) {
|
|
|
|
@@ -828,7 +828,7 @@ main(int argc, char **argv) {
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Write new pid file. */
|
|
|
|
- i = open(path_dhcpd_pid, O_WRONLY|O_CREAT|O_TRUNC, 0644);
|
|
|
|
+ i = open(path_dhcpd_pid, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0644);
|
|
|
|
if (i >= 0) {
|
|
|
|
sprintf(pbuf, "%d\n", (int) getpid());
|
|
|
|
IGNORE_RET (write(i, pbuf, strlen(pbuf)));
|
|
|
|
@@ -856,9 +856,9 @@ main(int argc, char **argv) {
|
2011-05-17 12:54:19 +02:00
|
|
|
close(2);
|
|
|
|
|
|
|
|
/* Reopen them on /dev/null. */
|
|
|
|
- open("/dev/null", O_RDWR);
|
|
|
|
- open("/dev/null", O_RDWR);
|
|
|
|
- open("/dev/null", O_RDWR);
|
|
|
|
+ open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
+ open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
+ open("/dev/null", O_RDWR | O_CLOEXEC);
|
|
|
|
log_perror = 0; /* No sense logging to /dev/null. */
|
|
|
|
|
|
|
|
IGNORE_RET (chdir("/"));
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
diff --git a/server/ldap.c b/server/ldap.c
|
|
|
|
index 68acbbb..77efe26 100644
|
|
|
|
--- a/server/ldap.c
|
|
|
|
+++ b/server/ldap.c
|
2011-05-17 12:54:19 +02:00
|
|
|
@@ -1098,7 +1098,7 @@ ldap_start (void)
|
|
|
|
|
|
|
|
if (ldap_debug_file != NULL && ldap_debug_fd == -1)
|
|
|
|
{
|
|
|
|
- if ((ldap_debug_fd = open (ldap_debug_file, O_CREAT | O_TRUNC | O_WRONLY,
|
|
|
|
+ if ((ldap_debug_fd = open (ldap_debug_file, O_CREAT | O_TRUNC | O_WRONLY | O_CLOEXEC,
|
|
|
|
S_IRUSR | S_IWUSR)) < 0)
|
|
|
|
log_error ("Error opening debug LDAP log file %s: %s", ldap_debug_file,
|
|
|
|
strerror (errno));
|
- Updated to ISC dhcp-4.2.2 release, providing two security fixes
(CVE-2011-2748,CVE-2011-2749,[ISC-Bugs #24960],bnc#712653), that
allowed remote attackers to cause a denial of service (a daemon
exit) via crafted BOOTP packets. Further also DNS update fix to
detect overlapping pools or misconfigured fixed-address entries,
that caused a server crash during DNS update and other fixes.
For a complete list, please see the RELNOTES file provided in
the package and also available online at http://www.isc.org/.
- Merged/adopted dhclient option-checks, send-hostname-rml, ldap
patch, xen-checksum, close-on-exec patches and removed obsolete
in6_pktinfo-prototype and relay-no-ip-on-interface patches.
- Moved server pid files into chroot directory even chroot is
not used and create a link in /var/run, so it can write one
when started as user without chroot and avoid stop problems
when the chroot sysconfig setting changed (bnc#712438).
- Disabled log-info level messages in dhclient(6) quiet mode to
avoid excessive logging of non-critical messages (bnc#711420).
- Fixed dhclient-script to not remove alias IP when it didn't
changed to not wipe out iptables connmark when renewing the
lease (bnc#700771). Thanks to James Carter for the patch.
- Fixed DDNS-howto.txt reference in the config file; it has been
moved to the dhcp-doc package (bnc#697279).
- Removed GPL licensed files (bind-*/contrib/dbus) from bind.tgz
to ensure, they're not used to build non-GPL dhcp (bnc#714004).
- Changed to apply strict-aliasing/RELRO for >= 12.x only
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=75
2011-08-29 17:37:53 +02:00
|
|
|
--
|
|
|
|
1.7.3.4
|
|
|
|
|