BIND 10 trac2067, updated. 34521105b0e83da5f2c6682481330a97beb082f5 [2067] use different test gid than that for uid

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Jun 19 19:06:02 UTC 2012


The branch, trac2067 has been updated
       via  34521105b0e83da5f2c6682481330a97beb082f5 (commit)
       via  2d9a5fab35616e4bde53e1767e2ddbbcca5b3a93 (commit)
      from  e3d07f9d5f238cacb5941ead19923fa386399ff9 (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 34521105b0e83da5f2c6682481330a97beb082f5
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Tue Jun 19 12:05:40 2012 -0700

    [2067] use different test gid than that for uid

commit 2d9a5fab35616e4bde53e1767e2ddbbcca5b3a93
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Tue Jun 19 12:04:28 2012 -0700

    [2067] make sure 'setgid' is initialized in main()

-----------------------------------------------------------------------

Summary of changes:
 src/bin/bind10/bind10_messages.mes                |    4 ++--
 src/bin/bind10/bind10_src.py.in                   |    1 +
 src/lib/python/isc/bind10/tests/component_test.py |    4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/bind10/bind10_messages.mes b/src/bin/bind10/bind10_messages.mes
index ecb77a0..c751583 100644
--- a/src/bin/bind10/bind10_messages.mes
+++ b/src/bin/bind10/bind10_messages.mes
@@ -162,8 +162,8 @@ The boss module is sending a SIGTERM signal to the given process.
 
 % BIND10_SETGID setting GID to %1
 The boss switches the process group ID to the given value.  This happens
-when BIND 10 starts with -u option, and the group ID should be of the group
-the specified user.
+when BIND 10 starts with the -u option, and the group ID will be set to
+that of the specified user.
 
 % BIND10_SETUID setting UID to %1
 The boss switches the user it runs as to the given UID.
diff --git a/src/bin/bind10/bind10_src.py.in b/src/bin/bind10/bind10_src.py.in
index 522b259..b9dbc36 100755
--- a/src/bin/bind10/bind10_src.py.in
+++ b/src/bin/bind10/bind10_src.py.in
@@ -1157,6 +1157,7 @@ def main():
 
     # Check user ID.
     setuid = None
+    setgid = None
     username = None
     if options.user:
         # Try getting information about the user, assuming UID passed.
diff --git a/src/lib/python/isc/bind10/tests/component_test.py b/src/lib/python/isc/bind10/tests/component_test.py
index a69159d..af529f8 100644
--- a/src/lib/python/isc/bind10/tests/component_test.py
+++ b/src/lib/python/isc/bind10/tests/component_test.py
@@ -659,13 +659,13 @@ class ComponentTests(BossUtils, unittest.TestCase):
         component.stop()
         component.kill()
         component.kill(True)
-        self.gid = 42
+        self.gid = 4200
         self.uid = 42
         component = isc.bind10.special_component.SockCreator(None, self,
                                                              'needed', None)
         component.start()
         # This time, it get's called
-        self.assertEqual(42, self.__gid_set)
+        self.assertEqual(4200, self.__gid_set)
         self.assertEqual(42, self.__uid_set)
         isc.bind10.special_component.posix.setgid = orig_setgid
         isc.bind10.special_component.posix.setuid = orig_setuid



More information about the bind10-changes mailing list