BIND 10 trac213-incremental-noroot, updated. 71de39fb8126b7200b2f6dcd9689a000c958fe0e [213] Typo
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Nov 9 14:53:59 UTC 2011
The branch, trac213-incremental-noroot has been updated
via 71de39fb8126b7200b2f6dcd9689a000c958fe0e (commit)
via f337180ad87778e3b91111efe93c3e31b1c92a91 (commit)
from 9862bdf184aceb37cfdbb4fbb455209bdf88a0f4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 71de39fb8126b7200b2f6dcd9689a000c958fe0e
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Wed Nov 9 15:45:16 2011 +0100
[213] Typo
commit f337180ad87778e3b91111efe93c3e31b1c92a91
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Wed Nov 9 15:44:50 2011 +0100
[213] Add missing log message
-----------------------------------------------------------------------
Summary of changes:
src/bin/bind10/bind10_messages.mes | 3 +++
src/lib/python/isc/bind10/special_component.py | 8 ++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/bind10/bind10_messages.mes b/src/bin/bind10/bind10_messages.mes
index 1c4e3d9..ce60fee 100644
--- a/src/bin/bind10/bind10_messages.mes
+++ b/src/bin/bind10/bind10_messages.mes
@@ -149,6 +149,9 @@ The boss module is sending a SIGKILL signal to the given process.
% BIND10_SEND_SIGTERM sending SIGTERM to %1 (PID %2)
The boss module is sending a SIGTERM signal to the given process.
+% BIND10_SETUID setting UID to %1
+The boss switches the user it runs as to the given UID.
+
% BIND10_SHUTDOWN stopping the server
The boss process received a command or signal telling it to shut down.
It will send a shutdown command to each process. The processes that do
diff --git a/src/lib/python/isc/bind10/special_component.py b/src/lib/python/isc/bind10/special_component.py
index 86f3ad5..bac51ff 100644
--- a/src/lib/python/isc/bind10/special_component.py
+++ b/src/lib/python/isc/bind10/special_component.py
@@ -18,6 +18,10 @@ import isc.bind10.sockcreator
from bind10_config import LIBEXECDIR
import os
import posix
+import isc.log
+from isc.log_messages.bind10_messages import *
+
+logger = isc.log.Logger("boss")
class SockCreator(BaseComponent):
"""
@@ -122,11 +126,11 @@ class SetUID(BaseComponent):
def _start_internal(self):
if self.uid is not None:
- # TODO: log
+ logger.info(BIND10_SETUID, self.uid)
posix.setuid(self.uid)
def _stop_internal(self): pass
- def kill(self, forefull=False): pass
+ def kill(self, forcefull=False): pass
def name(self):
return "Set UID"
More information about the bind10-changes
mailing list