Mark Andrews
f754fa97bc
1848. [bug] Improve SMF integration. [RT #13238 ]
2005-04-05 00:58:16 +00:00
Mark Andrews
31a71adf14
1725. [port] linux: update error message on interaction of threads,
...
capabilities and setuid support (named -u). [RT #12541 ]
2004-10-07 02:33:31 +00:00
Mark Andrews
2c329da87c
1733. [bug] Return non-zero exit status on initial load failure.
...
[RT #12658 ]
2004-09-29 06:45:38 +00:00
Mark Andrews
c93003b0a6
1713. [port] linux: extend capset failure message to say:
...
please ensure that the capset kernel module is
loaded. see insmod(8)
2004-09-16 02:49:41 +00:00
Mark Andrews
1ccee0aff3
silence compiler warning (cast to long and use %ld)
2004-05-04 03:24:39 +00:00
Mark Andrews
764808211e
#include <time.h>.
2004-04-15 04:49:50 +00:00
Mark Andrews
dafcb997e3
update copyright notice
2004-03-05 05:14:21 +00:00
Mark Andrews
90c4900d5c
1559. [port] named should ignore SIGFSZ.
2004-03-03 23:09:02 +00:00
Mark Andrews
c52ae25dd7
1551. [port] Open "/dev/null" before calling chroot().
2004-01-07 06:17:04 +00:00
Mark Andrews
6286983c50
1550. [port] Call tzset(), if available, before calling chroot().
2004-01-07 05:48:15 +00:00
Mark Andrews
81aea2f2d3
undo wrong branch
2002-12-13 02:51:41 +00:00
Mark Andrews
0020640ff6
checkpoint
2002-12-13 02:37:35 +00:00
Mark Andrews
5d98cf67b3
white space cleanup
2002-07-10 01:13:44 +00:00
Mark Andrews
0f8f42a09e
1341. [port] linux: Slackware 4.0 needs <asm/unistd.h>.
2002-07-03 05:09:43 +00:00
Mark Andrews
93e6ebcd0a
1277. [bug] Failure to write pid-file should not be fatal on
...
reload. [RT #2861 ]
2002-05-03 05:28:29 +00:00
Mark Andrews
cf300e03de
1153. [func] 'rndc {stop|halt} -p' now reports the process id
...
of the instance of named being shutdown.
2001-12-01 00:34:27 +00:00
Andreas Gustafsson
1f1d36a87b
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
2001-11-30 01:59:49 +00:00
Mark Andrews
ee80f45064
1135. [func] You can now override the default syslog() facility for
...
named/lwresd at compile time. [RT #1982 ]
2001-11-23 01:15:07 +00:00
Andreas Gustafsson
8d2b885018
The option for disabling the PID file is now pid-file none, not pid-file "none"
2001-10-16 20:04:41 +00:00
Bob Halley
392b3526d8
The server was segfaulting comparing NULL pidfile to "none". The correct
...
comparison is filename, not pidfile.
2001-10-13 20:13:53 +00:00
Mark Andrews
9bdb01e6c3
1049. [func] pid-file "none"; will disable writing a pid file.
...
[RT #1848 ]
2001-10-12 05:40:41 +00:00
Mark Andrews
df7596a03e
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.
2001-10-08 07:46:11 +00:00
Andreas Gustafsson
2f734e0a7e
sizeof style
2001-09-19 23:08:24 +00:00
Mark Andrews
fe6b7ccc8d
ns_os_*memstats() -> ns_main_setmemstats()
2001-09-07 00:37:02 +00:00
Mark Andrews
a24d253a3f
982. [func] If "memstatistics-file" is set in options the memory
...
statistics will be written to it.
2001-09-06 02:13:55 +00:00
Mark Andrews
4b87939256
strerror() -> isc__strerror() [RT #1689 ]
2001-08-31 05:57:58 +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
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