Bug 69385 - dns/nsd: Changing signals used for bind8 stats
Summary: dns/nsd: Changing signals used for bind8 stats
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-21 18:10 UTC by Olafur Osvaldsson
Modified: 2004-07-22 08:04 UTC (History)
1 user (show)

See Also:


Attachments
nsd.diff (3.40 KB, patch)
2004-07-21 18:10 UTC, Olafur Osvaldsson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olafur Osvaldsson 2004-07-21 18:10:13 UTC
nsd is using SIGILL to determine if it should print out bind8 stats to the log.

This will not work if nsd is running as an unprivileged user.

Fix: SIGILL is not allowed for "tainted" processes so a non-restricted signal should be used.

I've contacted the developers and the patch attached is from them and will be included
in a future update.

The patch changes SIGILL to SIGUSR1.

	
How-To-Repeat: Make the port with WITH_BIND8_STATS, start as an unprivileged user and run
"kill -SIGILL `cat /var/run/nsd.pid`"
The prog will log the following to syslog:

nsd[66215]: problems killing 66219: Operation not permitted

66215 being the parent process and 66219 a child process.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-07-22 08:03:59 UTC
State Changed
From-To: open->closed

Committed, thanks!