Commit Graph

68 Commits

Author SHA1 Message Date
Mark Andrews
347c832469 update copyrights 2004-03-08 09:05:15 +00:00
Mark Andrews
c3138c6928 doc regen / copyrights 2004-03-08 04:04:47 +00:00
Mark Andrews
a09e55f624 update copyrights 2004-03-06 10:22:54 +00:00
Mark Andrews
87497aa349 1559. [port] named should ignore SIGFSZ. 2004-03-03 23:09:33 +00:00
Mark Andrews
5cad37ef17 1551. [port] Open "/dev/null" before calling chroot(). 2004-01-12 04:28:43 +00:00
Mark Andrews
d15739dec3 1550. [port] Call tzset(), if available, before calling chroot(). 2004-01-07 05:53:16 +00:00
Mark Andrews
25a60b1d80 sync with HEAD 2003-10-15 05:32:25 +00:00
Mark Andrews
57b54234cd sizeof style 2003-09-11 00:18:18 +00:00
Mark Andrews
3da9ba9a4c 1153. [func] 'rndc {stop|halt} -p' now reports the process id
of the instance of named being shutdown.
2003-08-11 05:42:52 +00:00
Mark Andrews
9052beb238 pullup
Check return values or cast them to (void), as required by the coding
standards; add exceptions to the coding standards for cases where this is
not desirable
2003-08-11 05:28:23 +00:00
Mark Andrews
2bb8b924b9 1135. [func] You can now override the default syslog() facility for
named/lwresd at compile time. [RT #1982]
2003-08-08 04:24:41 +00:00
Mark Andrews
946a81d121 1055. [func] Version and hostname queries can now be disabled
using "version none;" and "hostname none;",
                        respectively.

1049.   [func]          "pid-file none;" will disable writing a pid file.
                        [RT #1848]
2003-08-06 06:03:24 +00:00
Mark Andrews
f75356ec50 1032. [func] hostname.bind/txt/chaos now returns the name of
the machine hosting the nameserver.  This is useful
                        in diagnosing problems with anycast servers.
2003-08-04 08:06:49 +00:00
Mark Andrews
ff77225512 pullup:
Move configuration checking to libbind9.
2003-08-04 04:23:56 +00:00
Mark Andrews
9db3cd9779 982. [func] If "memstatistics-file" is set in options the memory
statistics will be written to it.
2003-08-02 00:15:13 +00:00
Mark Andrews
a09a00456c 982. [func] If "memstatistics-file" is set in options the memory
statistics will be written to it.
2003-08-01 23:56:14 +00:00
Mark Andrews
891c424e56 update_copyrights 2002-08-05 06:57:16 +00:00
Mark Andrews
3e4d38c0b1 reviewed: bwelling
1277.   [bug]           Failure to write pid-file should not be fatal on
                        reload. [RT #2861]
2002-07-10 04:27:30 +00:00
Mark Andrews
7d73f463e2 reviewed: bwelling
1341.   [port]          linux: Slackware 4.0 needs <asm/unistd.h>.
2002-07-09 01:42:05 +00:00
Andreas Gustafsson
5a78ccdf1f pullup:
1068.   [bug]           errno could be overwritten by catgets(). [RT #1921]
1066.   [bug]           Provide a thread safe wrapper for strerror().
                        [RT #1689]
(Also some changes to configure.in, config.h.in, and acconfig.h that were
necessary to allow config.h.in to be correctly regenerated with the
HAVE_STRERROR definition needed by 1066.)
2001-10-22 23:28:26 +00:00
Andreas Gustafsson
f462b9aed2 Revert change 966. Brian says user-level programs should not include
any headers under asm.
2001-08-29 18:03:36 +00:00
Mark Andrews
b885fd1d53 966. [port] #include <asm/unistd.h> is required on some Linux
ports.  [RT #1670]
2001-08-29 04:21:51 +00:00
Mark Andrews
1666a83cab add sys/types.h for FreeBSD 2.1. 2001-05-25 07:42:15 +00:00
Brian Wellington
76477bd0e0 821. [bug] The program name used when logging to syslog should
be stripped of leading path components.
			[RT #1178, #1232]
2001-05-03 19:06:25 +00:00
Brian Wellington
c9e698df1b When attempting to open a non-regular file as a pid file, assign errno rather
than printing an uninitialized value.
2001-04-04 21:45:29 +00:00
Brian Wellington
55839cbe31 Linux 2.2.18 supports the prctl() call necessary for running setuid. 2001-03-19 22:41:22 +00:00
Brian Wellington
1d8cbe855f missed a few prctl.h changes 2001-02-24 23:06:34 +00:00
Brian Wellington
f8727bd903 check for <sys/prctl.h>, not <linux/prctl.h> [RT #679] 2001-02-24 23:05:09 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Brian Wellington
d119051ef7 667. [bug] On Linux, running named with the -u option and a
non-world-readable configuration file didn't work.
                        [RT #626]
2001-01-09 00:10:42 +00:00
Mark Andrews
8fd925169f keep CAP_SYS_RESOURCE 2000-12-14 18:29:57 +00:00
David Lawrence
108490a7f8 keep the CAP_SYS_RESOURCE capability on linux systems.
as someone noted before (bob?  brian?) this might not really be the right
thing to do in a linuxthreads program.
2000-11-14 23:57:45 +00:00
Michael Sawyer
3b269c0cf3 Move file write routines to server.c, using isc_stdio_*.
Implement default filename for stats file.
Properly free the name's memory when shutting down.
2000-11-08 18:58:02 +00:00
Michael Sawyer
a3a11c4f3f Add the ability (via rndc dump-statistics) to dump a file with counters of
various results given to queries.  Enable the (previously disabled)
statistics-file config option.
2000-11-07 23:49:42 +00:00
Brian Wellington
6177fc9897 A lot of files generated by libtool were not properly ignored. 2000-10-16 23:44:25 +00:00
Brian Wellington
51e0ad287f Hopefully make the linux-specific stuff work when threads are not used. 2000-08-29 17:54:23 +00:00
Brian Wellington
d1e4b08844 Comment the PR_SET_KEEPCAPS definition. 2000-08-10 18:56:58 +00:00
Brian Wellington
da76a8046e 382. [bug] named -u failed on Debian Linux. 2000-08-10 00:31:59 +00:00
David Lawrence
40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
Brian Wellington
663841abe0 338. [bug] lwresd logged to syslog as named, not lwresd. 2000-07-18 17:50:02 +00:00
Brian Wellington
71954c9571 I lied. This should be the last change to the setuid() code. Call
initgroups() from ns_os_inituserinfo, and make sure that Linux initially has
the CAP_SETGID capability set so that it doesn't fail.
2000-07-08 00:12:21 +00:00
Brian Wellington
c336121fb5 Hopefully the last change to the setuid code. Only call initgroups()
if getuid() == 0.  Don't call ns_os_changeuser() more than once (it
could happen on Linux).

The code in its current form doesn't check for root before calling
setgid() or setuid(), since they'll fail and print reasonable error
messages (unless -u is supplied with the non-root user that ran named,
in which case it would succeed).  The call to initgroups() would fail for
non root, so it shouldn't be tried.

The previous (as of a few days ago) code just ignored the -u parameter
when named was run as non-root.  This was not good.
2000-07-07 23:53:35 +00:00
Brian Wellington
4e5388b459 Clean up the uid switching code again so that setgid() is called in
ns_os_changeuser().
2000-07-07 22:10:54 +00:00
Andreas Gustafsson
c6ab6ca3fd moved linux_keepcaps() call and check for Linux nonroot caps back
to earlier locations; use a separate boolean flag for keeping track of whether a
UID switch was requested rather than overloading the UID value zero
2000-07-05 22:03:42 +00:00
Brian Wellington
1e105376dd linux_keepcaps() was called without checking the various defines that
surrounded the function definition.
2000-07-03 20:00:44 +00:00
Brian Wellington
79e873be59 The reordering of code in the last change broke linux, since the determination
of whether we could call setuid() was moved after the check.
2000-07-03 18:28:38 +00:00
David Lawrence
202991557a 299. [cleanup] Get the user and group information before changing the
root directory, so the administrator does not need to
			keep a copy of the user and group databases in the
			chroot'ed environment.  Suggested by Hakan Olsson.
2000-07-01 00:48:06 +00:00
Michael Graff
15197aefa1 workaround for NetBSD - close FDs before dup2(). 2000-06-28 16:26:40 +00:00
David Lawrence
9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00